From b41c9866802d2dd2a19cfa6cbc68888fb81858f0 Mon Sep 17 00:00:00 2001 From: zhoudede Date: Tue, 9 Sep 2025 15:30:05 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=861=E6=9D=A1?= =?UTF-8?q?=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhoudede --- .../SnapshotGetsync.test.ets | 1058 +++++++++++++++++ 1 file changed, 1058 insertions(+) create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/test/SnapshotGetsyncTest/SnapshotGetsync.test.ets diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/test/SnapshotGetsyncTest/SnapshotGetsync.test.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/test/SnapshotGetsyncTest/SnapshotGetsync.test.ets new file mode 100644 index 00000000..6bbf22d8 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/test/SnapshotGetsyncTest/SnapshotGetsync.test.ets @@ -0,0 +1,1058 @@ +/** + * 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 SnapshotGetsync() { + + describe('SnapshotGetsync', () => { + 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_SNAPSHOT_GETSYNC_0080 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0080 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0080', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0080 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync80") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0080 finish.`); + done(); + }) + + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0210 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0210 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0210', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0210 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync210") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0210 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0100 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0100 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0100', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0100 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync100") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0100 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0110 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0110 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0110', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0110 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync110") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0110 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0120 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0120 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0120', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0120 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync120") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0120 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0190 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0190 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0190', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0190 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync190") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0190 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0250 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0250 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0250', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0250 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync250") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0250 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0180 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0180 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0180', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0180 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync180") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0180 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0200 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0200 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0200', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0200 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync200") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0200 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0170 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0170 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0170', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0170 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync170") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0170 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0220 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0220 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0220', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0220 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync220") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0220 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0260 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0260 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0260', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0260 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync260") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0260 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0060 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0060 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0060', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0060 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync60") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0060 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0270 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0270 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0270', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0270 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync270") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0270 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0240 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0240 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0240', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0240 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync240") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0240 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0280 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0280 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0280', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0280 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync280") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0280 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0320 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0320 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0320', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0320 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync320") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0320 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0300 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0300 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0300', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0300 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync300") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0300 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0350 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0350 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0350', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0350 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync350") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0350 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0290 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0290 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0290', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0290 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync290") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0290 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0310 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0310 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0310', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0310 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync310") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0310 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0340 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0340 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0340', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0340 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync340") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0340 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0390 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0390 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0390', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0390 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync390") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0390 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0360 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0360 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0360', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0360 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync360") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0360 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0420 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0420 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0420', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0420 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync420") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0420 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0370 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0370 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0370', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0370 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync370") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0370 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0410 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0410 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0410', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0410 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync410") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0410 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0380 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0380 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0380', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0380 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync380") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0380 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0430 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0430 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0430', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0430 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync430") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0430 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0440 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0440 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0440', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0440 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync440") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0440 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0550 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0550 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0550', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0550 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync550") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0550 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0450 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0450 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0450', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0450 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync450") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0450 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0330 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0330 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0330', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0330 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync330") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0330 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0560 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0560 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0560', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0560 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync560") + let driver:Driver = Driver.create(); + // 通过ID定位(推荐) + let component = await driver.waitForComponent(ON.id('button'), 1000); // 显式等待组件出现[6](@ref) + await component.click(); + await driver.waitForIdle(500,2000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0560 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0460 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0460 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0460', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0460 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync460") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0460 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0090 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0090 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0090', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0090 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync90") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0090 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0490 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0490 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0490', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0490 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync490") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0490 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0050 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0050 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0050', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0050 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync50") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0050 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0470 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0470 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0470', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0470 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync470") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0470 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0010 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0010 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0010', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0010 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync10") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0010 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0480 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0480 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0480', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0480 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync480") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0480 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0160 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0160 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0160', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0160 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync160") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0160 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0500 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0500 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0500', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0500 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync500") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0500 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0070 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0070 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0070', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0070 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync70") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0070 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0030 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0030 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0030', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0030 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync30") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0030 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0140 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0140 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0140', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0140 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync140") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0140 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0020 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0020 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0020', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0020 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync20") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0020 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0150 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0150 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0150', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0150 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync150") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0150 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0130 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0130 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0130', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0130 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync130") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0130 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_SNAPSHOT_GETSYNC_0040 + * @tc.name : SUB_ACE_UI_SNAPSHOT_GETSYNC_0040 + * @tc.desc : Use get(id,callback) to get a screenshot of the List component, and the component is out of the screen + * @tc.type : Function + * @tc.size : MediumTest + * @tc.level : 3 + */ + it('SUB_ACE_UI_SNAPSHOT_GETSYNC_0040', Level.LEVEL3, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0040 start.`); + Settings.createWindow("testability/pages/SnapshotGetsync/SnapshotGetsync40") + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_SNAPSHOT_GETSYNC_0040 finish.`); + done(); + }) + }) +} -- Gitee From a663bd0e50e81a57a10b725fdb2923e98fd23159 Mon Sep 17 00:00:00 2001 From: zhoudede Date: Tue, 9 Sep 2025 15:30:15 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=8650=E6=9D=A1?= =?UTF-8?q?=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhoudede --- .../SnapshotGetsync/SnapshotGetsync10.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync100.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync110.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync120.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync130.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync140.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync150.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync160.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync170.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync180.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync190.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync20.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync200.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync210.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync220.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync240.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync250.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync260.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync270.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync280.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync290.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync30.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync300.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync310.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync320.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync330.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync340.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync350.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync360.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync370.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync380.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync390.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync40.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync410.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync420.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync430.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync440.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync450.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync460.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync470.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync480.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync490.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync50.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync500.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync550.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync560.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync60.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync70.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync80.ets | 31 +++++++++++++++++++ .../SnapshotGetsync/SnapshotGetsync90.ets | 31 +++++++++++++++++++ 50 files changed, 1550 insertions(+) create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync10.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync100.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync110.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync120.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync130.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync140.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync150.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync160.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync170.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync180.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync190.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync20.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync200.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync210.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync220.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync240.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync250.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync260.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync270.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync280.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync290.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync30.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync300.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync310.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync320.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync330.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync340.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync350.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync360.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync370.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync380.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync390.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync40.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync410.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync420.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync430.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync440.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync450.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync460.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync470.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync480.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync490.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync50.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync500.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync550.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync560.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync60.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync70.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync80.ets create mode 100644 sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync90.ets diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync10.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync10.ets new file mode 100644 index 00000000..5af00989 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync10.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync10 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync("root", {scale : 1, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync100.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync100.ets new file mode 100644 index 00000000..c3590320 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync100.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync100 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : 4, waitUntilRenderFinished : undefined}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync110.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync110.ets new file mode 100644 index 00000000..1b8cebcf --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync110.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync110 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : 13, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync120.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync120.ets new file mode 100644 index 00000000..722ae39f --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync120.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync120 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : 0.01, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync130.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync130.ets new file mode 100644 index 00000000..63589d7a --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync130.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync130 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : 13.2, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync140.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync140.ets new file mode 100644 index 00000000..ab614fc6 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync140.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync140 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : 13.3, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync150.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync150.ets new file mode 100644 index 00000000..90b0571e --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync150.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync150 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : 4}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync160.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync160.ets new file mode 100644 index 00000000..1ab160ad --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync160.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync160 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('1', { waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync170.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync170.ets new file mode 100644 index 00000000..47844067 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync170.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync170 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('1', {scale : 1, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync180.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync180.ets new file mode 100644 index 00000000..38da7864 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync180.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync180 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('ab', {scale : 0.5, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync190.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync190.ets new file mode 100644 index 00000000..3641aa4c --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync190.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync190 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('-1', {scale : 4, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync20.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync20.ets new file mode 100644 index 00000000..13136eac --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync20.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync20 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync("root", {scale : 0.5, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync200.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync200.ets new file mode 100644 index 00000000..f26da903 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync200.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync200 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync("",{scale : -1, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync210.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync210.ets new file mode 100644 index 00000000..b56ac78e --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync210.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync210 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('-2', {scale : 4, waitUntilRenderFinished : false}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync220.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync220.ets new file mode 100644 index 00000000..ce0a1f26 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync220.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync220 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root') + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync240.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync240.ets new file mode 100644 index 00000000..8a5247ca --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync240.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync240 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : 13, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync250.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync250.ets new file mode 100644 index 00000000..60e0db08 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync250.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync250 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : 13, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync260.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync260.ets new file mode 100644 index 00000000..a521ffd3 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync260.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync260 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : 1, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync270.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync270.ets new file mode 100644 index 00000000..fd10bdd7 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync270.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync270 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : 0.5, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync280.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync280.ets new file mode 100644 index 00000000..44ad7320 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync280.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync280 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : 4, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync290.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync290.ets new file mode 100644 index 00000000..78d86dbd --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync290.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync290 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : -1, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync30.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync30.ets new file mode 100644 index 00000000..f875de73 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync30.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync30 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync("root", {scale : 4, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync300.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync300.ets new file mode 100644 index 00000000..ecc9cec4 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync300.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync320 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : 0, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync310.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync310.ets new file mode 100644 index 00000000..eb600910 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync310.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync310 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : undefined, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync320.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync320.ets new file mode 100644 index 00000000..47a3334d --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync320.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync320 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : 0, waitUntilRenderFinished : false}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync330.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync330.ets new file mode 100644 index 00000000..06506398 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync330.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync330 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : 1, waitUntilRenderFinished : false}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync340.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync340.ets new file mode 100644 index 00000000..8c6b24c3 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync340.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync340 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : -1, waitUntilRenderFinished : false}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync350.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync350.ets new file mode 100644 index 00000000..3859a592 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync350.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync350 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {scale : 4}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync360.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync360.ets new file mode 100644 index 00000000..f2c284b3 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync360.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync360 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root', {waitUntilRenderFinished:true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync370.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync370.ets new file mode 100644 index 00000000..fd5d79c9 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync370.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync370 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('1', {scale : 1, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync380.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync380.ets new file mode 100644 index 00000000..17773963 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync380.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync380 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('ab', {scale : 0.5, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync390.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync390.ets new file mode 100644 index 00000000..60ce98f2 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync390.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync390 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('-0.1', {scale : 4, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync40.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync40.ets new file mode 100644 index 00000000..14f24df9 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync40.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync40 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync("root", {scale : -1, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync410.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync410.ets new file mode 100644 index 00000000..c149d9e3 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync410.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync410 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('-2', {scale : 4, waitUntilRenderFinished : false}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync420.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync420.ets new file mode 100644 index 00000000..8f1de3bc --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync420.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync420 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root') + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync430.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync430.ets new file mode 100644 index 00000000..6815a05d --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync430.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync430 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(50).height(50).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root',{scale:50.4}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync440.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync440.ets new file mode 100644 index 00000000..09d57b85 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync440.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync440 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Image($r('app.media.icon')).width(50).height(50).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root',{scale:51}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync450.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync450.ets new file mode 100644 index 00000000..819f74c7 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync450.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync450 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Image($r('app.media.icon')).width(2520).height(2520).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root',{scale:1}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync460.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync460.ets new file mode 100644 index 00000000..e8541315 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync460.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync460 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Image($r('app.media.icon')).width(2520).height(2520).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root',{scale:14}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync470.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync470.ets new file mode 100644 index 00000000..b6900e35 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync470.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync470 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(50).height(50).border({ color: Color.Black, width: 2 }).margin(5) + Image($r('app.media.icon')).width(50).height(50).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root',{scale:50.4}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync480.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync480.ets new file mode 100644 index 00000000..a530bc06 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync480.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync480 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(50).height(50).border({ color: Color.Black, width: 2 }).margin(5) + Image($r('app.media.icon')).width(50).height(50).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root',{scale:51}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync490.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync490.ets new file mode 100644 index 00000000..0d4efb77 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync490.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync490 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Image($r('app.media.icon')).width(220).height(220).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root',{scale:0.5,waitUntilRenderFinished:true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync50.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync50.ets new file mode 100644 index 00000000..d9c5bc5b --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync50.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync50 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync("root", {scale : 0, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync500.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync500.ets new file mode 100644 index 00000000..26bdf9d9 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync500.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync500 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Image($r('app.media.icon')).width(220).height(220).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root',{scale:4,waitUntilRenderFinished:true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync550.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync550.ets new file mode 100644 index 00000000..076b8315 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync550.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync550 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Image($r('app.media.icon')).width(50).height(50).margin(5).id("root").visibility(Visibility.None) + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root',{scale:1,waitUntilRenderFinished:true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync560.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync560.ets new file mode 100644 index 00000000..ef3dcd0f --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync560.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync560 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Image($r('app.media.icon')).width(50).height(50).margin(5).id("root").visibility(Visibility.Hidden) + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync('root',{scale:1,waitUntilRenderFinished:true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync60.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync60.ets new file mode 100644 index 00000000..123f7e25 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync60.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync60 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync("root", {scale : undefined, waitUntilRenderFinished : true}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync70.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync70.ets new file mode 100644 index 00000000..225f424d --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync70.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync70 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync("root", {scale : 0, waitUntilRenderFinished : false}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync80.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync80.ets new file mode 100644 index 00000000..c4772d8a --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync80.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync80 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync("root", {scale : 1, waitUntilRenderFinished : false}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync90.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync90.ets new file mode 100644 index 00000000..901adef4 --- /dev/null +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync90.ets @@ -0,0 +1,31 @@ +import { componentSnapshot } from '@kit.ArkUI'; +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct SnapshotGetsync90 { + @State pixmap: image.PixelMap | undefined = undefined + + build() { + Column() { + Row() { + Image(this.pixmap).width(200).height(200).border({ color: Color.Black, width: 2 }).margin(5) + Text('app.media.img').width(200).height(200).margin(5).id("root") + } + Button("click to generate UI snapshot") + .onClick(() => { + try { + // 建议使用this.getUIContext().getComponentSnapshot().getSync() + let pixelmap = componentSnapshot.getSync("root", {scale : -1, waitUntilRenderFinished : false}) + this.pixmap = pixelmap + } catch (error) { + console.error("getSync errorCode: " + error.code + " message: " + error.message) + } + }).margin(10) + .id('button') + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + } +} -- Gitee From 7049abd803ad5951142e6283c506158c6395c115 Mon Sep 17 00:00:00 2001 From: zhoudede Date: Tue, 9 Sep 2025 15:52:39 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=89=88=E6=9D=83?= =?UTF-8?q?=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhoudede --- .../pages/SnapshotGetsync/SnapshotGetsync10.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync100.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync110.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync120.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync130.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync140.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync150.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync160.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync170.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync180.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync190.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync20.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync200.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync210.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync220.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync240.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync250.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync260.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync270.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync280.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync290.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync30.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync300.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync310.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync320.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync330.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync340.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync350.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync360.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync370.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync380.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync390.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync40.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync410.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync420.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync430.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync440.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync450.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync460.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync470.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync480.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync490.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync50.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync500.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync550.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync560.ets | 14 ++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync60.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync70.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync80.ets | 15 +++++++++++++++ .../pages/SnapshotGetsync/SnapshotGetsync90.ets | 15 +++++++++++++++ 50 files changed, 720 insertions(+) diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync10.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync10.ets index 5af00989..033ff356 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync10.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync10.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync100.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync100.ets index c3590320..0e6e5cd9 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync100.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync100.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync110.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync110.ets index 1b8cebcf..41be3a88 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync110.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync110.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync120.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync120.ets index 722ae39f..609bf2c2 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync120.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync120.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync130.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync130.ets index 63589d7a..32f4bd76 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync130.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync130.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync140.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync140.ets index ab614fc6..c7eeb591 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync140.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync140.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync150.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync150.ets index 90b0571e..cba5fe6b 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync150.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync150.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync160.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync160.ets index 1ab160ad..fcd12898 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync160.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync160.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync170.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync170.ets index 47844067..8aa0ce0a 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync170.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync170.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync180.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync180.ets index 38da7864..e86f6b27 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync180.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync180.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync190.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync190.ets index 3641aa4c..21b2259b 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync190.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync190.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync20.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync20.ets index 13136eac..8daf990a 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync20.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync20.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync200.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync200.ets index f26da903..9403a355 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync200.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync200.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync210.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync210.ets index b56ac78e..687bd4cd 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync210.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync210.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync220.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync220.ets index ce0a1f26..5c478c54 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync220.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync220.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync240.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync240.ets index 8a5247ca..721a8b66 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync240.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync240.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync250.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync250.ets index 60e0db08..d641a63b 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync250.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync250.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync260.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync260.ets index a521ffd3..be4d5727 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync260.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync260.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync270.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync270.ets index fd10bdd7..4d8cd933 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync270.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync270.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync280.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync280.ets index 44ad7320..cb8d62b4 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync280.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync280.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync290.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync290.ets index 78d86dbd..e2eedb5c 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync290.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync290.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync30.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync30.ets index f875de73..176a50b5 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync30.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync30.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync300.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync300.ets index ecc9cec4..33551c50 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync300.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync300.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync310.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync310.ets index eb600910..69620f3d 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync310.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync310.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync320.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync320.ets index 47a3334d..f088687e 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync320.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync320.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync330.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync330.ets index 06506398..ea83b532 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync330.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync330.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync340.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync340.ets index 8c6b24c3..744ecd52 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync340.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync340.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync350.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync350.ets index 3859a592..11cc22c3 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync350.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync350.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync360.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync360.ets index f2c284b3..924e3d2d 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync360.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync360.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync370.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync370.ets index fd5d79c9..5b3b9b15 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync370.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync370.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync380.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync380.ets index 17773963..762ef377 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync380.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync380.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync390.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync390.ets index 60ce98f2..5b06907b 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync390.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync390.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync40.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync40.ets index 14f24df9..e730ce36 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync40.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync40.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync410.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync410.ets index c149d9e3..51ab7728 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync410.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync410.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync420.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync420.ets index 8f1de3bc..09d6b78f 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync420.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync420.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync430.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync430.ets index 6815a05d..c94ebfc2 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync430.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync430.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync440.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync440.ets index 09d57b85..b8e572fc 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync440.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync440.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync450.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync450.ets index 819f74c7..3470a67d 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync450.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync450.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync460.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync460.ets index e8541315..a209b4d9 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync460.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync460.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync470.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync470.ets index b6900e35..ac899876 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync470.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync470.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync480.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync480.ets index a530bc06..a0d03ecd 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync480.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync480.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync490.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync490.ets index 0d4efb77..9d7e4859 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync490.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync490.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync50.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync50.ets index d9c5bc5b..e617e8b8 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync50.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync50.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync500.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync500.ets index 26bdf9d9..a1e1b5db 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync500.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync500.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync550.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync550.ets index 076b8315..29ad531a 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync550.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync550.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync560.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync560.ets index ef3dcd0f..52de055b 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync560.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync560.ets @@ -1,3 +1,17 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync60.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync60.ets index 123f7e25..501a29c4 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync60.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync60.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync70.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync70.ets index 225f424d..bc660306 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync70.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync70.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync80.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync80.ets index c4772d8a..03f3a224 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync80.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync80.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; diff --git a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync90.ets b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync90.ets index 901adef4..81e8a875 100644 --- a/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync90.ets +++ b/sample/ui_compare/uiCompareTest_09/entry/src/ohosTest/ets/testability/pages/SnapshotGetsync/SnapshotGetsync90.ets @@ -1,3 +1,18 @@ +/** + * 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 { componentSnapshot } from '@kit.ArkUI'; import { image } from '@kit.ImageKit'; -- Gitee