diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/test/focus_TextUI/FocusFrameNodeTest.test.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/test/focus_TextUI/FocusFrameNodeTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..2b385908d95de6eb0c0e10e3b10ea2da54346316 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/test/focus_TextUI/FocusFrameNodeTest.test.ets @@ -0,0 +1,284 @@ +/** + * Copyright (c) 2025 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, Level } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, ON, Component } from '@kit.TestKit'; + +export default function FocusFrameNodeTest() { + + describe('FocusFrameNodeTest', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0011 + * @tc.name : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0011 + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 2 + * @tc.desc : The content characters of the QRCode created by FrameNode are normally more than 512. + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0011', Level.LEVEL2, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0011 start.`); + Settings.createWindow("testability/pages/focus_FrameNode/MediaFrameNode0011") + let driver:Driver = Driver.create(); + await driver.waitForIdle(1000,2000); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0011 finish.`); + done() + }) + + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0012 + * @tc.name : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0012 + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 2 + * @tc.desc : The content characters of the QRCode created by FrameNode are abnormal. + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0012', Level.LEVEL2, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0012 start.`); + Settings.createWindow("testability/pages/focus_FrameNode/MediaFrameNode0012") + let driver:Driver = Driver.create(); + await driver.waitForIdle(1000,2000); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0012 finish.`); + done() + }) + + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0013 + * @tc.name : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0013 + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 2 + * @tc.desc : FrameNode creates a QRCode and sets the QRCode color as an enumeration. + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0013', Level.LEVEL2, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0013 start.`); + Settings.createWindow("testability/pages/focus_FrameNode/MediaFrameNode0013") + let driver:Driver = Driver.create(); + await driver.waitForIdle(1000,2000); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0013 finish.`); + done() + }) + + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0014 + * @tc.name : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0014 + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 2 + * @tc.desc : FrameNode creates a QRCode and sets the QRCode color in RGB type. + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0014', Level.LEVEL2, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0014 start.`); + Settings.createWindow("testability/pages/focus_FrameNode/MediaFrameNode0014") + let driver:Driver = Driver.create(); + await driver.waitForIdle(1000,2000); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0014 finish.`); + done() + }) + + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0015 + * @tc.name : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0015 + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 2 + * @tc.desc : FrameNode creates a QRCode without setting the QRCode color. + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0015', Level.LEVEL2, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0015 start.`); + Settings.createWindow("testability/pages/focus_FrameNode/MediaFrameNode0015") + let driver:Driver = Driver.create(); + await driver.waitForIdle(1000,2000); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0015 finish.`); + done() + }) + + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0016 + * @tc.name : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0016 + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 2 + * @tc.desc : FrameNode creates a QRCode and sets the QRCode backgroundColor as an enumeration. + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0016', Level.LEVEL2, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0016 start.`); + Settings.createWindow("testability/pages/focus_FrameNode/MediaFrameNode0016") + let driver:Driver = Driver.create(); + await driver.waitForIdle(1000,2000); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0016 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0017 + * @tc.name : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0017 + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 2 + * @tc.desc : FrameNode creates a QRCode and sets the QRCode backgroundColor in RGB type. + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0017', Level.LEVEL2, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0017 start.`); + Settings.createWindow("testability/pages/focus_FrameNode/MediaFrameNode0017") + let driver:Driver = Driver.create(); + await driver.waitForIdle(1000,2000); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0017 finish.`); + done() + }) + + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0019 + * @tc.name : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0019 + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 2 + * @tc.desc : FrameNode creates a QRCode and sets the QRCode transparency to abnormal values + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0019', Level.LEVEL2, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0019 start.`); + Settings.createWindow("testability/pages/focus_FrameNode/MediaFrameNode0019") + let driver:Driver = Driver.create(); + await driver.waitForIdle(1000,2000); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0019 finish.`); + done() + }) + + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0020 + * @tc.name : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0020 + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 2 + * @tc.desc : FrameNode creates a QRCode and sets the QRCode transparency to a normal value. + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0020', Level.LEVEL2, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0020 start.`); + Settings.createWindow("testability/pages/focus_FrameNode/MediaFrameNode0020") + let driver:Driver = Driver.create(); + await driver.waitForIdle(1000,2000); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0020 finish.`); + done() + }) + + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0022 + * @tc.name : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0022 + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 2 + * @tc.desc : FrameNode creates BadgeParamWithString to create a text box sub-component. + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0022', Level.LEVEL2, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0022 start.`); + Settings.createWindow("testability/pages/focus_FrameNode/MediaFrameNode0022") + let driver:Driver = Driver.create(); + await driver.waitForIdle(1000,2000); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0022 finish.`); + done() + }) + + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0024 + * @tc.name : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0024 + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 2 + * @tc.desc : FrameNode creates BadgeParamWithNumber to create a text box sub-component. + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0024', Level.LEVEL2, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0024 start.`); + Settings.createWindow("testability/pages/focus_FrameNode/MediaFrameNode0024") + let driver:Driver = Driver.create(); + await driver.waitForIdle(1000,2000); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0024 finish.`); + done() + }) + + + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0028 + * @tc.name : SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0028 + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 2 + * @tc.desc : FrameNode creates a TextTimer card display. + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0028', Level.LEVEL2, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0028 start.`); + Settings.createWindow("testability/pages/focus_FrameNode/MediaFrameNode0028") + let driver:Driver = Driver.create(); + await driver.waitForIdle(1000,2000); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_FRAMENODE_0028 finish.`); + done() + }) + + + }) +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpAnimateTo0016.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpAnimateTo0016.ets new file mode 100644 index 0000000000000000000000000000000000000000..e857016dbd9e1a501c8dd44a54d97c417b034dce --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpAnimateTo0016.ets @@ -0,0 +1,80 @@ +/** + * Copyright (c) 2025 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 DpAnimateTo0016 { + @State isPanelVisible: boolean = false; + @State panelOpacity: number = 0; + @State panelTranslateY: number = 30; + + build() { + Column() { + // 控制按钮 + Button(this.isPanelVisible ? '隐藏面板' : '显示面板') + .id('DpAT0016') + .onClick(() => { + this.togglePanel(); + }) + .margin(20) + + // 数据面板组件 + if (this.isPanelVisible || this.panelOpacity > 0) { + DataPanel({ values: [20, 20, 20, 20], max: 100, type: DataPanelType.Circle }) + .width('90%') + .height(200) + .margin(20) + .opacity(this.panelOpacity) + .closeEffect(true) + .translate({ x: 0, y: this.panelTranslateY }) + .animation({ + duration: 500, + curve: Curve.EaseOut + }) + } + } + .width('100%') + .height('100%') + } + + // 控制面板显示/隐藏的动画 + togglePanel() { + if (this.isPanelVisible) { + // 隐藏面板动画 + this.getUIContext()?.animateTo({ + duration: 500, + curve: Curve.EaseIn + }, () => { + this.panelOpacity = 0; + this.panelTranslateY = 30; + this.isPanelVisible = false; + }) + } else { + // 显示面板动画 + this.isPanelVisible = true; + // 强制刷新UI后执行动画 + setTimeout(() => { + this.getUIContext()?.animateTo({ + duration: 500, + curve: Curve.EaseOut + }, () => { + this.panelOpacity = 1; + this.panelTranslateY = 0; + }); + }, 10); + } + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpAnimateTo0017.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpAnimateTo0017.ets new file mode 100644 index 0000000000000000000000000000000000000000..5ff287b90f3d5ccfd68560f65a5b4f9d8fd8a36c --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpAnimateTo0017.ets @@ -0,0 +1,78 @@ +/** + * Copyright (c) 2025 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 DpAnimateTo0017 { + @State isPanelVisible: boolean = false; + @State panelOpacity: number = 0; + @State panelTranslateY: number = 30; + + build() { + Column() { + // 控制按钮 + Button(this.isPanelVisible ? '隐藏面板' : '显示面板') + .id('DpAT0017') + .onClick(() => { + this.togglePanel(); + }) + .margin(20) + + // 数据面板组件 + if (this.isPanelVisible || this.panelOpacity > 0) { + DataPanel({ values: [20, 20, 20, 20], max: 100, type: DataPanelType.Circle }) + .width('90%') + .height(200) + .margin(20) + .opacity(this.panelOpacity) + .closeEffect(false) + .translate({ x: 0, y: this.panelTranslateY }) + .animation({ + duration: 500, + curve: Curve.EaseOut + }) + } + } + .width('100%') + .height('100%') + } + + // 控制面板显示/隐藏的动画 + togglePanel() { + if (this.isPanelVisible) { + // 隐藏面板动画 + this.getUIContext()?.animateTo({ + duration: 500, + curve: Curve.EaseIn + }, () => { + this.panelOpacity = 0; + this.panelTranslateY = 30; + this.isPanelVisible = false; + }) + } else { + // 显示面板动画 + this.isPanelVisible = true; + // 强制刷新UI后执行动画 + setTimeout(() => { + this.getUIContext()?.animateTo({ + duration: 500, + curve: Curve.EaseOut + }, () => { + this.panelOpacity = 1; + this.panelTranslateY = 0; + }); + }, 10); + } + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0010.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..743e505d9316f00c690b1b8e8ce0398e5f124747 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0010.ets @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0010 { + @State brValue: number = 12; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0010') + .onClick(()=>{ this.brValue =5 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0020.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..14b0f40efbf712b8dede70bef398ff5aa5b216f2 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0020.ets @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0020 { + @State brValue: number = 20; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0020') + .onClick(()=>{ this.brValue =10 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0030.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..ab259f259181a2e463e8f0e9f7a6ef8a9783b684 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0030.ets @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0030 { + @State brValue: number = 12; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0030') + .onClick(()=>{ this.brValue =25 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0040.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..0174653ff9b29fb26036248e340100f61f57b7fb --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0040.ets @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0040 { + @State brValue: number = 12; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(50) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0040') + .onClick(()=>{ this.brValue =100 }) + + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(50) + .borderRadius(25) + .backgroundColor('#EEEEEE') + .padding(10) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0050.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..6247bb478dd5a7f5c0f69b3e0399077d3c5a4eb2 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0050.ets @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0050 { + @State brValue: number = 12; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(50) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0050') + .onClick(()=>{ this.brValue =999999 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0070.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..7ea3cbdb0bc6a79be4c2e23b5ac7f68163e9e569 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0070.ets @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0070 { + @State brValue: string = '10px'; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0070') + .onClick(()=>{ this.brValue ='5px' }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0080.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..fcdb7ba1f4334e3aeba216086754638bf66d3d2e --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0080.ets @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0080 { + @State brValue: string = '10vp'; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0080') + .onClick(()=>{ this.brValue ='20vp' }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0090.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..c6cea7bd84af9ccd9e7df4a8d24844221715eca8 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0090.ets @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0090 { + @State brValue: number = 20; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0090') + .onClick(()=>{ this.brValue =10.5 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0100.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..9e1aaa4d6f99584e2addb4f9c9ec8c7e4884b21c --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0100.ets @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0100 { + @State brValue: number = 8; + build() { + Column() { + DataPanel({ + values: [1], + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0100') + .onClick(()=>{ this.brValue =5 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0110.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..7d66e9cc6fa04a31a37c1436b80f6f969552e1d9 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0110.ets @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0110 { + @State brValue: Resource = $r('app.integer.integer_value_20'); + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0110') + .onClick(()=>{ this.brValue = $r('app.integer.select_select_5') }) + + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(5) + .backgroundColor('#EEEEEE') + .padding(10) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0130.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..80eccf7c72a058bf0f77765097bdf689a155d896 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0130.ets @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0130 { + @State brValue: number = 12; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0130') + .onClick(()=>{ this.brValue =0 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0140.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..ed379e03ae74c35bf762f102c79ddd816eb709e2 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0140.ets @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0140 { + @State tright: number = 5 + @State tleft: number = 5 + @State bright: number = 5 + @State bleft: number = 5 + + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius({topLeft:this.tleft,topRight:this.tright,bottomLeft:this.bleft ,bottomRight:this.bright}) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0140') + .onClick(()=>{ this.tright = this.tleft = this.bright = this.bleft = 10 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0150.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..ef0b3c73c3534f5cca160a1de13f64605761e677 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0150.ets @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0150 { + @State tright: number = 5 + @State tleft: number = 5 + @State bright: number = 5 + @State bleft: number = 5 + + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius({topLeft:this.tleft,topRight:this.tright,bottomLeft:this.bleft ,bottomRight:this.bright}) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0150') + .onClick(()=>{ this.tright = this.tleft = this.bright = this.bleft = 0 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0160.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..7dc6f549f813bb4d0b6aee133d4b24cccf09de6c --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0160.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0160 { + @State tright: number = 5 + @State tleft: number = 5 + @State bright: number = 5 + @State bleft: number = 5 + + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius({topLeft:this.tleft,topRight:this.tright,bottomLeft:this.bleft ,bottomRight:this.bright}) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0160') + .onClick(()=>{ this.tright = this.tleft = this.bright = this.bleft = 25 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + + } +} + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0170.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..f6b85271272091044e73a84655650c68a6bd1a5b --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0170.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0170 { + @State tright: number = 5 + @State tleft: number = 5 + @State bright: number = 5 + @State bleft: number = 5 + + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius({topLeft:this.tleft,topRight:this.tright,bottomLeft:this.bleft ,bottomRight:this.bright}) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0170') + .onClick(()=>{ this.tright = this.tleft = this.bright = this.bleft = 9999999 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + + } +} + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0180.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..11911e288158193178e5c28e27f317b651474721 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0180.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0180 { + @State tright: number = 5 + @State tleft: number = 5 + @State bright: number = 5 + @State bleft: number = 5 + + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius({topLeft:this.tleft,topRight:this.tright,bottomLeft:this.bleft ,bottomRight:this.bright}) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0180') + .onClick(()=>{ this.tright = 10.5; this.tleft = 5;this.bright = 100;this.bleft = 0 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + + } +} + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0190.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..3267cb93627bd9161934359e3cd6c6cec51576c2 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0190.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0190 { + @State tright: string = '5' + @State tleft: string = '5' + @State bright: string = '5' + @State bleft: string = '5' + + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius({topLeft:this.tleft, topRight:this.tright, bottomLeft:this.bleft , bottomRight:this.bright}) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0190') + .onClick(()=>{ this.tright = '5px'; this.tleft = '10';this.bright = '5.5';this.bleft = '20vp' }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + + } +} + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0200.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..67e7dbf7cb1622564a3dc40ff70b1b01a7ff5c99 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0200.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0200 { + @State tright: number = 5 + @State tleft: Resource = $r('app.integer.integer_value_10') + @State bright: number = 5 + @State bleft: Resource = $r('app.integer.integer_value_10') + + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius({topLeft:this.tleft, topRight:this.tright, bottomLeft:this.bleft , bottomRight:this.bright}) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0200') + .onClick(()=>{ this.tright = 10; this.tleft = $r('app.integer.select_select_5');this.bright = 10;this.bleft = $r('app.integer.select_select_20') }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + + } +} + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0250.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..08896eb23add513d3ccb1505e30369d45d96379f --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0250.ets @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0250 { + @State brValue: number = 12; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0250') + .onClick(()=>{ this.brValue = -5 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0260.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0260.ets new file mode 100644 index 0000000000000000000000000000000000000000..d50676cf492ccf2b176cd0c3cfd9513ea0483136 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0260.ets @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0260 { + @State brValue: number = 12; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0260') + .onClick(()=>{ this.brValue = -5.5 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0270.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0270.ets new file mode 100644 index 0000000000000000000000000000000000000000..96909ee0565a00ba5a65d08f737db379978abc4c --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0270.ets @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0270 { + @State brValue: string = '12'; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0270') + .onClick(()=>{ this.brValue = "0%" }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} + + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0280.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..8147d0b806c7e383e03eeea55ca0273f8ea48114 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0280.ets @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0280 { + @State brValue: string = '5'; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0280') + .onClick(()=>{ this.brValue = "50%" }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} + + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0290.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..256725ee956788aa28c573c2849e807c1194efb7 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0290.ets @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0290 { + @State brValue: string = "5"; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0290') + .onClick(()=>{ this.brValue = "10%" }) + + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(25) + .backgroundColor('#EEEEEE') + .padding(10) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} + + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0300.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..31d322f99776c9854488bff13975142eea9d5489 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0300.ets @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0300 { + @State brValue: string = '5'; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0300') + .onClick(()=>{ this.brValue = 'abcde' }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} + + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0310.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0310.ets new file mode 100644 index 0000000000000000000000000000000000000000..6684712b63c75def23bd8fd71ca9eecf250c3cd0 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0310.ets @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0310 { + @State brValue: string = '5'; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0310') + .onClick(()=>{ this.brValue = "#####" }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + + } + +} + + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0320.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0320.ets new file mode 100644 index 0000000000000000000000000000000000000000..c214ec73f68140597b0dd6d61d622d8a60637a3b --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0320.ets @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0320 { + @State brValue: string = '8'; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0320') + .onClick(()=>{ this.brValue = " " }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} + + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0330.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0330.ets new file mode 100644 index 0000000000000000000000000000000000000000..8732483cfd9d0c16cefe1eb7fb43e782f144a4bb --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0330.ets @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0330 { + @State brValue: string | undefined = '12'; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0330') + .onClick(()=>{ this.brValue = undefined }) + + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} + + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0340.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0340.ets new file mode 100644 index 0000000000000000000000000000000000000000..d92cf1f76b27346f4c8c1c7686a3c9ce883f94eb --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0340.ets @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0340 { + @State brValue: string | null = '12'; + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0340') + .onClick(()=>{ this.brValue = null }) + + + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(5) + .backgroundColor('#EEEEEE') + .padding(10) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} + + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0350.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0350.ets new file mode 100644 index 0000000000000000000000000000000000000000..a698ecf0d0f61bb1c81e339a88d3d493a67460fd --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0350.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0350 { + @State tright: number = 5 + @State tleft: number = 5 + @State bright: number = 5 + @State bleft: number = 5 + + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius({topLeft:this.tleft,topRight:this.tright,bottomLeft:this.bleft ,bottomRight:this.bright}) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0350') + .onClick(()=>{ this.tright = -5; this.tleft = -5.5;this.bright = 10;this.bleft = 10 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + + } +} + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0360.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0360.ets new file mode 100644 index 0000000000000000000000000000000000000000..f580934bcbcf63c48dab7dd855adbf4da2c43231 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0360.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0360 { + @State tright: number = 5 + @State tleft: number = 5 + @State bright: number = 5 + @State bleft: number = 5 + + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius({topLeft:this.tleft,topRight:this.tright,bottomLeft:this.bleft ,bottomRight:this.bright}) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0360') + .onClick(()=>{ this.tright = -5.5; this.tleft = -5;this.bright = -5;this.bleft = -5.5 }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + + } +} + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0370.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0370.ets new file mode 100644 index 0000000000000000000000000000000000000000..6cb4a697fb504fcbb64d8550985e30e163b3f55c --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0370.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0370 { + @State tright: string = '5' + @State tleft: string = '5' + @State bright: string = '5' + @State bleft: string = '5' + + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius({topLeft:this.tleft,topRight:this.tright,bottomLeft:this.bleft ,bottomRight:this.bright}) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0370') + .onClick(()=>{ this.tright = "50%"; this.tleft = "0%";this.bright = " ";this.bleft = "100%" }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + + } +} + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0380.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0380.ets new file mode 100644 index 0000000000000000000000000000000000000000..8b7374f232b390514e7ed21426313681e5dddb1b --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0380.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0380 { + @State tright: string = '5' + @State tleft: string = '5' + @State bright: string = '5' + @State bleft: string = '5' + + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius({topLeft:this.tleft,topRight:this.tright,bottomLeft:this.bleft ,bottomRight:this.bright}) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0380') + .onClick(()=>{ this.tright = "#####"; this.tleft = "#####";this.bright = "#####";this.bleft = "#####" }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + + } +} + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0390.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0390.ets new file mode 100644 index 0000000000000000000000000000000000000000..1624dc4c07fe702a37ef14caad34f3e98bbd2476 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0390.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0390 { + @State tright: string | undefined = '5' + @State tleft: string | undefined = '5' + @State bright: string | undefined = '5' + @State bleft: string | undefined = '5' + + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius({topLeft:this.tleft,topRight:this.tright,bottomLeft:this.bleft ,bottomRight:this.bright}) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0390') + .onClick(()=>{ this.tright = undefined; this.tleft = undefined;this.bright = undefined;this.bleft = undefined }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + + } +} + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0400.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0400.ets new file mode 100644 index 0000000000000000000000000000000000000000..4d775accc3b62e2fbdbc9ef9be43f41e1f5a63ac --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0400.ets @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0400 { + @State brValue: Resource = $r("app.string.string_value_20"); + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius(this.brValue) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0400') + .onClick(()=>{ this.brValue = $r("app.string.select_select_null")}) + + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} + + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0410.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0410.ets new file mode 100644 index 0000000000000000000000000000000000000000..8c935db064a6d3465318954072cfedccbe13a190 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0410.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0410 { + @State tright: string | undefined = '5' + @State tleft: string | undefined = '5' + @State bright: string | undefined = '5' + @State bleft: string | undefined = '5' + + build() { + Column() { + DataPanel({ + values: [1], + max: 100, + type: DataPanelType.Line, + }) + .width('80%') + .height(24) + .borderRadius({topLeft:this.tleft,topRight:this.tright,bottomLeft:this.bleft ,bottomRight:this.bright}) + .backgroundColor('#EEEEEE') + .padding(10) + + Button('点击测试') + .id('DpBR0410') + .onClick(()=>{ this.tright = " "; this.tleft = "abcde";this.bright = undefined;this.bleft = "#####" }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + + } +} + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0430.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0430.ets new file mode 100644 index 0000000000000000000000000000000000000000..7f67a00306090aaddc34b936ee23b067faf1c008 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0430.ets @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0430 { + @State brValue: number = 5; + build() { + Column() { + Button('点击测试') + .id('DpBR0430') + .onClick(()=>{ this.brValue = 25 }) + .padding(20) + Stack() { + // 单段环形数据面板 + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }) + .width(168) + .height(168) + .borderRadius(this.brValue) + + Column() { + Text('30').fontSize(35).fontColor('#182431') + Text('1.0.0').fontSize(9.33).lineHeight(12.83).fontWeight(500).opacity(0.6) + } + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + } + +} + + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0440.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0440.ets new file mode 100644 index 0000000000000000000000000000000000000000..487f3f42da6d9637158f10b8c08ab5ed08d18e4d --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpBorderRadius0440.ets @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2025 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 SimpleDataPanel0440 { + @State brValue: number = 5; + build() { + Column() { + Button('点击测试') + .id('DpBR0440') + .onClick(()=>{ this.brValue = -25 }) + .padding(20) + Stack() { + // 单段环形数据面板 + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }) + .width(168) + .height(168) + .borderRadius(this.brValue) + + Column() { + Text('30').fontSize(35).fontColor('#182431') + Text('1.0.0').fontSize(9.33).lineHeight(12.83).fontWeight(500).opacity(0.6) + } + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + } + +} + + diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpInterface0180.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpInterface0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..f3faf596c4d4b68f011a47288c04fb3a4b3ceea5 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpInterface0180.ets @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2025 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 LinearGradientDataPanelExample0180 { + public values1: number[] = [20, 20, 20, 20] + + + build() { + Column({ space: 5 }) { + DataPanel({ values: this.values1, max: 100, type: DataPanelType.Circle }) + .width(300) + .height(300) + .strokeWidth(30) + .closeEffect(true) + .trackBackgroundColor(0xFF0000) + }.width('100%').margin({ top: 5 }) + } +} diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpInterface0490.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpInterface0490.ets new file mode 100644 index 0000000000000000000000000000000000000000..090d80c0eb0f0990e2533335472d9bb784e0b6c7 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpInterface0490.ets @@ -0,0 +1,34 @@ +/** + * Copyright (c) 2025 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 LinearGradientDataPanelExample0490 { + public values1: number[] = [50] + + + build() { + Column({ space: 5 }) { + DataPanel({ values: this.values1, max: 100, type: DataPanelType.Circle }) + .width(300) + .height(300) + .strokeWidth(30) + .closeEffect(true) + .trackShadow({ + colors:[Color.Blue], + offsetX: 5, + }) + }.width('100%').margin({ top: 5 }) + } +} diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0010.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..e28566629cefe2ab4d5bf895341a6529918d030b --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0010.ets @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2025 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 DataPanelWatches0010 { + build() { + Column() { + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0011.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0011.ets new file mode 100644 index 0000000000000000000000000000000000000000..24f9f2ded698b8573ec68050607d782482f91a6e --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0011.ets @@ -0,0 +1,30 @@ +/** + * Copyright (c) 2025 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 DataPanelWatches0011 { + build() { + Column() { + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0012.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0012.ets new file mode 100644 index 0000000000000000000000000000000000000000..8f589c7499cb319e2ff35b05d3dabdf24bf70247 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0012.ets @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2025 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 DataPanelWatches0012 { + build() { + Column() { + DataPanel({ + values: [5,4,6,4,5,6,7,8,9], + max: 100, + type: DataPanelType.Circle, + }) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0013.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0013.ets new file mode 100644 index 0000000000000000000000000000000000000000..d8fb59fa111f48b989eaaadbeb13c7cf816f44fb --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0013.ets @@ -0,0 +1,67 @@ +/** + * Copyright (c) 2025 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 DataPanelWatches0013 { + build() { + Column() { + Row() { + Stack(){ + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }).width(168).height(168) + .strokeWidth(null) + .padding(10) + } + Stack(){ + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }).width(168).height(168) + .strokeWidth(undefined) + .padding(10) + } + }.margin({ bottom: 59 }) + + Row() { + Stack(){ + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }).width(168).height(168) + .strokeWidth(-5678) + .padding(10) + } + Stack(){ + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }).width(168).height(168) + .strokeWidth(100) + .padding(10) + } + } + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0014.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0014.ets new file mode 100644 index 0000000000000000000000000000000000000000..270aca1a8fd44d7aea79859d0c9c39816904b8bd --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0014.ets @@ -0,0 +1,58 @@ +/** + * Copyright (c) 2025 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 DataPanelWatches0014 { + build() { + Column() { + Row() { + Stack(){ + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }).width(168).height(168) + .strokeWidth(null) + .padding(10) + } + Stack(){ + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }).width(168).height(168) + .strokeWidth(undefined) + .padding(10) + } + } + + Row() { + Stack(){ + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }).width(168).height(168) + .strokeWidth(" ") + .padding(10) + } + } + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0015.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0015.ets new file mode 100644 index 0000000000000000000000000000000000000000..e5318d75acfc60bc0af34c3645feb366327712f6 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0015.ets @@ -0,0 +1,67 @@ +/** + * Copyright (c) 2025 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 DataPanelWatches0015 { + build() { + Column() { + Row() { + Stack(){ + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }).width(200).height(200) + .trackBackgroundColor(123) + .padding(10) + } + Stack(){ + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }).width(200).height(200) + .trackBackgroundColor(null) + .padding(10) + } + } + + Row() { + Stack(){ + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }).width(200).height(200) + .trackBackgroundColor(undefined) + .padding(10) + } + Stack(){ + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }).width(200).height(200) + .trackBackgroundColor(-5678) + .padding(10) + } + } + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0016.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0016.ets new file mode 100644 index 0000000000000000000000000000000000000000..78f2cd24c4cb4b4c380feea33017918932305829 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0016.ets @@ -0,0 +1,67 @@ +/** + * Copyright (c) 2025 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 DataPanelWatches0016 { + build() { + Column() { + Row() { + Stack(){ + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }).width(200).height(200) + .trackBackgroundColor('123') + .padding(10) + } + Stack(){ + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }).width(200).height(200) + .trackBackgroundColor(null) + .padding(10) + } + } + + Row() { + Stack(){ + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }).width(200).height(200) + .trackBackgroundColor(undefined) + .padding(10) + } + Stack(){ + DataPanel({ + values: [50], + max: 100, + type: DataPanelType.Circle, + }).width(200).height(200) + .trackBackgroundColor(" ") + .padding(10) + } + } + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0017.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0017.ets new file mode 100644 index 0000000000000000000000000000000000000000..b494b72e41dd6d8cee3f7f982fbd8ecc70bf8d1b --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0017.ets @@ -0,0 +1,30 @@ +/** + * Copyright (c) 2025 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 DataPanelWatches0017 { + build() { + Column() { + DataPanel({ + values: [10,10,10,10,10,10,10,10,10], + max: 100, + type: DataPanelType.Circle, + }).valueColors([]) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0018.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0018.ets new file mode 100644 index 0000000000000000000000000000000000000000..5fe6f939f85cbb32f7b1b8af3b678dbdb6258dc4 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0018.ets @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2025 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 DataPanelWatches0018 { + build() { + Column() { + DataPanel({ + values: [5,4,6,4,8,10,10,10,10], + max: 100, + type: DataPanelType.Circle, + }).valueColors([ + Color.Red, + Color.Orange, + null, + Color.Yellow, + undefined, + Color.Green, + null, + Color.Brown, + undefined + ]) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0019.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0019.ets new file mode 100644 index 0000000000000000000000000000000000000000..dbeac9e115b6ad65e16f84e275234a07018b093c --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_DataPanel/DpWatches0019.ets @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2025 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 DataPanelWatches0019 { + build() { + Column() { + DataPanel({ + values: [5,4,6,4,8,9,7,10,10], + max: 100, + type: DataPanelType.Circle, + }).valueColors([ + '#00FF00', // 绿色(纯色) + '#0000FF', // 蓝色(纯色) + '#FFFF00', // 黄色(纯色) + new LinearGradient([{ color: "#65EEC9A3", offset: 0 }, { color: "#65EF629F", offset: 1 }]), + '#F0FFFF', + new LinearGradient([{ color: "#6572B513", offset: 0 }, { color: "#6508efa6", offset: 1 }]), + '#00FFFF', + '#055555', + new LinearGradient([{ color: "#65e26709", offset: 0 }, { color: "#65efbd08", offset: 1 }]) + ]) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0011.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0011.ets new file mode 100644 index 0000000000000000000000000000000000000000..4de1e7b3ca55c28c08aae29ee8194ec4542312c5 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0011.ets @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2025 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 { NodeController, FrameNode, typeNode } from '@kit.ArkUI'; + +class MyNodeController0011 extends NodeController { + makeNode(uiContext: UIContext): FrameNode | null { + let baseContent = '1111111111cccccc' + let result = '' + while (result.length < 600) { + result += baseContent + } + let node = new FrameNode(uiContext); + let qrCode = typeNode.createNode(uiContext, 'QRCode'); + qrCode.initialize(result) + node.appendChild(qrCode); + return node; + } +} + +@Entry +@Component +struct MediaFrameNode0011 { + private myNodeController: MyNodeController0011 = new MyNodeController0011(); + build() { + Column() { + NodeContainer(this.myNodeController); + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0012.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0012.ets new file mode 100644 index 0000000000000000000000000000000000000000..0c258af32daa58f1efe1d9eb9c8090736c8b8e5b --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0012.ets @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2025 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 { NodeController, FrameNode, typeNode } from '@kit.ArkUI'; + +class MyNodeController0012 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode = typeNode.createNode(uiContext, 'QRCode'); + qrCode.initialize(null).color(Color.Red) + node.appendChild(qrCode); + return node; + } +} + +@Entry +@Component +struct MediaFrameNode0012 { + private myNodeController: MyNodeController0012 = new MyNodeController0012(); + build() { + Column() { + NodeContainer(this.myNodeController); + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0013.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0013.ets new file mode 100644 index 0000000000000000000000000000000000000000..f2c2776711ee6588efcb05253892e0d2197102f3 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0013.ets @@ -0,0 +1,51 @@ +/** + * Copyright (c) 2025 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 { NodeController, FrameNode, typeNode } from '@kit.ArkUI'; + +class MyNodeController0013 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode = typeNode.createNode(uiContext, 'QRCode'); + qrCode.initialize(null).color(Color.Green) + node.appendChild(qrCode); + return node; + } +} + +class MyNodeController001302 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode2 = typeNode.createNode(uiContext, 'QRCode'); + qrCode2.initialize(null).color(Color.Orange) + node.appendChild(qrCode2); + return node; + } +} +@Entry +@Component +struct MediaFrameNode0013 { + private myNodeController: MyNodeController0013 = new MyNodeController0013(); + private myNodeController02: MyNodeController001302 = new MyNodeController001302(); + build() { + Column() { + NodeContainer(this.myNodeController).padding(10) + NodeContainer(this.myNodeController02); + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0014.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0014.ets new file mode 100644 index 0000000000000000000000000000000000000000..f9627c8d6046afbeb0f3a2723029309c9d00ae30 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0014.ets @@ -0,0 +1,66 @@ +/** + * Copyright (c) 2025 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 { NodeController, FrameNode, typeNode } from '@kit.ArkUI'; + +class MyNodeController001401 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode = typeNode.createNode(uiContext, 'QRCode'); + qrCode.initialize(null).color('rgb(255, 100, 255)') + node.appendChild(qrCode) + return node; + } +} + +class MyNodeController001402 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode2 = typeNode.createNode(uiContext, 'QRCode'); + qrCode2.initialize(null).color('rgba(255, 100, 255, 0.5)') + node.appendChild(qrCode2); + return node; + } +} + +class MyNodeController001403 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode3 = typeNode.createNode(uiContext, 'QRCode'); + qrCode3.initialize(null).color('#ff000000') + node.appendChild(qrCode3); + return node; + } +} + +@Entry +@Component +struct MediaFrameNode0014 { + private myNodeController01: MyNodeController001401 = new MyNodeController001401(); + private myNodeController02: MyNodeController001402 = new MyNodeController001402(); + private myNodeController03: MyNodeController001403 = new MyNodeController001403(); + build() { + Column() { + NodeContainer(this.myNodeController01) + .padding(10) + NodeContainer(this.myNodeController02) + .padding(10) + NodeContainer(this.myNodeController03); + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0015.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0015.ets new file mode 100644 index 0000000000000000000000000000000000000000..0bdb0f79b7c8d7f9b6ed7d9247ec64bfec5a206b --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0015.ets @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2025 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 { NodeController, FrameNode, typeNode } from '@kit.ArkUI'; + +class MyNodeController0015 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode = typeNode.createNode(uiContext, 'QRCode'); + qrCode.initialize(null) + node.appendChild(qrCode); + return node; + } +} + +@Entry +@Component +struct MediaFrameNode0015 { + private myNodeController: MyNodeController0015 = new MyNodeController0015(); + build() { + Column() { + NodeContainer(this.myNodeController); + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + + } + +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0016.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0016.ets new file mode 100644 index 0000000000000000000000000000000000000000..2c25ca7661e98e1ae85c547ddf50e69e6288f059 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0016.ets @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2025 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 { NodeController, FrameNode, typeNode } from '@kit.ArkUI'; + +class MyNodeController001601 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode = typeNode.createNode(uiContext, 'QRCode'); + qrCode.initialize(null).backgroundColor(Color.Blue) + node.appendChild(qrCode) + return node; + } +} + +class MyNodeController001602 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode2 = typeNode.createNode(uiContext, 'QRCode'); + qrCode2.initialize(null).backgroundColor(Color.Red) + node.appendChild(qrCode2); + return node; + } +} + + +@Entry +@Component +struct MediaFrameNode0016 { + private myNodeController01: MyNodeController001601 = new MyNodeController001601(); + private myNodeController02: MyNodeController001602 = new MyNodeController001602(); + build() { + Column() { + NodeContainer(this.myNodeController01) + .padding(10) + NodeContainer(this.myNodeController02) + .padding(10) + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0017.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0017.ets new file mode 100644 index 0000000000000000000000000000000000000000..8426bd8880216db84378ada1ae0b09e9ded5f1cb --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0017.ets @@ -0,0 +1,66 @@ +/** + * Copyright (c) 2025 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 { NodeController, FrameNode, typeNode } from '@kit.ArkUI'; + +class MyNodeController001701 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode = typeNode.createNode(uiContext, 'QRCode'); + qrCode.initialize(null).backgroundColor('rgb(255, 100, 255)') + node.appendChild(qrCode) + return node; + } +} + +class MyNodeController001702 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode2 = typeNode.createNode(uiContext, 'QRCode'); + qrCode2.initialize(null).backgroundColor('rgba(255, 100, 255, 0.5)') + node.appendChild(qrCode2); + return node; + } +} + +class MyNodeController001703 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode3 = typeNode.createNode(uiContext, 'QRCode'); + qrCode3.initialize(null).backgroundColor('#ff000000') + node.appendChild(qrCode3); + return node; + } +} + +@Entry +@Component +struct MediaFrameNode0017 { + private myNodeController01: MyNodeController001701 = new MyNodeController001701(); + private myNodeController02: MyNodeController001702 = new MyNodeController001702(); + private myNodeController03: MyNodeController001703 = new MyNodeController001703(); + build() { + Column() { + NodeContainer(this.myNodeController01) + .padding(10) + NodeContainer(this.myNodeController02) + .padding(10) + NodeContainer(this.myNodeController03); + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0019.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0019.ets new file mode 100644 index 0000000000000000000000000000000000000000..fa87578e4ef9de886b362b203a66bf4795ee92bf --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0019.ets @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2025 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 { NodeController, FrameNode, typeNode } from '@kit.ArkUI'; + +class MyNodeController0019 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode = typeNode.createNode(uiContext, 'QRCode'); + qrCode.initialize(null).contentOpacity(-1) + node.appendChild(qrCode); + return node; + } +} + +@Entry +@Component +struct MediaFrameNode0019 { + private myNodeController: MyNodeController0019 = new MyNodeController0019(); + build() { + Column() { + NodeContainer(this.myNodeController); + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0020.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..eea0fdc937d51cb3cc40c11abc0c6a4143e6ae7a --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0020.ets @@ -0,0 +1,66 @@ +/** + * Copyright (c) 2025 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 { NodeController, FrameNode, typeNode } from '@kit.ArkUI'; + +class MyNodeController002001 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode = typeNode.createNode(uiContext, 'QRCode'); + qrCode.initialize(null).contentOpacity(0) + node.appendChild(qrCode) + return node; + } +} + +class MyNodeController002002 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode2 = typeNode.createNode(uiContext, 'QRCode'); + qrCode2.initialize(null).contentOpacity(0.5) + node.appendChild(qrCode2); + return node; + } +} + +class MyNodeController002003 extends NodeController { + makeNode(uiContext: UIContext): FrameNode { + let node = new FrameNode(uiContext); + let qrCode3 = typeNode.createNode(uiContext, 'QRCode'); + qrCode3.initialize(null).contentOpacity(1) + node.appendChild(qrCode3); + return node; + } +} + +@Entry +@Component +struct MediaFrameNode0020 { + private myNodeController01: MyNodeController002001 = new MyNodeController002001(); + private myNodeController02: MyNodeController002002 = new MyNodeController002002(); + private myNodeController03: MyNodeController002003 = new MyNodeController002003(); + build() { + Column() { + NodeContainer(this.myNodeController01) + .padding(10) + NodeContainer(this.myNodeController02) + .padding(10) + NodeContainer(this.myNodeController03); + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0022.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0022.ets new file mode 100644 index 0000000000000000000000000000000000000000..d48ea28696e54ed873425fc6c5da828213f29e53 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0022.ets @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2025 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 { NodeController, FrameNode, typeNode, } from '@kit.ArkUI'; + + +class MyNodeController0022 extends NodeController { + makeNode(uiContext: UIContext): FrameNode{ + let node = new FrameNode(uiContext); + let Badge = typeNode.createNode(uiContext, 'Badge'); + Badge.initialize({ + value: 'New', + position: BadgePosition.Right, + style: { badgeSize: 16, badgeColor: '#FA2A2D' } + }) + node.appendChild(Badge) + let TextArea = typeNode.createNode(uiContext, 'TextArea'); + TextArea.initialize({ + text:'文本框子组件', + }) .fontColor(Color.Red).fontSize(16).width(60) + Badge.appendChild(TextArea) + return node; + } +} + +@Entry +@Component +struct MediaFrameNode0022 { + private myNodeController: MyNodeController0022 = new MyNodeController0022(); + build() { + Column() { + NodeContainer(this.myNodeController); + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0024.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0024.ets new file mode 100644 index 0000000000000000000000000000000000000000..8cc608dafa1af3fd68b02d45f14c31b3bd743cd7 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0024.ets @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2025 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 { NodeController, FrameNode, typeNode, } from '@kit.ArkUI'; + + +class MyNodeController0024 extends NodeController { + makeNode(uiContext: UIContext): FrameNode{ + let node = new FrameNode(uiContext); + let Badge = typeNode.createNode(uiContext, 'Badge'); + Badge.initialize({ + count:110, + position: BadgePosition.Right, + style: { badgeColor: '#FA2A2D',badgeSize:16 } + }) + node.appendChild(Badge) + let TextArea = typeNode.createNode(uiContext, 'TextArea'); + TextArea.initialize({ + text:'文本框子组件', + }) .fontColor(Color.Red).fontSize(16).width(60) + Badge.appendChild(TextArea) + return node; + } +} + +@Entry +@Component +struct MediaFrameNode0024 { + private myNodeController: MyNodeController0024 = new MyNodeController0024(); + build() { + Column() { + NodeContainer(this.myNodeController); + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0028.ets b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0028.ets new file mode 100644 index 0000000000000000000000000000000000000000..38ca76899a161775739e4983a307ee50631df263 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/entry/src/ohosTest/ets/testability/pages/focus_FrameNode/MediaFrameNode0028.ets @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2025 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 { NodeController, FrameNode, typeNode, } from '@kit.ArkUI'; + + +class MyNodeController0028 extends NodeController { + makeNode(uiContext: UIContext): FrameNode{ + let node = new FrameNode(uiContext); + let TextTimer = typeNode.createNode(uiContext, 'TextTimer'); + TextTimer.initialize({ + isCountDown: true, count: 30000 + }).fontStyle(FontStyle.Italic).fontColor(Color.Gray).fontSize(50).textShadow( [{ radius: 10, color: Color.Red, offsetX: 10, offsetY: 0 },{ radius: 10, color: Color.Black, offsetX: 20, offsetY: 0 }, + { radius: 10, color: Color.Brown, offsetX: 30, offsetY: 0 },{ radius: 10, color: Color.Green, offsetX: 40, offsetY: 0 }, + { radius: 10, color: Color.Yellow, offsetX: 100, offsetY: 0 }]) + node.appendChild(TextTimer) + return node; + } +} + +@Entry +@Component +struct MediaFrameNode0028 { + private myNodeController: MyNodeController0028 = new MyNodeController0028(); + build() { + Column() { + NodeContainer(this.myNodeController); + } + .width('100%') + .height('100%') + .backgroundColor('#F5F5F5'); + } + +} \ No newline at end of file diff --git a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/oh-package-lock.json5 b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/oh-package-lock.json5 index 4a7f76b21675e55e198304c453ccb7df5b9d489b..62ec9ed681fcedca2a9d6cc2de01b3ac502f6b0e 100644 --- a/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/oh-package-lock.json5 +++ b/sample/ui_compare/uiCompareTest_08/uiTEXTcompare01/oh-package-lock.json5 @@ -14,7 +14,8 @@ */ { "meta": { - "stableOrder": true + "stableOrder": true, + "enableUnifiedLockfile": false }, "lockfileVersion": 3, "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",