From bf3e74103f91c95d2001318dc23a4f9365e1783f Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 15:58:22 +0800 Subject: [PATCH 01/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../UIAttributeFontInterface002.test.ets | 1954 +++++++++++++++++ 1 file changed, 1954 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets new file mode 100644 index 00000000..3c02a826 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets @@ -0,0 +1,1954 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, + ResizeDirection, WindowMode, PointerMatrix} from '@ohos.UiTest'; + +export default function UIAttributeFontInterface002() { + + describe('UIAttributeFontInterface002', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0210 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0210 + * @tc.desc : citation PixelMap + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0210 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage01") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0210 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0270 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0270 + * @tc.desc : Add the Search component and reference a large-sized image. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0270 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage03") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0270 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0010 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0010 + * @tc.desc : Add the Search component without setting the size. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0010 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage04") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0010 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0020 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0020 + * @tc.desc : Add the Search component and implement line wrapping. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0020 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage05") + await Utils.sleep(1000) + let driver = Driver.create(); + await Utils.sleep(1000) + await driver.triggerKey(2049); + await Utils.sleep(1000) + await driver.triggerKey(2054); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0020 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0010 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0010 + * @tc.desc : Create a text component in the placeholder XComponent that contains a Span and set it + * to an empty text. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0010 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage06") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0010 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0020 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0020 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and set it to the + * content of the resource file. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0020 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage07") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0020 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0030 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0030 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and set the content + * to "HelloWorld". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0030 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage08") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0030 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0040 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0040 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and supplement + * the attribute settings to set the text decoration line to None. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0040 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage09") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0040 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0050 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0050 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and supplement + * the attribute settings to set the text decoration line to UnderLine. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0050 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage10") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0050 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0060 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0060 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and supplement + * the attribute settings to set the text decoration line to LineThrough. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0060 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage11") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0060 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0070 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0070 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and supplement + * the attribute settings to set the text decoration line to OverLine. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0070 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage12") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0070 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0080 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0080 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and add attribute + * settings to set the font color to red. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0080 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage13") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0080 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0090 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0090 + * @tc.desc : citation PixelMap + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0090 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage14") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0090 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0100 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0100 + * @tc.desc : citation PixelMap + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0100 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage15") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0100 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0110 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0110 + * @tc.desc : citation PixelMap + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0110 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage16") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0110 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0120 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0120 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and supplement + * the attribute settings to set the font style to italic. + + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0120 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage17") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0120 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0130 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0130 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and add attribute + * settings to set the font weight to "Lighter". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0130 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage18") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0130 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0140 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0140 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and add attribute + * settings to set the font weight to "Normal". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0140 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage19") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0140 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0150 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0150 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and add attribute + * settings to set the font weight to "Regular". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0150 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage20") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0150 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0160 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0160 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and add attribute + * settings to set the font weight to "Medium". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0160 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage21") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0160 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0170 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0170 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and add attribute + * settings to set the font weight to "Bold". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0170 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage22") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0170 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0180 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0180 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and add attribute + * settings to set the font weight to "Bolder". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0180 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage23") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0180 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0190 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0190 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and supplement the + * attribute settings to set the text line height to 30. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0190 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage24") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0190 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0200 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0200 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and supplement the + * attribute settings to set the text line height to -10. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0200 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage25") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0200 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0210 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0210 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and add attribute + * settings to set the text case to "LowerCase". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0210 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage26") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0210 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0220 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0220 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and add attribute + * settings to set the text case to "UpperCase". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0220 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage27") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0220 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0230 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0230 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and add attribute + * settings to set the text case to "Normal". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0230 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage28") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0230 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0240 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0240 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and add attribute + * settings to set the character spacing value to 10. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0240 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage29") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0240 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0250 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0250 + * @tc.desc : Create a text component within the placeholder XComponent that includes a Span, and add attribute + * settings to set the character spacing value to -5. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0250 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage30") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0250 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0014 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0014 + * @tc.desc : Add a Span component, set the parameters of the Span: set the parameter to "This is the Span + * component". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0014', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0014 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage33") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0014 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0067 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0067 + * @tc.desc : Add a Span component, set the attributes of the Span: apply the letterSpacing('180%') style + * attribute. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0067', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0067 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage34") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0067 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0081 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0081 + * @tc.desc : Add a Span component, set the parameters of the Span: set the Span's property with the lineHeight + * attribute using a raw file reference, such as lineHeight('60fp'). + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0081', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0081 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage35") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0081 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0350 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0350 + * @tc.desc : Add a `SymbolSpan` subcomponent. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0350 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage36") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0350 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0420 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0420 + * @tc.desc : Add multiple SymbolSpan child components, setting the initial selection value to (-1, -1), and + * dynamically changing the selection + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0420 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage183") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributePage183_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributePage183_02')); + await button1.click(); + windowSnap.snapShot() + await Utils.sleep(1000) + await button2.click(); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0420 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0430 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0430 + * @tc.desc : Adding multiple SymbolSpan child components and dynamically modifying the letterSpacing parameter. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0430 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage184") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributePage184_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributePage184_02')); + await button1.click(); + windowSnap.snapShot() + await Utils.sleep(1000) + await button2.click(); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0430 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0690 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0690 + * @tc.desc : Adding multiple SymbolSpan child components and dynamically modifying the letterSpacing parameter. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0690 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage185") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributePage185_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributePage185_02')); + let button3: Component = await driver.findComponent(ON.id('fontAttributePage185_03')); + let button4: Component = await driver.findComponent(ON.id('fontAttributePage185_04')); + await button1.click(); + windowSnap.snapShot() + await Utils.sleep(1000) + await button3.click(); + windowSnap.snapShot() + await Utils.sleep(1000) + for(let i_01 = 0; i_01 < 5; i_01++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + } + for(let i_02 = 0; i_02 < 5; i_02++){ + await button4.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + } + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0690 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0700 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0700 + * @tc.desc : Dynamically changing SymbolSpan styles: fontsize, fontcolor, fontweight, effectStrategy, + * renderingStrategy + */ + it('SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0700 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage186") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributePage186_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributePage186_02')); + let button3: Component = await driver.findComponent(ON.id('fontAttributePage186_03')); + let button4: Component = await driver.findComponent(ON.id('fontAttributePage186_04')); + await button1.click(); + windowSnap.snapShot() + await Utils.sleep(1000) + for(let i_01 = 0; i_01 < 5; i_01++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + } + for(let i_02 = 0; i_02 < 2; i_02++){ + await button3.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + } + for(let i_03 = 0; i_03 < 2; i_03++){ + await button4.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + } + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0700 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0010 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0010 + * @tc.desc : Add a `Text` component, set the `wordBreak` to NORMAL, and configure it to support Chinese, + * Japanese, Korean, and English languages. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0010 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage41") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0010 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0020 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0020 + * @tc.desc :Add a `Text` component, set the `wordBreak` to BREAK_ALL, and configure it to support Chinese, + * Japanese, Korean, and English languages. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0020 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage42") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0020 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0030 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0030 + * @tc.desc : Add a `Text` component, set the `wordBreak` to BREAK_WORD, and configure it to support Chinese, + * Japanese, Korean, and English languages. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0030 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage43") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0030 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0040 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0040 + * @tc.desc : Add a Text component without setting the wordBreak. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0040 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage44") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0040 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0050 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0050 + * @tc.desc : Add a Text component and set the `oncopy` event handler. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0050 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage45") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let copy: Component = await driver.findComponent(ON.text('复制')); + await copy.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0050 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0060 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0060 + * @tc.desc : Add a Text component and set the selection with selectionStart at 5 and selectionEnd at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0060 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage46") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0060 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0070 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0070 + * @tc.desc : Add a Text component and set the selection with selectionStart at 20 and selectionEnd at 5. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0070 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage47") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0070 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0080 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0080 + * @tc.desc : Add a Text component and set the selection with selectionStart and selectionEnd both at 5. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0080 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage48") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0080 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0090 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0090 + * @tc.desc : Add a Text component and set the `selection` with `selectionStart` at -5 and `selectionEnd` at 5. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0090 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage49") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0090 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0100 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0100 + * @tc.desc : Add a Text component and set the `selection` with `selectionStart` at 5 and `selectionEnd` at 1000. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0100 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage50") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0100 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0110 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0110 + * @tc.desc : Add a Text component and set multiple selections with `selectionStart` at 5 and `selectionEnd` at + * 20 for each. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0110 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage51") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0110 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0120 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0120 + * @tc.desc : Add a Text component, set the `selection` with `selectionStart` at 5 and `selectionEnd` at 20, + * and handle clicking outside the component area. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0120 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage52") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await driver.click(100,200) + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0120 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0140 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0140 + * @tc.desc : Add a Text component, set the `selection` with `selectionStart` at 5 and `selectionEnd` at 20, + * and implement a menu button for selecting all text. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0140 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage53") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await selectAll.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0140 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0170 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0170 + * @tc.desc : Add a Text component, set multilingual text, and set `WordBreak` to `NORMAL`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0170 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage54") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0170 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0180 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0180 + * @tc.desc : Add a Text component, set multilingual text, and set `WordBreak` to `BREAK_ALL`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0180 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage55") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0180 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0190 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0190 + * @tc.desc : Add a Text component, set multilingual text, and set `WordBreak` to `BREAK_WORD`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0190 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage56") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0190 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0200 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0200 + * @tc.desc : Add a Text component, set it to display pure English text, and set `WordBreak` to `NORMAL`. Also, + * set the `clip` property to `true`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0200 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage57") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0200 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0210 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0210 + * @tc.desc : Add a Text component, set it to display pure English text, and set `WordBreak` to `NORMAL`. Also, + * set the `clip` property to `false`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0210 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage58") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0210 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0220 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0220 + * @tc.desc : Add a Text component, set it to display pure English text, and set `WordBreak` to `BREAK_ALL`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0220 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage59") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0220 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0230 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0230 + * @tc.desc : Add a Text component, set it to display pure English text, and set `WordBreak` to `BREAK_WORD`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0230 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage60") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0230 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0240 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0240 + * @tc.desc : Add a Text component, set `CopyOptions` to `NONE`, and set the `selection` with `selectionStart` + * at 5 and `selectionEnd` at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0240 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage61") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0240 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0250 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0250 + * @tc.desc : Add a Text component, initially set the `selection` with `selectionStart` at 5 and `selectionEnd` + * at 20, and then dynamically change the `selection` to have `selectionStart` at 10 and `selectionEnd` at 15. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0250 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage62") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let changeSelect: Component = await driver.findComponent(ON.id('changeSelection63')); + await changeSelect.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0250 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0260 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0260 + * @tc.desc : Add a Text component, set `TextOverflow` to `None`, input pure English text, set `maxLines` to 5, + * and set `wordBreak` to `WordBreak.NORMAL`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0260 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage63") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0260 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0270 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0270 + * @tc.desc : Add a Text component, set TextOverflow to None, set maxLines to 1, and set wordBreak to + * WordBreak.NORMAL. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0270 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage64") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0270 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0280 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0280 + * @tc.desc : Add a Text component, set `TextOverflow` to `None`, and set the `selection` with `selectionStart` + * at 10 and `selectionEnd` at 1000. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0280 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage65") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0280 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0290 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0290 + * @tc.desc : Add a Text component, set `TextOverflow` to `None`, and set the `selection` with `selectionStart` + * at 10 and `selectionEnd` at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0290 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage66") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0290 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0300 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0300 + * @tc.desc : Add a Text component, set `TextOverflow` to `None`, and set the `selection` with `selectionStart` + * at 1000 and `selectionEnd` at 1001. + + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0300 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage67") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0300 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0310 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0310 + * @tc.desc : Add a Text component, set `TextOverflow` to `Clip`, set pure English text, set `maxLines` to 5, + * and set `wordBreak` to `WordBreak.NORMAL`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0310 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage68") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0310 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0320 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0320 + * @tc.desc : Add a Text component, set `TextOverflow` to `Clip`, set pure English text, set `maxLines` to 1, + * and set `wordBreak` to `WordBreak.NORMAL`. + + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0320 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage69") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0320 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0330 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0330 + * @tc.desc : Add a Text component, set `TextOverflow` to `Clip`, and set the `selection` with `selectionStart` + * at 10 and `selectionEnd` at 1000. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0330 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage70") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let copy: Component = await driver.findComponent(ON.text('复制')); + await copy.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0330 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0340 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0340 + * @tc.desc : Add a Text component, set `TextOverflow` to `Clip`, and set the `selection` with `selectionStart` + * at 10 and `selectionEnd` at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0340 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage71") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0340 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0350 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0350 + * @tc.desc : Add a Text component, set `TextOverflow` to `Clip`, and set the `selection` with `selectionStart` + * at 1000 and `selectionEnd` at 1001. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0350 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage72") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0350 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0360 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0360 + * @tc.desc : Add a Text component, set `TextOverflow` to `Ellipsis`, input pure English text, set `maxLines` + * to 5, and set `wordBreak` to `WordBreak.NORMAL`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0360 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage73") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0360 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0370 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0370 + * @tc.desc : Add a Text component, set `TextOverflow` to `Ellipsis`, input pure English text, set `maxLines` + * to 1, and set `wordBreak` to `WordBreak.NORMAL`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0370 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage74") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0370 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0380 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0380 + * @tc.desc : Add a Text component, set Chinese text, set `TextOverflow` to `Ellipsis`, set `maxLines` to 1, + * and set the `selection` with `selectionStart` at 20 and `selectionEnd` at 1000. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0380 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage75") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let copy: Component = await driver.findComponent(ON.text('复制')); + await copy.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0380 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0390 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0390 + * @tc.desc : Add a Text component, set Chinese text, set `TextOverflow` to `Ellipsis`, set `maxLines` to 1, + * and set the `selection` with `selectionStart` at 21 and `selectionEnd` at 40. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0390 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage76") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let copy: Component = await driver.findComponent(ON.text('复制')); + await copy.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0390 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0400 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0400 + * @tc.desc : Add a Text component, set `TextOverflow` to `Ellipsis`, set `maxLines` to 2, and set the + * `selection` with `selectionStart` at 10 and `selectionEnd` at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0400 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage77") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let copy: Component = await driver.findComponent(ON.text('复制')); + await copy.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0400 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0410 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0410 + * @tc.desc : Add a Text component, set `TextOverflow` to `Marquee`, and set the `selection` with + * `selectionStart` at 10 and `selectionEnd` at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0410 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage78") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0410 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0420 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0420 + * @tc.desc : Add a Text component, set pure English text, and dynamically switch between Chinese, Japanese, + * and Korean text. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0420 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage79") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let copy1: Component = await driver.findComponent(ON.id('changeText79_1')); + await copy1.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let copy2: Component = await driver.findComponent(ON.id('changeText79_2')); + await copy2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let copy3: Component = await driver.findComponent(ON.id('changeText79_3')); + await copy3.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0420 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0430 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0430 + * @tc.desc : Add a Text component, set the `fontSize` to 16, and dynamically change the `fontSize` to 30. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0430 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage80") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let changeFontSize: Component = await driver.findComponent(ON.id('changeText80')); + await changeFontSize.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0430 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0440 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0440 + * @tc.desc : Add a Text component, set the text in four languages: Chinese, English, Korean, and Japanese. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0440 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage81") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0440 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0450 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0450 + * @tc.desc : Add a Text component with a child `Span` component, set the initial `selection` with + * `selectionStart` at 5 and `selectionEnd` at 20, and then dynamically change the `selection` by setting + * `selectionStart` and `selectionEnd` to variable numbers. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0450 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage82") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let select: Component = await driver.findComponent(ON.id('changeSelection82')); + await select.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0450 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0460 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0460 + * @tc.desc : Add a Text component and include a child `ImageSpan` component. Set the initial `selection` + * with `selectionStart` at 5 and `selectionEnd` at 20. Then, dynamically change the `selection` by setting + * `selectionStart` and `selectionEnd` to different numeric values. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0460 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage83") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let select: Component = await driver.findComponent(ON.id('changeSelection83')); + await select.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0460 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0470 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0470 + * @tc.desc : Add a Text component and include a child `ImageSpan` component. Set the `verticalAlign` to `top`, + * and set the `selection` with `selectionStart` at 0 and `selectionEnd` at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0470 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage84") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0470 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0480 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0480 + * @tc.desc : Add a Text component and include a child `ImageSpan` component. Set the `verticalAlign` to `center`, + * and set the `selection` with `selectionStart` at 0 and `selectionEnd` at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0480 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage85") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0480 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0490 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0490 + * @tc.desc : Add a Text component and include a child `ImageSpan` component. Set the `verticalAlign` to `bottom`, + * and set the `selection` with `selectionStart` at 0 and `selectionEnd` at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0490 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage86") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0490 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0500 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0500 + * @tc.desc : Add a Text component and include a child `ImageSpan` component. Set the `verticalAlign` to + * `baseline`,and set the `selection` with `selectionStart` at 0 and `selectionEnd` at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0500 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage87") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0500 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0510 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0510 + * @tc.desc : Add a Text component and include a child `ImageSpan` component. Set the `objectFit` to `Contain`, + * and set the `selection` with `selectionStart` at 0 and `selectionEnd` at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0510 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage88") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0510 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0520 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0520 + * @tc.desc : Add a Text component and include a child `ImageSpan` component. Set the `objectFit` to `Cover`, + * and set the `selection` with `selectionStart` at 0 and `selectionEnd` at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0520 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage89") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0520 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0530 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0530 + * @tc.desc : Add a Text component and include a child `ImageSpan` component. Set the `objectFit` to `Auto`, + * and set the `selection` with `selectionStart` at 0 and `selectionEnd` at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0530 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage90") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0530 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0540 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0540 + * @tc.desc : Add a Text component and include a child `ImageSpan` component. Set the `objectFit` to `Fill`, + * and set the `selection` with `selectionStart` at 0 and `selectionEnd` at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0540 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage91") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0540 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0550 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0550 + * @tc.desc : Add a Text component and include a child `ImageSpan` component. Set the `objectFit` to `ScallDown`, + * and set the `selection` with `selectionStart` at 0 and `selectionEnd` at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0550 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage92") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0550 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0560 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0560 + * @tc.desc : Add a Text component and include a child `ImageSpan` component. Set the `objectFit` to `None`, + * and set the `selection` with `selectionStart` at 0 and `selectionEnd` at 20. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0560 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage93") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0560 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0590 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0590 + * @tc.desc : Add a `Text` component and implement long press gesture recognition to select text. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0590 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage94") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage94')); + await button.longClick(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0590 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0600 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0600 + * @tc.desc : Add a `Text` component, set the `selection` from index 5 to 10, set `clip` to true, and dynamically + * change the container's width and height to 0. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0600 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage95") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('changeHeight95')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0600 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0610 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0610 + * @tc.desc : Add a Text component, set `clip` to false, and set `WordBreak` to `NORMAL`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0610 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage96") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0610 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0630 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0630 + * @tc.desc : Add a Text component with its child components Set the selection parameters with start = end + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0610 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage179") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0630 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0640 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0640 + * @tc.desc : Add a Text component with its child components, Dynamically modify wordBreak. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0640 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage180") + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributePage180_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributePage180_02')); + await button1.click(); + windowSnap.snapShot() + await Utils.sleep(1000) + await button2.click(); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0640 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0650 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0650 + * @tc.desc : Add a Text component with its child components, Dynamically modify selection. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0650', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0650 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage181") + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributePage181_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributePage181_02')); + await button1.click(); + windowSnap.snapShot() + await Utils.sleep(1000) + await button2.click(); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0650 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0660 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0660 + * @tc.desc : To set selectionStart to 5, selectionEnd to 30, and dynamically change the text size, number of + * visible lines, and container size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0660', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0660 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage182") + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributePage182_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributePage182_02')); + let button3: Component = await driver.findComponent(ON.id('fontAttributePage182_03')); + await button1.click(); + windowSnap.snapShot() + await Utils.sleep(1000) + await button2.click(); + windowSnap.snapShot() + await Utils.sleep(1000) + await button3.click(); + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0660 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0040 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0040 + * @tc.desc : Add a ContainerSpan component, without adding any content inside the component. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0040 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage97") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0040 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0050 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0050 + * @tc.desc : Add a ContainerSpan component, and within the `ContainerSpan` component, set the content with + * `Span` and `ImageSpan`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0050 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage98") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0050 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0060 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0060 + * @tc.desc : Add a Text component, and as a child, add a `Span` component with a single line of content. + * Set the attribute `textBackgroundStyle` with the properties: `{color: Color.Green, radius: 5}`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0060 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage99") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0060 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0070 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0070 + * @tc.desc : Add a Text component and include a child `ImageSpan` component. Set the `textBackgroundStyle` + * attribute with the properties: `{color: Color.Green, radius: 5}`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0070 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage100") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0070 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0080 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0080 + * @tc.desc : Add a Text component, with a child `Span` component containing a single line of text. Set the + * `textBackgroundStyle` attribute with the properties: `{color: 0xff0000, radius: 5}`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0080 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage101") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0080 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0090 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0090 + * @tc.desc : Add a child Span component with a single line of content, and set the `textBackgroundStyle` + * attribute with the properties: `{color: Color.Green, radius: 0}`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0090 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage102") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0090 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0100 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0100 + * @tc.desc : Add a Text component, with a child Span component containing a single line of text, and set the + * textBackgroundStyle attribute with the properties: {color: Color.Green, radius: -5}. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0100 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage103") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0100 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0110 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0110 + * @tc.desc : Add a Text component, with a child `Span` component containing a single line of text, and set + * the `textBackgroundStyle` attribute with the properties: `{color: '#ffc0cb', radius: 5}`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0110 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage104") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0110 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0120 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0120 + * @tc.desc : Add a Text component, set the color using a resource reference, and include a child Span component + * with a single line of content. Set the textBackgroundStyle attribute with the properties: + * {color: $r('color_Yellow'), radius: 5}. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0120 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage105") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0120 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0130 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0130 + * @tc.desc : Add a Text component, and within it, add a child Span component containing a single line of text. + * Set the textBackgroundStyle attribute with the properties: {color: Color.Green, radius: '10%'}. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0130 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage106") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0130 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0140 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0140 + * @tc.desc : Add a Text component, and include a child Span component with a single line of content. Set the + * textBackgroundStyle attribute with the properties: {color: Color.Green, radius: '10vp'}. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0140 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage107") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0140 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0150 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0150 + * @tc.desc : Add a Text component, and include a child Span component with a single line of content. Set the + * textBackgroundStyle attribute with the properties: {color: Color.Green, radius: {topLeft: 10}}. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0150 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage108") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0150 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0160 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0160 + * @tc.desc : Add a Text component, and include a child Span component with a single line of content. Set the + * textBackgroundStyle attribute with the properties: {color: Color.Green, radius: {topRight: 10}} + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0160 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage109") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0160 finish.`); + done() + }) + }) +} -- Gitee From 86ea2792b40ffbc3206e05f8762dd288fd92e507 Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 16:25:08 +0800 Subject: [PATCH 02/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../UIAttributeFontInterface002.test.ets | 1403 +++++++++++++++++ 1 file changed, 1403 insertions(+) diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets index 3c02a826..b40ce914 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets @@ -21,6 +21,22 @@ import Utils from '../model/Utils' import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.UiTest'; +/* + * SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0010:设置文本颜色 + * + * Settings.createWindow(config.url): + * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 + * + * windowSnap.snapShot(globalThis.context): + * 窗口截屏&图片文件保存,存储在设备端 + * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 + * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 + * + * Logger日志使用方法: + * import Logger form './model/Logger' + * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) + * */ + export default function UIAttributeFontInterface002() { describe('UIAttributeFontInterface002', () => { @@ -1950,5 +1966,1392 @@ export default function UIAttributeFontInterface002() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0160 finish.`); done() }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0170 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0170 + * @tc.desc : Add a Text component, and include a child Span component with a single line of content. Set the + * textBackgroundStyle attribute with the properties: {color: Color.Green, radius: {bottomLeft: 10}} + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0170 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage110") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0170 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0180 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0180 + * @tc.desc : Add a Text component, and include a child Span component with a single line of content. Set the + * textBackgroundStyle attribute with the properties: {color: Color.Green, radius: {bottomRight: 10}} + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0180 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage111") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0180 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0190 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0190 + * @tc.desc : Add a Text component, and include a child Span component with a single line of content. Set the + * textBackgroundStyle attribute with the properties: {color: Color.Green, radius: {topLeft: 10, topRight: 20, + * bottomLeft: 40, bottomRight: 80}} + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0190 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage112") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0190 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0200 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0200 + * @tc.desc : Add a Text component, and include a child Span component with a single line of content. Upon + * clicking the button labeled "Background Color: Red," set the textBackgroundStyle attribute with the + * properties: {color: this.color, radius: 5}. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0200 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage113") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage113')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0200 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0210 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0210 + * @tc.desc : Add a Text component, and include a child `Span` component with a single line of content. + * Upon clicking the button labeled "Corner Radius: 10," set the `textBackgroundStyle` attribute with the + * properties: `{color: Color.Green, radius: this.number}` where `this.number` is dynamically set to a value + * (10, 20, or 30) based on the button click. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0210 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage114") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button_20: Component = await driver.findComponent(ON.id('fontAttributePage114_20')); + await button_20.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let button_30: Component = await driver.findComponent(ON.id('fontAttributePage114_30')); + await button_30.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0210 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0220 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0220 + * @tc.desc : Add a Text component, and include a child `Span` component with a single line of content. + * Set the `textBackgroundStyle` attribute with a radius of 5. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0220 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage115") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0220 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0230 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0230 + * @tc.desc : Add a Text component, and include a child `Span` component with a single line of content. + * Set the `textBackgroundStyle` attribute with the color property to `Color.Green` + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0230 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage116") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0230 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0240 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0240 + * @tc.desc : Add a Text component, and within it, add a `ContainerSpan`. Inside the `ContainerSpan`, + * include both a `Span` and an `ImageSpan` to be displayed in a single line. Set the `textBackgroundStyle` + * property of the `ContainerSpan` with the style: `{color: Color.Green, radius: 5}`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0240 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage117") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0240 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0250 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0250 + * @tc.desc : Add a Text component, and within it, add a `ContainerSpan`. Inside the `ContainerSpan`, + * set both a `Span` and an `ImageSpan` to display in a single line. Ensure the dimensions of the `ImageSpan` are + * larger than those of the `Span`. Set the `textBackgroundStyle` property of the `ContainerSpan` with the style: + * `{color: Color.Green, radius: 5}`. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0250 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage118") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0250 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0260 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0260 + * @tc.desc : Add Text Component Add ContainerSpan, configure Span and ImageSpan within the component to display + * in a single line Set textBackgroundStyle({color: Color.Green, radius: 5}) on ContainerSpan to dynamically change + * font size and image size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0260 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage119") + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + windowSnap.snapShot() + let fontSize: Component = await driver.findComponent(ON.id('fontAttributePage119_01')); + let imageSize: Component = await driver.findComponent(ON.id('fontAttributePage119_02')); + await fontSize.click() + await imageSize.click() + await Utils.sleep(1000) + windowSnap.snapShot() + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0260 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0270 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0270 + * @tc.desc : Add a Text component, and within it, add a ContainerSpan. Inside the ContainerSpan, set both a Span + * and an ImageSpan to be displayed in a single line. For the ImageSpan within the ContainerSpan, set the + * textBackgroundStyle to {color: Color.Red, radius: 5}. For the Span within the ContainerSpan, set the + * textBackgroundStyle to {color: Color.Blue, radius: 5}. Additionally, set the textBackgroundStyle for the + * ContainerSpan itself to {color: Color.Green, radius: 5}. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0270 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage120") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0270 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0280 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0280 + * @tc.desc : Add a Text component, and within it, add a ContainerSpan. Inside the ContainerSpan, include both a + * Span and an ImageSpan to be displayed in a single line. For the Span within the ContainerSpan, set the + * textBackgroundStyle to {color: Color.Blue, radius: 5}. For the ContainerSpan itself, set the textBackgroundStyle + * to {color: Color.Green, radius: 5}. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0280 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage121") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0280 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0290 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0290 + * @tc.desc : Add a Text component with a blue background color by setting backgroundColor to Blue. Within the + * Text component, add a ContainerSpan. Inside the ContainerSpan, include both a Span and an ImageSpan to be + * displayed in a single line. Set the textBackgroundStyle for the ContainerSpan to {color: Color.Red, radius: 5}. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0290 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage122") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0290 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0300 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0300 + * @tc.desc : Add a Text component with rounded corners for the border by setting borderRadius to 10. Within the + * Text component, add a ContainerSpan. Inside the ContainerSpan, include both a Span and an ImageSpan to be + * displayed in a single line. Set the textBackgroundStyle for the ContainerSpan to {color: Color.Red, radius: 5}. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0300 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage123") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0300 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0310 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0310 + * @tc.desc : Add a Text component and within it, add a ContainerSpan. Inside the ContainerSpan, include multiple + * Span and ImageSpan components to be displayed in a single line. Set the textBackgroundStyle for the + * ContainerSpan with the properties: {color: Color.Red, radius: 5}. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0310 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage124") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0310 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0320 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0320 + * @tc.desc : Add a Text component and within it, add a ContainerSpan. Inside the ContainerSpan, include multiple + * Span and ImageSpan components, with content that exceeds three lines. Set the textBackgroundStyle for the + * ContainerSpan with the properties: {color: Color.Red, radius: 5}. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0320 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage125") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0320 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0330 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0330 + * @tc.desc : Add a Text component and within it, add a ContainerSpan. Inside the ContainerSpan, include multiple + * Span and ImageSpan components, with content that exceeds three lines. Set the textBackgroundStyle for the + * ContainerSpan with the properties: {color: Color.Red, radius: 5}. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0330 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage126") + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let widthDec: Component = await driver.findComponent(ON.id('fontAttributePage126_01')); + let widthInc: Component = await driver.findComponent(ON.id('fontAttributePage126_02')); + await widthDec.click() + await widthInc.click() + await Utils.sleep(1000) + windowSnap.snapShot() + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0330 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0010 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0010 + * @tc.desc : Add a Text component with the following settings: .maxLines(2), .width('220vp') + * (without setting the height), .minFontSize(14), .maxFontSize(24). Call the measureTextSize method twice to + * compare the text height when the Text component's maxLines is set versus when it's set to maxLines + 1. + * Add a TextInput component and assign the input content to the Text component. + * Set the textIndent property to 10, and input the text "文本截断是按字截断". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0010 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage127") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage127')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0010 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0020 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0020 + * @tc.desc : Set the textIndent property to 10, and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本i ams". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0020 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage128") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage128')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0020 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0030 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0030 + * @tc.desc : Set the textIndent property to 0, and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本i am". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0020 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage129") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage129')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0020 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0040 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0040 + * @tc.desc : Set the textIndent property to 0, and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本i am asdf". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0040 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage130") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage130')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0040 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0050 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0050 + * @tc.desc : Set the textIndent property to -10, and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本i am". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0050 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage131") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage131')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0050 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0060 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0060 + * @tc.desc : Set the textIndent property to -10, and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本i am asdf". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0060 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage132") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage132')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0060 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0070 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0070 + * @tc.desc : Set the textIndent property to '0', and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本i am". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0070 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage133") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage133')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0070 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0080 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0080 + * @tc.desc : Set the textIndent property to '0', and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本i am asdf". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0080 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage134") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage134')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0080 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0090 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0090 + * @tc.desc : Set the textIndent property to '30px', and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0090 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage135") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage135')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0090 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0100 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0100 + * @tc.desc : Set the textIndent property to '30px', and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本i ams". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0100 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage136") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage136')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0100 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0110 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0110 + * @tc.desc : Set the textIndent property to '-10px', and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本i am". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0110 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage137") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage137')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0110 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0120 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0120 + * @tc.desc : Set the textIndent property to '-10px', and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本i am asdf". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0120 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage138") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage138')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0120 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0130 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0130 + * @tc.desc : Set the textIndent property to '10%', and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0130 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage139") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage139')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0130 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0140 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0140 + * @tc.desc : Set the textIndent property to '10%', and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本i am". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0140 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage140") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage140')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0140 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0150 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0150 + * @tc.desc : Set the textIndent property to 'abc', and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本i am". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0150 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage141") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage141')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0150 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0160 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0160 + * @tc.desc : Set the textIndent property to 'abc', and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本i am asdf". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0160 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage142") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage142')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0160 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0170 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0170 + * @tc.desc : Do not set the textIndent property and input the text "本截断是按字截断文本截断是按字截断文本截断是按字截 + * 断文本i am". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0170 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage143") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage143')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0170 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0180 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0180 + * @tc.desc : Do not set the textIndent property and input the text "本截断是按字截断文本截断是按字截断文本截断是按字 + * 截断文本i am asdf". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0180 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage144") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage144')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0180 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0190 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0190 + * @tc.desc : Set the wordBreak property to NORMAL, and input the text "文本截断是按字截断". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0190 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage145") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage145')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0190 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0200 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0200 + * @tc.desc : Set the wordBreak property to NORMAL, and input the text + * "本截断是按字截断文本截断是按字截断文本截断是按字截断文本是按字". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0200 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage146") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage146')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0200 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0210 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0210 + * @tc.desc : Set the wordBreak property to NORMAL, and input the text + * "てられますテキスト切り捨ては単語によって切り捨て". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0210 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage147") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage147')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0210 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0220 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0220 + * @tc.desc : Set the wordBreak property to NORMAL, and input the text + * "この切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によって切り捨て + * られますテキストは単語によって切り". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0220 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage148") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage148')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0220 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0230 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0230 + * @tc.desc : Set the wordBreak property to NORMAL, and input the text + * "이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0230 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage149") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage149')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0230 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0240 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0240 + * @tc.desc : Set the wordBreak property to NORMAL, and input the text + * "이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. + * 텍스트 잘림은 단어로 자릅니다". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0240 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage150") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage150')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0240 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0250 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0250 + * @tc.desc : Set the wordBreak property to NORMAL, and input the text + * "This truncation is truncated text by". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0250 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage151") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage151')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0250 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0260 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0260 + * @tc.desc : Set the wordBreak property to NORMAL, and input the text + * "This truncation is truncating text by word Truncating text by word Truncating text by word Truncating + * text by word Truncating text by word Yes". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0260 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage152") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage152')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0260 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0270 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0270 + * @tc.desc : Set the wordBreak property to NORMAL, and input the text + * "按字截断によって切이 잘림This truncation is". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0270 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage153") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage153')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0270 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0280 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0280 + * @tc.desc : Set the wordBreak property to NORMAL, and input the text + * "按字截断によって切이 잘림This truncation is按字截断によって切이 잘림This truncation is按字截断によって切이 잘림This + * truncation is按字截断によって切이 잘림This truncation is". + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0280 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage154") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage154')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0280 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0290 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0290 + * @tc.desc : Set the wordBreak property to BREAK_ALL, and input the text + * "文本截断是按字截断" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0290 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage155") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage155')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0290 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0300 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0300 + * @tc.desc : Set the wordBreak property to BREAK_ALL, and input the text + * "本截断是按字截断文本截断是按字截断文本截断是按字截断文本是按字" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0300 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage156") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage156')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0300 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0310 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0310 + * @tc.desc : Set the wordBreak property to BREAK_ALL, and input the text + * "てられますテキスト切り捨ては単語によって切り捨て" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0310 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage157") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage157')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0310 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0320 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0320 + * @tc.desc : Set the wordBreak property to BREAK_ALL, and input the text + * "この切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によって切り捨てられ + * ますテキストは単語によって切り" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0320 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage158") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage158')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0320 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0330 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0330 + * @tc.desc : Set the wordBreak property to BREAK_ALL, and input the text + * "이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0330 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage159") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage159')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0330 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0340 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0340 + * @tc.desc : Set the wordBreak property to BREAK_ALL, and input the text + * "이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. + * 텍스트 잘림은 단어로 자릅니다" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0340 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage160") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage160')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0340 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0350 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0350 + * @tc.desc : Set the wordBreak property to BREAK_ALL, and input the text + * "This truncation is truncated text by" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0350 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage161") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage161')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0350 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0360 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0360 + * @tc.desc : Set the wordBreak property to BREAK_ALL, and input the text + * "This truncation is truncating text by word Truncating text by word Truncating text by word Truncating text + * by word Truncating text by word Yes by word Truncating text by word" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0360 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage162") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage162')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0360 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0370 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0370 + * @tc.desc : Set the wordBreak property to BREAK_ALL, and input the text + * "按字截断によって切이 잘림This truncation is" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0370 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage163") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage163')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0370 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0380 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0380 + * @tc.desc : Set the wordBreak property to BREAK_ALL, and input the text + * "按字截断によって切이 잘림This truncation is按字截断によって切이 잘림This truncation is按字截断によって切이 잘림This + * truncation is按字截断によって切이 잘림This truncation is" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0380 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage164") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage164')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0380 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0390 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0390 + * @tc.desc : Set the wordBreak property to BREAK_WORD, and input the text + * "文本截断是按字截断" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0390 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage165") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage165')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0390 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0400 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0400 + * @tc.desc : Set the wordBreak property to BREAK_WORD, and input the text + * "本截断是按字截断文本截断是按字截断文本截断是按字截断文本是按字" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0400 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage166") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage166')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0400 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0410 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0410 + * @tc.desc : Set the wordBreak property to BREAK_WORD, and input the text + * "てられますテキスト切り捨ては単語によって切り捨て" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0410 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage167") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage167')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0410 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0420 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0420 + * @tc.desc : Set the wordBreak property to BREAK_WORD, and input the text + * "この切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によって切り捨てられます + * テキストは単語によって切り" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0420 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage168") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage168')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0420 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0430 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0430 + * @tc.desc : Set the wordBreak property to BREAK_WORD, and input the text + * "이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0430 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage169") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage169')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0430 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0440 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0440 + * @tc.desc : Set the wordBreak property to BREAK_WORD, and input the text + * "이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 + * 잘림은 단어로 자릅니다" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0440 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage170") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage170')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0440 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0450 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0450 + * @tc.desc : Set the wordBreak property to BREAK_WORD, and input the text + * "This truncation is truncated text by" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0450 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage171") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage171')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0450 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0460 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0460 + * @tc.desc : Set the wordBreak property to BREAK_WORD, and input the text + * "This truncation is truncating text by word Truncating text by word Truncating text by word Truncating text by + * word Truncating text by word Yes by word" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0460 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage172") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage172')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0460 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0470 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0470 + * @tc.desc : Set the wordBreak property to BREAK_WORD, and input the text + * "按字截断によって切이 잘림This truncation is" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0470 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage173") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage173')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0470 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0480 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0480 + * @tc.desc : Set the wordBreak property to BREAK_WORD, and input the text + * "按字截断によって切이 잘림This truncation is按字截断によって切이 잘림This truncation is按字截断によって切이 잘림This + * truncation is按字截断によって切이 잘림This truncation" + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0480 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage174") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('fontAttributePage174')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0480 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0490 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0490 + * @tc.desc : Set the maxLines property to 3 and input the text "本截断是按字截断文本截断是按字截断文本截断是按字截断文本 + * i am本截断是按字截断文本截断是按字截断文本截断是按字截断文本". When you change maxLines from 3 to 5, input an + * additional character. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0490 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage175") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributePage175')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0490 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0500 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0500 + * @tc.desc : Set maxLines to 3 and input the text "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am本截断是按字截 + * 断文本截断是按字截断文本截断是按字截断文本". After changing maxLines from 5 back to 3, input an additional character. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0500 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage176") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributePage176')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0500 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0510 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0510 + * @tc.desc : Set the Text component's width to 100%, leave the height unset, and set maxLines to 2. Input the + * text "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am本截断是按字截断文本截断是按字截断文本截断是". After switching + * from portrait to landscape orientation, input an additional character. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0510 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage177") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributePage177')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0510 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0520 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0520 + * @tc.desc : Set the `Text` component's width to 100%, do not set its height, and set `maxLines` to 2. Input the + * text "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am本截断是按字截断文本截断是按字截断文本截断是". After switching + * from landscape to portrait orientation, input an additional character. + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0520 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage178") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributePage178')); + await button.click(); + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0520 finish.`); + done() + }) }) } -- Gitee From 3fde56f9a218ddfb597ebe2713c9fd730d973a5b Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 16:25:38 +0800 Subject: [PATCH 03/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../UIAttributeFontInterface003.test.ets | 1909 +++++++++++++++++ 1 file changed, 1909 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets new file mode 100644 index 00000000..be986851 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets @@ -0,0 +1,1909 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, + ResizeDirection, WindowMode, PointerMatrix} from '@ohos.UiTest'; + +export default function UIAttributeFontInterface003() { + + describe('UIAttributeFontInterface003', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0130 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0130 + * @tc.desc : TextInput component + * 1. Tap the input box and input characters. + * 2. Tap the `decoration.type` button to change the decoration line type (Underline, LineThrough, Overline, None). + * 3. Tap the `decoration.color` button to change the decoration line color (color.Pink, 0x008000, 'rgb(255, 0, 0)', + * #0000ff, $r('app.color.Yellow')). + * 4. Tap the `letterSpacing` button to adjust the character spacing (-2, 0, 3, '5px', '10%'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0130 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle01") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle01_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle01_2')); + for(let i_01 = 0; i_01<9; i_01++){ + await button1.click() + for(let i_02 = 0; i_02<5; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==4 && i_01 == 8){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0130 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0140 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0140 + * @tc.desc : TextInput component + * 1. Tap the input box and input text, special characters, and spaces. + * 2. Do not set the letterSpacing property. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0140 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle02") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle02')); + for(let i = 0; i<9; i++){ + await button1.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i==8){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0140 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0150 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0150 + * @tc.desc : TextInput component + * 1. Tap the input box to input text, special characters, and spaces. + * 2. Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + * 3. Clear the text and then input again. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0150 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle03") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle03_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle03_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle03_3')); + let button4: Component = await driver.findComponent(ON.id('fontAttributeAndStyle03_4')); + for(let i_01 = 0; i_01<3; i_01++){ + await button1.click() + for(let i_02 = 0; i_02<5; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + await button3.click() + await button4.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==4 && i_01 == 2){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0150 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0160 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0160 + * @tc.desc : TextInput component + * Set the character spacing of input box A to 3, and set the character spacing of input box B to -2. + * Drag and drop, or copy, the text from input box A to input box B. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0160 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle04") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle04_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle04_2')); + await button1.longClick() + let selectAll: Component = await driver.findComponent(ON.text('全选')); + if(selectAll){ + await selectAll.click() + await Utils.sleep(1000) + let copy: Component = await driver.findComponent(ON.text('复制')); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await copy.click() + await Utils.sleep(1000) + await button2.longClick() + await Utils.sleep(1000) + await paste.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + } else { + let copy: Component = await driver.findComponent(ON.text('复制')); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await copy.click() + await Utils.sleep(1000) + await button2.longClick() + await Utils.sleep(1000) + await paste.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + } + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0160 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0170 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0170 + * @tc.desc : TextInput component + * 1. In the empty text state, display the hint text. + * 2. Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0170 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle05") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle05')); + for(let i = 0; i<5; i++){ + await button.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i==4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0170 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0180 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0180 + * @tc.desc : TextInput component + * 1. Tap the `type` button to change the input field type to (Normal, Password, Email, Number, PhoneNumber, + * USER_NAME, NEW_PASSWORD, NUMBER_PASSWORD, NUMBER_DECIMAL). + * 2. Tap the input box to input characters. + * 3. Tap the `letterSpacing` button to dynamically change the line height to (-2,0,3,"5px","10%"). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0180 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle06") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle06_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle06_02')); + for(let i_01 = 0; i_01 < 10; i_01++){ + await button1.click() + for(let i_02 = 0; i_02 < 5; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==4 && i_01==9){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0180 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0190 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0190 + * @tc.desc : TextInput component + * 1. Tap the `style` button to change the input box style to (Default, Inline). + * 2. Tap the `letterSpacing` button to dynamically change the line height to (-2,0,3,"5px","10%"). + * 3. Tap the input box to input characters. + * 4. In inline mode, input multiple lines of text. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0190 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle07") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle07_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle07_2')); + for(let i_01 = 0; i_01 < 10; i_01++){ + await button1.click() + for(let i_02 = 0; i_02 < 5; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==4 && i_01==9){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0190 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0200 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0200 + * @tc.desc : TextInput component + * 1. Tap the input box to input characters. + * 2. Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + * 3. Tap the `textAlign` button to toggle the text alignment between (start, center, end). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0200 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle08") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle08_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle08_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle08_3')); + await button3.click() + for(let i_01 = 0; i_01<5; i_01++){ + await button1.click() + for(let i_02 = 0; i_02<3; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==2 && i_01 == 4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0200 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0210 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0210 + * @tc.desc : TextInput component + * Click on the input box and enter characters. + * Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + * Click the "fontSize" button to dynamically change the font size (0, 10, 20, 30). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0210 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle09") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle09_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle09_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle09_3')); + await button1.click() + for(let i_01 = 0; i_01<5; i_01++){ + await button2.click() + for(let i_02 = 0; i_02<4; i_02++){ + await button3.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02 == 3 && i_01 == 4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0210 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0220 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0220 + * @tc.desc : TextInput component + * Click on the input box and enter characters. + * Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + * Long press to select a phrase + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0220 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle10") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle10_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle10_2')); + let input: Component = await driver.findComponent(ON.id('fontAttributeAndStyle10')); + await button1.click() + for(let i_01 = 0; i_01<5; i_01++){ + await button2.click() + await Utils.sleep(1000) + await input.longClick() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_01 == 4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0220 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0230 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0230 + * @tc.desc : TextInput component + * 1. Tap the input box to input characters. + * 2. Tap the `lineHeight` button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0230 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle11") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle11')); + for(let i = 0; i<6; i++){ + await button.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i==5){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0230 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0240 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0240 + * @tc.desc : TextInput component + * Click on the input box and enter characters. + * Tap the `lineHeight` button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + * Click the "fontSize" button to dynamically change the font size (0, 10, 20, 30). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0240 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle12") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle12_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle12_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle12_3')); + await button1.click() + for(let i_01 = 0; i_01<6; i_01++){ + await button2.click() + for(let i_02 = 0; i_02<4; i_02++){ + await button3.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02 == 3 && i_01 == 5){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0240 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0250 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0250 + * @tc.desc : TextInput component + * 1. In the empty text state, display the hint text. + * 2. Tap the `lineHeight` button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0250 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle13") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle13')); + for(let i = 0; i<6; i++){ + await button.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i==5){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0250 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0260 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0260 + * @tc.desc : TextInput component + * 1.Tap the input box to input text, special characters, and spaces. + * 2.Tap the lineHeight button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + * 3.After clearing the text, input characters again. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0260 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle14") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle14_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle14_02')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle14_03')); + for(let i_01 = 0; i_01 < 6; i_01++){ + await button2.click() + for(let i_02 = 0; i_02 < 3; i_02++){ + await button1.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + await button3.click() + if(i_02==2 && i_01 == 5){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0260 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0270 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0270 + * @tc.desc : TextInput component + * 1. Tap the `type` button to change the input field type to (Normal, Password, Email, Number, PhoneNumber, + * USER_NAME, NEW_PASSWORD, NUMBER_PASSWORD, NUMBER_DECIMAL). + * 2. Tap the input box to input characters. + * 3. Tap the `lineHeight` button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0270 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle15") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle15_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle15_02')); + for(let i_01 = 0; i_01 < 10; i_01++){ + await button1.click() + for(let i_02 = 0; i_02 < 6; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==5 && i_01==9){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0270 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0280 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0280 + * @tc.desc : TextInput component + * 1. Tap the `style` button to change the input box style to (Default, Inline). + * 2. Tap the `lineHeight` button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + * 3. Tap the input box to input characters. + * 4. In inline mode, input multiple lines of text. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0280 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle16") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle16_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle16_2')); + for(let i_01 = 0; i_01 < 10; i_01++){ + await button1.click() + for(let i_02 = 0; i_02 < 6; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==5 && i_01==9){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0280 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0290 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0290 + * @tc.desc : TextInput component + * 1. Tap the input box and input characters. + * 2. Tap the `lineHeight` button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + * 3. Long press to select text. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0290 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle17") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle17_1')); + let input: Component = await driver.findComponent(ON.type('TextInput')); + for(let i_01 = 0; i_01 < 10; i_01++){ + await button.click() + await Utils.sleep(1000) + await input.longClick() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_01==9){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0290 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0300 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0300 + * @tc.desc : TextInput component + * 1. Tap the input box to input characters. + * 2. Tap the `lineHeight` button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + * 3. Tap the `decoration` button to display the decoration line. + * 4. Tap the `style` button to change the decoration line style to (Default, Inline). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0300 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle18") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle18_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle18_02')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle18_03')); + await button3.click() + for(let i_01 = 0; i_01 < 2; i_01++){ + await button1.click() + for(let i_02 = 0; i_02 < 6; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==5 && i_01==1){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0300 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0310 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0310 + * @tc.desc : TextArea component + * 1. Tap the input box to input multiple lines of characters. + * 2. Tap the `decoration.type` button to change the decoration line type (Underline, LineThrough, Overline, None). + * 3. Tap the `decoration.color` button to change the decoration line color (color.Pink, 0x008000, 'rgb(255, 0, 0)', + * #0000ff, $r('app.color.Yellow')). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0310 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle19") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle19_01')); + let input: Component = await driver.findComponent(ON.id('fontAttributeAndStyle19_2')); + await input.click() + for(let i_01 = 0; i_01 < 9; i_01++){ + await button.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_01==8){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0310 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0320 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0320 + * @tc.desc : TextArea component + * 1. Tap the input box to input characters. + * 2. Do not set the `decoration` property. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0320 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle20") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let input: Component = await driver.findComponent(ON.id('fontAttributeAndStyle20')); + await input.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0320 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0330 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0330 + * @tc.desc : TextArea component + * 1. Tap the input box to input characters. + * 2. Tap the `decoration.type` button to change the decoration line type (Underline, LineThrough, Overline, None). + * 3. Do not set the `decoration.color`. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0330 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle21") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle21_01')); + let input: Component = await driver.findComponent(ON.id('fontAttributeAndStyle21_2')); + await input.click() + for(let i_01 = 0; i_01 < 4; i_01++){ + await button.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_01==3){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0330 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0360 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0360 + * @tc.desc : TextArea component + * 1. Do not input any characters, leave the text field empty. + * 2. Tap the `decoration.type` button to change the decoration line type (Underline, LineThrough, Overline, None). + * 3. Tap the `decoration.color` button to change the decoration line color (color.Pink, 0x008000, 'rgb(255, 0, 0)', + * #0000ff, $r('app.color.Yellow')). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0360 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle23") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle23')); + for(let i_01 = 0; i_01 < 9; i_01++){ + await button.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_01==8){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0360 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0370 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0370 + * @tc.desc : TextArea component + * 1. Tap the `type` button to change the input field type to (Normal, Email, Number, PhoneNumber). + * 2. Tap the `decoration.type` button to change the decoration line type (Underline, LineThrough, Overline, None). + * 3. Tap the `decoration.color` button to change the decoration line color (color.Pink, 0x008000, 'rgb(255, 0, 0)', + * #0000ff, $r('app.color.Yellow')). + * 4. Tap the input box to input characters. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0370 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle24") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle24_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle24_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle24_3')); + await button3.click() + await Utils.sleep(1000) + for(let i_01 = 0; i_01 < 4; i_01++){ + await button1.click() + for(let i_02 = 0; i_02 < 9; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==8 && i_01==3 ){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0370 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0380 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0380 + * @tc.desc : TextArea component + * 1. Tap the `style` button to change the input box style to (Default, Inline). + * 2. Tap the `decoration.type` button to change the decoration line type (Underline, LineThrough, Overline, None). + * 3. Tap the `decoration.color` button to change the decoration line color (color.Pink, 0x008000, 'rgb(255, 0, 0)', + * #0000ff, $r('app.color.Yellow')). + * 4. Tap the input box to input multiple lines of text. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0380 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle25") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle25_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle25_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle25_3')); + await button3.click() + await Utils.sleep(1000) + for(let i_01 = 0; i_01 < 2; i_01++){ + await button1.click() + for(let i_02 = 0; i_02 < 9; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==8 && i_01==1){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0380 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0390 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0390 + * @tc.desc : TextArea component + * 1. Tap the input box to input multiple lines of characters. + * 2. Tap the `decoration.type` button to change the decoration line type (Underline, LineThrough, Overline, None). + * 3. Tap the `decoration.color` button to change the decoration line color (color.Pink, 0x008000, 'rgb(255, 0, 0)', + * #0000ff, $r('app.color.Yellow')). + * 4. Tap the `textAlign` button to toggle the text alignment (start, center, end). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0390 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle26") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle26_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle26_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle26_3')); + await button3.click() + await Utils.sleep(1000) + for(let i_01 = 0; i_01 < 9; i_01++){ + await button2.click() + for(let i_02 = 0; i_02 < 3; i_02++){ + await button1.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==2 && i_01==8){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0390 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0400 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0400 + * @tc.desc : TextArea component + * 1. Tap the input box to input characters. + * 2. Tap the `decoration.type` button to change the decoration line type (Underline, LineThrough, Overline, None). + * 3. Tap the `decoration.color` button to change the decoration line color (color.Pink, 0x008000, 'rgb(255, 0, 0)', + * #0000ff, $r('app.color.Yellow')). + * 4. Tap the `fontSize` button to dynamically change the font size (0, 10, 20, 30). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0400 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle27") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle27_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle27_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle27_3')); + await button3.click() + await Utils.sleep(1000) + for(let i_01 = 0; i_01 < 9; i_01++){ + await button2.click() + for(let i_02 = 0; i_02 < 4; i_02++){ + await button1.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==3 && i_01==8){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0400 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0410 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0410 + * @tc.desc : TextArea component + * 1. Tap the `maxLength` button to set the maximum number of characters (20, 50). + * 2. Tap the `showCounter` and set it to true to display the character count (true, false). + * 3. Tap the `decoration.type` button to change the decoration line type (Underline, LineThrough, Overline, None). + * 4. Tap the `decoration.color` button to change the decoration line color (color.Pink, 0x008000, 'rgb(255, 0, 0)', + * #0000ff, $r('app.color.Yellow')). + * 5. Tap the input box to input characters. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0410 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle28") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle28_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle28_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle28_3')); + let button4: Component = await driver.findComponent(ON.id('fontAttributeAndStyle28_4')); + let button5: Component = await driver.findComponent(ON.id('fontAttributeAndStyle28_5')); + await button3.click() + await Utils.sleep(1000) + for(let i_01 = 0; i_01 < 2; i_01++){ + await button1.click() + for(let i_02 = 0; i_02 < 2; i_02++){ + await button2.click() + for(let i_03 = 0; i_03 < 9; i_03++){ + await button3.click() + await button4.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + await button5.click() + if(i_01==1 && i_02==1 && i_03==8){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0410 finish.`); + done() + } + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0420 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0420 + * @tc.desc : TextArea component + * 1. Tap the input box to input characters. + * 2. Tap the `decoration.type` button to change the text decoration type (Underline, LineThrough, Overline, None). + * 3. Tap the `decoration.color` button to change the text decoration color (color.Pink, 0x008000, 'rgb(255, 0, 0)' + * , #0000ff, $r('app.color.Yellow')). + * 4. Tap the `letterSpacing` button to adjust the spacing between letters (-2, 0, 3, '5px', '10%'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0420 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle29") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle29_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle29_2')); + for(let i_01 = 0; i_01<9; i_01++){ + await button1.click() + for(let i_02 = 0; i_02<5; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==4 && i_01 == 8){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0420 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0430 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0430 + * @tc.desc : TextArea component + * 1. Tap the input box to input text, special characters, and spaces. + * 2. Do not set the `letterSpacing` property. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0430 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle30") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle30')); + for(let i = 0; i<3; i++){ + await button.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i==2){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0430 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0440 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0440 + * @tc.desc : TextArea component + * 1. Tap the input box to input text, special characters, and spaces. + * 2. Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + * 3. Clear the text and then input again. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0440 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle31") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle31_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle31_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle31_3')); + let button4: Component = await driver.findComponent(ON.id('fontAttributeAndStyle31_4')); + for(let i_01 = 0; i_01<3; i_01++){ + await button1.click() + for(let i_02 = 0; i_02<5; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + await button3.click() + await button4.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==4 && i_01 == 2){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0440 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0460 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0460 + * @tc.desc : TextArea component + * 1. In the empty text state, display the hint text. + * 2. Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0460 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle32") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle32')); + for(let i = 0; i<5; i++){ + await button.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i==4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0460 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0470 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0470 + * @tc.desc : TextArea component + * 1. Tap the `type` button to change the input field type to (Normal, Email, Number, PhoneNumber). + * 2. Tap the input box to input characters. + * 3. Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0470 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle33") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle33_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle33_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle33_3')); + for(let i_01 = 0; i_01<4; i_01++){ + await button1.click() + await button2.click() + for(let i_02 = 0; i_02<5; i_02++){ + await button3.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==4 && i_01 == 3){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0470 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0480 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0480 + * @tc.desc : TextArea component + * 1. Tap the `style` button to change the input box style to (Default, Inline). + * 2. Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + * 3. Tap the input box to input multiple lines of text. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0480 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle34") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle34_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle34_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle34_3')); + for(let i_01 = 0; i_01<2; i_01++){ + await button1.click() + for(let i_02 = 0; i_02<5; i_02++){ + await button2.click() + await button3.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==4 && i_01 == 1){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0480 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0490 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0490 + * @tc.desc : TextArea component + * 1. Tap the input box to input characters. + * 2. Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + * 3. Tap the `textAlign` button to toggle the text alignment between (start, center, end). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0490 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle35") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle35_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle35_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle35_3')); + await button3.click() + for(let i_01 = 0; i_01<5; i_01++){ + await button1.click() + for(let i_02 = 0; i_02<3; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==2 && i_01 == 4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0490 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0500 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0500 + * @tc.desc : TextArea component + * Click on the input box and enter characters. + * Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + * Click the "fontSize" button to dynamically change the font size (0, 10, 20, 30). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0500 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle36") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle36_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle36_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle36_3')); + await button3.click() + for(let i_01 = 0; i_01<5; i_01++){ + await button1.click() + for(let i_02 = 0; i_02<4; i_02++){ + await button2.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02 == 3 && i_01 == 4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0500 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0510 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0510 + * @tc.desc : TextArea component + * 1. Tap the input box to input characters. + * 2. Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + * 3. Long press to select a phrase. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0510 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle37") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle37_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle37_2')); + let textArea: Component = await driver.findComponent(ON.type('TextArea')); + await button2.click() + for(let i_01 = 0; i_01<5; i_01++){ + await button1.click() + await textArea.longClick() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_01 == 4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0510 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0520 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0520 + * @tc.desc : TextArea component + * 1. Tap the `maxLength` button to set the maximum number of characters to (20, 50). + * 2. Tap the `showCounter` and set it to true to display the character count; set it to false to hide the count. + * 3. Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + * 4. Tap the input box to input characters. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0520 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle38") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle38_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle38_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle38_3')); + let button4: Component = await driver.findComponent(ON.id('fontAttributeAndStyle38_4')); + for(let i_01 = 0; i_01<2; i_01++){ + await button1.click() + for(let i_02 = 0; i_02<2; i_02++){ + await button2.click() + for(let i_03 = 0; i_03<5; i_03++){ + await button3.click() + await button4.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_01 == 1 && i_02==1 && i_03==4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0520 finish.`); + done() + } + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0530 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0530 + * @tc.desc : TextArea component + * 1. Tap the input box to input characters. + * 2. Tap the `lineHeight` button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0530 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle39") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle39_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle39_2')); + await button1.click() + for(let i = 0; i<5; i++){ + await button2.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i == 4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0530 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0540 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0540 + * @tc.desc : TextArea component + * 1. Tap the input box to input multiple lines of characters. + * 2. Tap the `lineHeight` button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + * 3. Tap the `fontSize` button to dynamically change the font size to (0, 10, 20, 30). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0540 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle40") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle40_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle40_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle40_3')); + await button1.click() + for(let i_01 = 0; i_01<6; i_01++){ + await button2.click() + for(let i_02 = 0; i_02<4; i_02++){ + await button3.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02 == 3 && i_01 == 5){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0540 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0550 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0550 + * @tc.desc : TextArea component + * 1. In the empty text state, display the hint text. + * 2. Tap the `lineHeight` button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0550 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle41") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle41')); + for(let i = 0; i<5; i++){ + await button.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i==4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0550 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0560 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0560 + * @tc.desc : TextArea component + * 1. Tap the input box to input text, special characters, and spaces. + * 2. Tap the `lineHeight` button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + * 3. Clear the text and then input characters again. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0560 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle42") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle42_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle42_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle42_3')); + let button4: Component = await driver.findComponent(ON.id('fontAttributeAndStyle42_4')); + for(let i_01 = 0; i_01<3; i_01++){ + await button1.click() + for(let i_02 = 0; i_02<5; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + await button3.click() + await button4.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==4 && i_01 == 2){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0560 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0570 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0570 + * @tc.desc : TextArea component + * 1. Tap the `type` button to change the input field type to (Normal, Email, Number, PhoneNumber). + * 2. Tap the input box to input characters. + * 3. Tap the `lineHeight` button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0570 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle43") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle43_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle43_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle43_3')); + for(let i_01 = 0; i_01<4; i_01++){ + await button1.click() + for(let i_02 = 0; i_02<6; i_02++){ + await button2.click() + await button3.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==5 && i_01 == 3){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0570 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0580 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0580 + * @tc.desc : TextArea component + * 1. Tap the `style` button to change the input box style to (Default, Inline). + * 2. Tap the `lineHeight` button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + * 3. Tap the input box to input characters. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0580 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle44") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle44_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle44_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle44_3')); + for(let i_01 = 0; i_01<2; i_01++){ + await button1.click() + for(let i_02 = 0; i_02<6; i_02++){ + await button3.click() + await button2.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==5 && i_01 == 1){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0580 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0590 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0590 + * @tc.desc : TextArea component + * 1. Tap the input box to input characters. + * 2. Tap the `lineHeight` button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + * 3. Long press to select the text. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0590 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle45") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle45_1')); + let textArea: Component = await driver.findComponent(ON.type('TextArea')); + for(let i_01 = 0; i_01 < 5; i_01++){ + await button.click() + await Utils.sleep(1000) + await textArea.longClick() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_01==4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0590 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0600 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0600 + * @tc.desc : TextArea component + * 1. Tap the input box to input characters. + * 2. Tap the `lineHeight` button to dynamically change the line height to (-5, 0, 10, 20, '30%', '40vp'). + * 3. Tap the `decoration` button to display the decoration line. + * 4. Tap the `style` button to change the decoration line style to (Default, Inline). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0600 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle46") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle46_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle46_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle46_3')); + let button4: Component = await driver.findComponent(ON.id('fontAttributeAndStyle46_4')); + await button4.click() + for(let i_01 = 0; i_01<6; i_01++){ + await button1.click() + for(let i_02 = 0; i_02<2; i_02++){ + await button2.click() + await button3.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==1 && i_01 == 5){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0600 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0610 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0610 + * @tc.desc : Search component + * 1. Tap the input box to input characters. + * 2. Tap the `decoration.type` button to change the text decoration type to (Underline, LineThrough, Overline, + * None). + * 3. Tap the `decoration.color` button to change the text decoration color to (color.Pink, 0x008000, + * 'rgb(255, 0, 0)', #0000ff, $r('app.color.Yellow')). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0610 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle47") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle47_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle47_2')); + await button1.click() + for(let i_01 = 0; i_01<9; i_01++){ + await button2.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_01 == 5){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0610 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0620 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0620 + * @tc.desc : Search component + * 1. Tap the input box to input characters. + * 2. Do not set the `decoration` property. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0620 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle48") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle48')); + await button.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0620 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0630 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0630 + * @tc.desc : Search component + * 1. Tap the input box to input characters. + * 2. Tap the `decoration.type` button to change the decoration line type (Underline, LineThrough, Overline, None). + * 3. Do not set the `decoration.color`. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0630 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle49") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle49_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle49_2')); + await button1.click() + for(let i_01 = 0; i_01<4; i_01++){ + await button2.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_01 == 5){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0630 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0700 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0700 + * @tc.desc : Search component + * 1. Tap the input box to input characters. + * 2. Tap the `decoration.type` button to change the decoration line type (Underline, LineThrough, Overline, None). + * 3. Tap the `decoration.color` button to change the decoration line color (color.Pink, 0x008000, 'rgb(255, 0, 0)', + * #0000ff, $r('app.color.Yellow')). + * 4. Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0700 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle50") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle50_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle50_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle50_3')); + await button1.click() + for(let i_01 = 0; i_01<9; i_01++){ + await button2.click() + for(let i_02 = 0; i_02<5; i_02++){ + await button3.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02 == 4 && i_01 == 8){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0700 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0720 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0720 + * @tc.desc : Search component + * 1. Tap the input box to input text, special characters, and spaces. + * 2. Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + * 3. Clear the text and then input again. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0720 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle51") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle51_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle51_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle51_3')); + let button4: Component = await driver.findComponent(ON.id('fontAttributeAndStyle51_3')); + await button1.click() + for(let i_01 = 0; i_01<3; i_01++){ + await button2.click() + for(let i_02 = 0; i_02<5; i_02++){ + await button3.click() + await button4.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02 == 4 && i_01 == 2){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0720 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0740 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0740 + * @tc.desc : Search component + * 1. In the empty text state, display the hint text. + * 2. Tap the `letterSpacing` button to adjust the letter spacing to (-2, 0, 3, '5px', '10%'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0740 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle52") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle52')); + for(let i_02 = 0; i_02<5; i_02++){ + await button1.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02 == 4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0740 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0750 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0750 + * @tc.desc : Search component + * Click the "type" button to change the type of the input box (Normal, Email, Number, PhoneNumber) + * Click on the input box and enter characters + * Click the "letterSpacing" button to adjust the letter spacing (-2, 0, 3, '5px', '10%') + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0750', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0750 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle53") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle53_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle53_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle53_3')); + for(let i_01 = 0; i_01<4; i_01++){ + await button1.click() + await button2.click() + for(let i_02 = 0; i_02<5; i_02++){ + await button3.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02 == 4 && i_01 == 3){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0750 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0760 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0760 + * @tc.desc : Search component + * Click on the input box and enter characters. + * Click the "letterSpacing" button to adjust the letter spacing between characters (-2, 0, 3, '5px', '10%'). + * Click the "textAlign" button to switch the text alignment (start, center, end). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0760', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0760 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle54") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle54_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle54_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle54_3')); + await button1.click() + for(let i_01 = 0; i_01<5; i_01++){ + await button2.click() + for(let i_02 = 0; i_02<3; i_02++){ + await button3.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02 == 2 && i_01 == 4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0760 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0780 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0780 + * @tc.desc : Search component + * Click on the input box and enter characters. + * Click the "letterSpacing" button to adjust the spacing between the characters (-2, 0, 3, '5px', '10%'). + * Long-press on the input box to select a word or phrase. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0780', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0780 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle55") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle55_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle55_2')); + let search: Component = await driver.findComponent(ON.type('Search')); + await button1.click() + for(let i_01 = 0; i_01<5; i_01++){ + await button2.click() + await search.longClick() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_01 == 4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0780 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0790 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0790 + * @tc.desc : Search component + * Click on the input box and enter characters. + * Click the "lineHeight" button to change the line height (-5, 0, 10, 20, '30%', '40vp'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0790 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle56") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle56_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle56_2')); + await button1.click() + for(let i_01 = 0; i_01<6; i_01++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_01 == 5){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0790 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0800 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0800 + * @tc.desc : Search component + * Click on the input box and enter characters. + * Click the "lineHeight" button to dynamically change the line height (-5, 0, 10, 20, '30%', '40vp'). + * Click the "fontSize" button to dynamically change the font size (0, 10, 20, 30). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0800 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle57") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle57_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle57_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle57_3')); + await button1.click() + for(let i_01 = 0; i_01<6; i_01++){ + await button2.click() + for(let i_02 = 0; i_02<4; i_02++){ + await button3.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02 == 3 && i_01 == 5){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0800 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0810 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0810 + * @tc.desc : Search component + * Display hint text when the input box is empty. + * Click the "lineHeight" button to dynamically change the line height (-5, 0, 10, 20, '30%', '40vp'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0810', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0810 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle56") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle58')); + for(let i_01 = 0; i_01<6; i_01++){ + await button.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_01 == 5){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0810 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0820 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0820 + * @tc.desc : Search component + * Click on the input box and enter text, special characters, and spaces. + * Click the "lineHeight" button to dynamically change the line height (-5, 0, 10, 20, '30%', '40vp'). + * Clear the text and enter characters again. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0820', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0820 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle59") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle59_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle59_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle59_3')); + let button4: Component = await driver.findComponent(ON.id('fontAttributeAndStyle59_4')); + for(let i_01 = 0; i_01<3; i_01++){ + await button1.click() + for(let i_02 = 0; i_02<5; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + await button3.click() + await button4.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==4 && i_01 == 2){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0820 finish.`); + done() + } + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0830 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0830 + * @tc.desc : Search component + * Click the "type" button to change input type (Normal, Email, Number, PhoneNumber). + * Click on the input box and enter characters. + * Click the "lineHeight" button to change line height (-5, 0, 10, 20, '30%', '40vp'). + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0830', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0830 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle53") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle60_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle60_2')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle60_3')); + for(let i_01 = 0; i_01<4; i_01++){ + await button1.click() + await button2.click() + for(let i_02 = 0; i_02<6; i_02++){ + await button3.click() + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02 == 5 && i_01 == 3){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0830 finish.`); + done() + } + } + } + }) + }) +} -- Gitee From 54d3238471ed6ef23f42d3217182a7ad21cb6c4d Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 16:26:02 +0800 Subject: [PATCH 04/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../UIAttributeFontInterface003.test.ets | 583 ++++++++++++++++++ 1 file changed, 583 insertions(+) diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets index be986851..8df1e724 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets @@ -1905,5 +1905,588 @@ export default function UIAttributeFontInterface003() { } } }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0840 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0840 + * @tc.desc : Search component + * Click on the input box and enter characters. + * Click the "lineHeight" button to dynamically change the line height (-5, 0, 10, 20, '30%', '40vp'). + * Long-press to select text. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0840', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0840 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle61") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle61_1')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle61_2')); + await button1.click() + for(let i_01 = 0; i_01<6; i_01++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_01 == 5){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0840 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0850 + * @tc.name : SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0850 + * @tc.desc : Search component + * Click on the input box and enter characters. + * Click the "lineHeight" button to dynamically change the line height (-5, 0, 10, 20, '30%', '40vp'). + * Click the "decoration" button to display text decoration lines. + */ + it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0850', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0850 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle62") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle62_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle62_02')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle62_03')); + await button1.click() + await button3.click() + for(let i_02 = 0; i_02 < 6; i_02++){ + await button2.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i_02==5){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0850 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0020 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0020 + * @tc.desc : Use the addsymbolspan interface, set value: $r to introduce sys.media.ohos_trash_circle (click to + * add a system resource symbolSpan) + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0020 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle63") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0020 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0030 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0030 + * @tc.desc : Use the addSymbolSpan interface to set value: $r to introduce app.media.img2 (click to add a custom + * symbolSpan) + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0030 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle64") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0030 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0040 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0040 + * @tc.desc : Click on "Add symbolSpan" (to add a symbolSpan using the addSymbolSpan interface without setting + * the offset) + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0040 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle65") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle65_01')); + await button.click() + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0040 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0060 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0060 + * @tc.desc : Click on "fontsize++" / "fontsize--" (to adjust the fontsize in the "Add Symbolspan1" button) + * Click on "Add Symbolspan1" (to add a symbolspan using the addsymbolspan interface) + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0060 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle66") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle66_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle66_02')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle66_03')); + await button1.click() + windowSnap.snapShot() + await Utils.sleep(1000) + await button2.click() + windowSnap.snapShot() + await Utils.sleep(1000) + await button3.click() + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0060 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0070 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0070 + * @tc.desc : Set fontSize to 10, -10, '10abc', '50%' use addSymbolSpan to add + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0070 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle67") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle67_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle67_02')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle67_03')); + let button4: Component = await driver.findComponent(ON.id('fontAttributeAndStyle67_04')); + await button1.click() + windowSnap.snapShot() + await Utils.sleep(1000) + await button2.click() + windowSnap.snapShot() + await Utils.sleep(1000) + await button3.click() + windowSnap.snapShot() + await Utils.sleep(1000) + await button4.click() + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0070 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0080 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0080 + * @tc.desc : Click on "fontcolor" and select from "color.red, color.black, color.pink, {color.red,color.black}, + * {color.red,color.black,color.pink}" (to set the fontcolor in the "Add symbolSpan1" button) + * Click on "Add symbolSpan1" (to add a symbolSpan using the addSymbolSpan interface) + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0080 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle68") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle68_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle68_02')); + await button1.click() + windowSnap.snapShot() + await Utils.sleep(1000) + await button2.click() + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0080 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0090 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0090 + * @tc.desc : Click on "Set fontcolor to 0xff0000" (to set the fontcolor for adding symbolspan2) + * Click on "Add Symbolspan2" (to add a symbolspan using the addsymbolspan interface) + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0090 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle69") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle69_01')); + await button1.click() + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0090 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0100 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0100 + * @tc.desc : Set fontColor, '#008800','rgba(0,255,0,1)','rgb(0,0,255)',then use the addSymbolSpan interface + * to add the symbolSpan + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0100 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle70") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle70_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle70_02')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle70_03')); + await button1.click() + windowSnap.snapShot() + await Utils.sleep(1000) + await button2.click() + windowSnap.snapShot() + await Utils.sleep(1000) + await button3.click() + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0100 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0110 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0110 + * @tc.desc : Click on "fontcolor $r("app.color.ColorRed")" (to set the fontcolor in the "Add symbolSpan3" button) + * Click on "Add symbolSpan3" (to add a symbolSpan using the addSymbolSpan interface) + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0110 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle71") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle71_01')); + await button1.click() + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0110 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0120 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0120 + * @tc.desc : Click on "fontWeight+50" / "fontWeight-50" (to set the fontWeight in the "Add Symbolspan1" button) + * Click on "Add Symbolspan1" (to add a symbolspan using the addsymbolspan interface) + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0120 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle72") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle72_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle72_02')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle72_03')); + await button1.click() + windowSnap.snapShot() + await Utils.sleep(1000) + await button2.click() + windowSnap.snapShot() + await Utils.sleep(1000) + await button3.click() + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0120 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0130 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0130 + * @tc.desc : Set fontWeight=("600","-100","400abc","500abc") and use the addSymbolSpan interface to add a + * symbolSpan. + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0130 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle73") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle73_01')); + let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle73_02')); + let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle73_03')); + let button4: Component = await driver.findComponent(ON.id('fontAttributeAndStyle73_04')); + await button1.click() + windowSnap.snapShot() + await Utils.sleep(1000) + await button2.click() + windowSnap.snapShot() + await Utils.sleep(1000) + await button3.click() + windowSnap.snapShot() + await Utils.sleep(1000) + await button4.click() + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0130 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0140 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0140 + * @tc.desc : Click on "fontWeight" (to toggle the fontWeight (Lighter, Normal, Regular, Medium, Bold, Bolder) + * in the "Add SymbolSpan1" button) + * Click on "Add symbolSpan1" (to add a symbolSpan using the addSymbolSpan interface) + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0140 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle74") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle74_01')); + await Utils.sleep(1000) + for(let i = 0; i<5; i++){ + await button1.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i==5){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0140 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0150 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0150 + * @tc.desc : Click on "fontsize++" / "fontsize--" (to set the fontsize in the "Update Symbolspan1" button) + * Long press to select an existing symbolspan + * Click on "Update Symbolspan1" (to add a symbolspan using the updatesymbolspan interface) + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0150 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle75") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle75_01')); + await Utils.sleep(1000) + for(let i = 0; i<4; i++){ + await button1.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i==4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0150 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0160 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0160 + * @tc.desc : Set fontSize to 10, -10, '10abc', '50%' and call updatesymbolspan to update + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0160 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle76") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle76_01')); + await Utils.sleep(1000) + for(let i = 0; i<4; i++){ + await button1.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i==4){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0160 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0170 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0170 + * @tc.desc : Click "fontcolor" and select from "color.red, color.black, color.pink, {color.red,color.black}, + * {color.red,color.black,color.pink}" (to set the fontcolor in the "Update symbolspan1" button) + * Long press to select + * Click "Update symbolspan1" (use the updatesymbolspan interface to update the symbolspan) + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0170 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle77") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle77_01')); + for(let i = 0; i<3; i++){ + await button1.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i==3){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0170 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0180 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0180 + * @tc.desc : Click "Set fontcolor to 0xff0000" (to set the fontcolor in the "Update symbolSpan2" function) + * Long press to select + * Click "Update symbolSpan2" (use the updateSymbolSpan interface to update the symbolSpan) + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0180 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle78") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle78_01')); + await button1.click() + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0180 finish.`); + done() + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0190 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0190 + * @tc.desc : Set fontColor, '#008800','rgba(0,255,0,1)','rgb(0,0,255)',then use the updateSymbolSpan interface + * to update the symbolSpan + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0190 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle79") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle79_01')); + for(let i = 0; i<3; i++){ + await button1.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i==3){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0190 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0210 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0210 + * @tc.desc : Click "fontWeight+50" / "fontWeight-50" (to set the fontWeight in the "Update symbolSpan1" button) + * Long press to select, then use the updateSymbolSpan interface to update the symbolSpan + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0210 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle80") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle80_01')); + for(let i = 0; i<6; i++){ + await button1.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i==6){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0210 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0220 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0220 + * @tc.desc : Set fontWeight to '600', '-100', '400abc', '500%', and call updateSpanStyle to update the style + * of the selected content. + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0220 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle81") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle81_01')); + for(let i = 0; i<6; i++){ + await button1.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i==6){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0220 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0230 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0230 + * @tc.desc : Click "fontWeight" (toggle the fontWeight (Lighter, Normal, Regular, Medium, Bold, Bolder) in + * the "Update symbolspan1" button) + * Long press to select, then click "Update symbolspan1" (use the updatesymbolspan interface to update the + * symbolspan) + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0230 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle82") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle82_01')); + for(let i = 0; i<6; i++){ + await button1.click() + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + if(i==6){ + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0230 finish.`); + done() + } + } + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0360 + * @tc.name : SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0360 + * @tc.desc : Click "setTypingStyle" (use setTypingStyle to set fontsize to 30, fontcolor to red, + * and fontweight to 600), Click to add a "symbolspan" + */ + it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0360 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle86") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000) + let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle86_01')); + let richEditor:Component = await driver.findComponent(ON.id('RichEditor_086')); + await button1.click() + await Utils.sleep(1000) + await richEditor.inputText("999999999") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0360 finish.`); + done() + }) }) } -- Gitee From 755df10e0dc4037a3a3c9ccd7dff3f8db5472dbb Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 16:27:45 +0800 Subject: [PATCH 05/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../fontAttributePage01.ets | 46 ++++++++++++++++++ .../fontAttributePage03.ets | 46 ++++++++++++++++++ .../fontAttributePage21.ets | 47 +++++++++++++++++++ .../fontAttributePage22.ets | 47 +++++++++++++++++++ .../fontAttributePage23.ets | 47 +++++++++++++++++++ .../fontAttributePage24.ets | 47 +++++++++++++++++++ .../fontAttributePage25.ets | 47 +++++++++++++++++++ .../fontAttributePage26.ets | 47 +++++++++++++++++++ .../fontAttributePage27.ets | 47 +++++++++++++++++++ .../fontAttributePage28.ets | 47 +++++++++++++++++++ .../fontAttributePage29.ets | 47 +++++++++++++++++++ .../fontAttributePage30.ets | 47 +++++++++++++++++++ .../fontAttributePage33.ets | 29 ++++++++++++ .../fontAttributePage34.ets | 30 ++++++++++++ .../fontAttributePage35.ets | 30 ++++++++++++ 15 files changed, 651 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage01.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage03.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage21.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage22.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage23.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage24.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage25.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage26.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage27.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage28.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage29.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage30.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage33.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage34.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage35.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage01.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage01.ets new file mode 100644 index 00000000..c572d904 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage01.ets @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage01 { + @State changeValue: string = '' + @State submitValue: string = '' + + build() { + Column() { + Text('onSubmit:' + this.submitValue).fontSize(18).margin({top:50}) + Search({ value: this.changeValue, placeholder: 'Type to search...' }) + .searchButton('SEARCH') + .searchIcon({ + src: $r('app.media.icon') + }) + .width('90%') + .height(60) + .maxLength(20) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 18, weight: 400 }) + .textFont({ size: 18, weight: 400 }) + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage03.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage03.ets new file mode 100644 index 00000000..c299df16 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage03.ets @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage03 { + @State changeValue: string = '' + @State submitValue: string = '' + + build() { + Column() { + Text('onSubmit:' + this.submitValue).fontSize(18).margin({top:50}) + Search({ value: this.changeValue, placeholder: 'Type to search...' }) + .searchButton('SEARCH') + .searchIcon({ + src: $r('app.media.icon') + }) + .width('90%') + .height(60) + .maxLength(20) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 18, weight: 400 }) + .textFont({ size: 18, weight: 400 }) + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage21.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage21.ets new file mode 100644 index 00000000..12282d82 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage21.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage21 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(20) + .fontWeight(FontWeight.Medium) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage22.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage22.ets new file mode 100644 index 00000000..5ef0510f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage22.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage22 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(20) + .fontWeight(FontWeight.Bold) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage23.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage23.ets new file mode 100644 index 00000000..e76d867f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage23.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage23 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage24.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage24.ets new file mode 100644 index 00000000..afdd190b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage24.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage24 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(20) + .lineHeight(30) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage25.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage25.ets new file mode 100644 index 00000000..8d2f08ec --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage25.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage25 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(20) + .lineHeight(-10) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage26.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage26.ets new file mode 100644 index 00000000..333e7ca4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage26.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage26 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(20) + .textCase(TextCase.LowerCase) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage27.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage27.ets new file mode 100644 index 00000000..18b47468 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage27.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage27 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(20) + .textCase(TextCase.UpperCase) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage28.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage28.ets new file mode 100644 index 00000000..44a1cb74 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage28.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage28 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(20) + .textCase(TextCase.Normal) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage29.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage29.ets new file mode 100644 index 00000000..3b389a2d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage29.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage29 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(20) + .letterSpacing(10) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage30.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage30.ets new file mode 100644 index 00000000..380dbf67 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage30.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage30 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(20) + .letterSpacing(-5) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage33.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage33.ets new file mode 100644 index 00000000..86804a58 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage33.ets @@ -0,0 +1,29 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage33 { + + build() { + Column() { + Text() { + Span("This is the Span component") + .fontSize(20) + } + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage34.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage34.ets new file mode 100644 index 00000000..fd6e431d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage34.ets @@ -0,0 +1,30 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage34 { + + build() { + Column() { + Text() { + Span("This is the Span component") + .fontSize(20) + .letterSpacing("180%") + } + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage35.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage35.ets new file mode 100644 index 00000000..de65c997 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage35.ets @@ -0,0 +1,30 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage34 { + + build() { + Column() { + Text() { + Span("This is the Span component") + .fontSize(20) + .lineHeight($rawfile('string.json')) + } + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file -- Gitee From c8a287ce6384fa2e8cff4d66b1dcf0fcc864eccd Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 16:30:50 +0800 Subject: [PATCH 06/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../fontAttributePage04.ets | 46 ++++++++++++++ .../fontAttributePage05.ets | 46 ++++++++++++++ .../fontAttributePage06.ets | 44 +++++++++++++ .../fontAttributePage07.ets | 46 ++++++++++++++ .../fontAttributePage08.ets | 46 ++++++++++++++ .../fontAttributePage09.ets | 47 ++++++++++++++ .../fontAttributePage10.ets | 47 ++++++++++++++ .../fontAttributePage11.ets | 47 ++++++++++++++ .../fontAttributePage12.ets | 47 ++++++++++++++ .../fontAttributePage13.ets | 47 ++++++++++++++ .../fontAttributePage14.ets | 62 +++++++++++++++++++ .../fontAttributePage15.ets | 47 ++++++++++++++ .../fontAttributePage16.ets | 47 ++++++++++++++ .../fontAttributePage17.ets | 47 ++++++++++++++ .../fontAttributePage18.ets | 47 ++++++++++++++ .../fontAttributePage19.ets | 47 ++++++++++++++ .../fontAttributePage20.ets | 47 ++++++++++++++ .../fontAttributePage36.ets | 29 +++++++++ .../fontAttributePage41.ets | 40 ++++++++++++ .../fontAttributePage42.ets | 40 ++++++++++++ .../fontAttributePage43.ets | 40 ++++++++++++ .../fontAttributePage44.ets | 36 +++++++++++ .../fontAttributePage45.ets | 39 ++++++++++++ .../fontAttributePage46.ets | 32 ++++++++++ .../fontAttributePage47.ets | 32 ++++++++++ .../fontAttributePage48.ets | 32 ++++++++++ .../fontAttributePage49.ets | 32 ++++++++++ .../fontAttributePage50.ets | 32 ++++++++++ 28 files changed, 1191 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage04.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage05.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage06.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage07.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage08.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage09.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage10.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage11.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage12.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage13.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage14.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage15.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage16.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage17.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage18.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage19.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage20.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage36.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage41.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage42.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage43.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage44.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage45.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage46.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage47.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage48.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage49.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage50.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage04.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage04.ets new file mode 100644 index 00000000..3c124c7e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage04.ets @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage04 { + @State changeValue: string = '' + @State submitValue: string = '' + + build() { + Column() { + Text('onSubmit:' + this.submitValue).fontSize(18).margin({top:50}) + Search({ value: this.changeValue, placeholder: 'Type to search...' }) + .searchButton('SEARCH') + .searchIcon({ + src: $r('app.media.big_icon') + }) + .width('90%') + .height(60) + .maxLength(20) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 18, weight: 400 }) + .textFont({ size: 18, weight: 400 }) + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage05.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage05.ets new file mode 100644 index 00000000..5e57f1ae --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage05.ets @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage05 { + @State changeValue: string = '' + @State submitValue: string = '' + + build() { + Column() { + Text('onSubmit:' + this.submitValue).fontSize(18).margin({top:50}) + Search({ value: this.changeValue, placeholder: 'Type to search...' }) + .searchButton('SEARCH') + .searchIcon({ + src: $r('app.media.icon') + }) + .width('90%') + .height(90) + .maxLength(20) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 18, weight: 400 }) + .textFont({ size: 18, weight: 400 }) + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage06.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage06.ets new file mode 100644 index 00000000..ada1e4ee --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage06.ets @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage06 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span('') + } + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage07.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage07.ets new file mode 100644 index 00000000..82bb3574 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage07.ets @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage07 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span($r("app.string.span")) + .fontSize(24) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage08.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage08.ets new file mode 100644 index 00000000..e1fbc328 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage08.ets @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage08 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(24) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage09.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage09.ets new file mode 100644 index 00000000..b96737cc --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage09.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage09 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(24) + .decoration({ type: TextDecorationType.None, color: Color.Red }) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage10.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage10.ets new file mode 100644 index 00000000..ce05fc43 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage10.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage10 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(24) + .decoration({ type: TextDecorationType.Underline, color: Color.Red }) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage11.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage11.ets new file mode 100644 index 00000000..a024b8e0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage11.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage11 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(24) + .decoration({ type: TextDecorationType.LineThrough, color: Color.Yellow }) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage12.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage12.ets new file mode 100644 index 00000000..d240e476 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage12.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage12 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(24) + .decoration({ type: TextDecorationType.Overline, color: Color.Blue }) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage13.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage13.ets new file mode 100644 index 00000000..9c9c9116 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage13.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage13 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(24) + .fontColor(Color.Red) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage14.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage14.ets new file mode 100644 index 00000000..d0f2f596 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage14.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import Utils from '../../../test/model/Utils' + +@Entry +@Component +struct fontAttributePage14 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + @State spanFontSize014:string = "" + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize("10fp") + .id("fontAttribute_span_014") + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + + Text(this.spanFontSize014) + .fontSize(24) + .margin({top:30}) + + Button() + .onClick(async ()=>{ + let strJson1 = getInspectorByKey('ratingFocusText01'); + let obj1: ESObject = JSON.parse(strJson1); + await Utils.sleep(1000); + console.info("[SUB_ACE_UI_COMPONENT_BUTTON_RATING_CUSTOMIZINGS_0080] obj1.$attrs.fontSize is: " + obj1.$attrs.fontSize); + this.spanFontSize014 = JSON.stringify(obj1.$attrs.fontSize) + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage15.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage15.ets new file mode 100644 index 00000000..ce6ecb99 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage15.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import Utils from '../../../test/model/Utils' + +@Entry +@Component +struct fontAttributePage15 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize("-10fp") + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage16.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage16.ets new file mode 100644 index 00000000..6d84d1dd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage16.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import Utils from '../../../test/model/Utils' + +@Entry +@Component +struct fontAttributePage16 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize("[20,40]") + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage17.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage17.ets new file mode 100644 index 00000000..dbf362bc --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage17.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage17 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(20) + .fontStyle(FontStyle.Italic) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage18.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage18.ets new file mode 100644 index 00000000..e6a07eb4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage18.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage18 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(20) + .fontWeight(FontWeight.Lighter) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage19.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage19.ets new file mode 100644 index 00000000..5ce057ce --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage19.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage19 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(20) + .fontWeight(FontWeight.Normal) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage20.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage20.ets new file mode 100644 index 00000000..c8ed3968 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage20.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage20 { + private surfaceId: string = '' + private xComponentContext: Record void> = {} + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.NODE, + controller: this.xComponentController + }){ + Text() { + Span("Hello world") + .fontSize(20) + .fontWeight(FontWeight.Regular) + } + .margin({top:50}) + } + .onLoad(() => { + this.xComponentController.setXComponentSurfaceSize({ surfaceWidth: 1920, surfaceHeight: 1080 }) + this.surfaceId = this.xComponentController.getXComponentSurfaceId() + this.xComponentContext = this.xComponentController.getXComponentContext() as Record void> + }) + .width('200px') + .height('300px') + .backgroundColor(Color.White) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage36.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage36.ets new file mode 100644 index 00000000..0acc0d2b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage36.ets @@ -0,0 +1,29 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage36 { + + build() { + Column() { + Text() { + SymbolSpan($r('sys.symbol.ohos_wifi')) + .fontSize(96) + } + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage41.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage41.ets new file mode 100644 index 00000000..d9ff05d2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage41.ets @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage41 { + + build() { + Column() { + Text("我无法挽留,我无法回头,我无法接受,你说你即将离开我") + .fontSize(20) + .wordBreak(WordBreak.NORMAL) + .margin({top:50}) + Text("내가 붙잡을 수 없고, 뒤돌아 볼 수 없고, 받아들일 수 없고, 당신은 곧 나를 떠날 거라고 말씀하셨다") + .fontSize(20) + .wordBreak(WordBreak.NORMAL) + .margin({top:50}) + Text("私は止められない、振り向くこともできない、受け入れることもできない。あなたはもうすぐ私を離れると言いました") + .fontSize(20) + .wordBreak(WordBreak.NORMAL) + .margin({top:50}) + Text("I can't hold on, I can't turn back, I can't accept it. You say you're leaving me soon") + .fontSize(20) + .wordBreak(WordBreak.NORMAL) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage42.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage42.ets new file mode 100644 index 00000000..78aa93b2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage42.ets @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage42 { + + build() { + Column() { + Text("我无法挽留,我无法回头,我无法接受,你说你即将离开我") + .fontSize(20) + .wordBreak(WordBreak.BREAK_ALL) + .margin({top:50}) + Text("내가 붙잡을 수 없고, 뒤돌아 볼 수 없고, 받아들일 수 없고, 당신은 곧 나를 떠날 거라고 말씀하셨다") + .fontSize(20) + .wordBreak(WordBreak.BREAK_ALL) + .margin({top:50}) + Text("私は止められない、振り向くこともできない、受け入れることもできない。あなたはもうすぐ私を離れると言いました") + .fontSize(20) + .wordBreak(WordBreak.BREAK_ALL) + .margin({top:50}) + Text("I can't hold on, I can't turn back, I can't accept it. You say you're leaving me soon") + .fontSize(20) + .wordBreak(WordBreak.BREAK_ALL) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage43.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage43.ets new file mode 100644 index 00000000..11688148 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage43.ets @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage43 { + + build() { + Column() { + Text("我无法挽留,我无法回头,我无法接受,你说你即将离开我") + .fontSize(20) + .wordBreak(WordBreak.BREAK_WORD) + .margin({top:50}) + Text("내가 붙잡을 수 없고, 뒤돌아 볼 수 없고, 받아들일 수 없고, 당신은 곧 나를 떠날 거라고 말씀하셨다") + .fontSize(20) + .wordBreak(WordBreak.BREAK_WORD) + .margin({top:50}) + Text("私は止められない、振り向くこともできない、受け入れることもできない。あなたはもうすぐ私を離れると言いました") + .fontSize(20) + .wordBreak(WordBreak.BREAK_WORD) + .margin({top:50}) + Text("I can't hold on, I can't turn back, I can't accept it. You say you're leaving me soon") + .fontSize(20) + .wordBreak(WordBreak.BREAK_WORD) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage44.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage44.ets new file mode 100644 index 00000000..289665be --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage44.ets @@ -0,0 +1,36 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage44 { + + build() { + Column() { + Text("我无法挽留,我无法回头,我无法接受,你说你即将离开我") + .fontSize(20) + .margin({top:50}) + Text("내가 붙잡을 수 없고, 뒤돌아 볼 수 없고, 받아들일 수 없고, 당신은 곧 나를 떠날 거라고 말씀하셨다") + .fontSize(20) + .margin({top:50}) + Text("私は止められない、振り向くこともできない、受け入れることもできない。あなたはもうすぐ私を離れると言いました") + .fontSize(20) + .margin({top:50}) + Text("I can't hold on, I can't turn back, I can't accept it. You say you're leaving me soon") + .fontSize(20) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage45.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage45.ets new file mode 100644 index 00000000..b1192171 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage45.ets @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage45 { + @State onCopy: string = '' + @State start: number = 0 + @State end: number = 12 + + build() { + Column() { + Text("Openharmony") + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .onCopy((value: string) => { + this.onCopy = value + }) + + Text(this.onCopy) + .fontSize(20) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage46.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage46.ets new file mode 100644 index 00000000..ef43a434 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage46.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage46 { + @State start: number = 5 + @State end: number = 20 + + build() { + Column() { + Text("OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及运营的开源项目, 目标是面向全场景、全连接、全智能时代、" + + "基于开源的方式,搭建一个智能终端设备操作系统的框架和平台") + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage47.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage47.ets new file mode 100644 index 00000000..03a6a42f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage47.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage47 { + @State start: number = 20 + @State end: number = 5 + + build() { + Column() { + Text("OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及运营的开源项目, 目标是面向全场景、全连接、全智能时代、" + + "基于开源的方式,搭建一个智能终端设备操作系统的框架和平台") + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage48.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage48.ets new file mode 100644 index 00000000..3da34627 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage48.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage48 { + @State start: number = 5 + @State end: number = 5 + + build() { + Column() { + Text("OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及运营的开源项目, 目标是面向全场景、全连接、全智能时代、" + + "基于开源的方式,搭建一个智能终端设备操作系统的框架和平台") + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage49.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage49.ets new file mode 100644 index 00000000..3e228e6c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage49.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage49 { + @State start: number = -5 + @State end: number = 5 + + build() { + Column() { + Text("OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及运营的开源项目, 目标是面向全场景、全连接、全智能时代、" + + "基于开源的方式,搭建一个智能终端设备操作系统的框架和平台") + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage50.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage50.ets new file mode 100644 index 00000000..d3cf53f3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage50.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage50 { + @State start: number = 5 + @State end: number = 1000 + + build() { + Column() { + Text("OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及运营的开源项目, 目标是面向全场景、全连接、全智能时代、" + + "基于开源的方式,搭建一个智能终端设备操作系统的框架和平台") + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file -- Gitee From e5a554cd77d5cd66b84130bdc250ad094d8a49b2 Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 16:31:21 +0800 Subject: [PATCH 07/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../fontAttributePage51.ets | 45 +++++++++++++++ .../fontAttributePage52.ets | 33 +++++++++++ .../fontAttributePage53.ets | 33 +++++++++++ .../fontAttributePage54.ets | 31 +++++++++++ .../fontAttributePage55.ets | 31 +++++++++++ .../fontAttributePage56.ets | 31 +++++++++++ .../fontAttributePage57.ets | 31 +++++++++++ .../fontAttributePage58.ets | 31 +++++++++++ .../fontAttributePage59.ets | 30 ++++++++++ .../fontAttributePage60.ets | 30 ++++++++++ .../fontAttributePage61.ets | 33 +++++++++++ .../fontAttributePage62.ets | 41 ++++++++++++++ .../fontAttributePage63.ets | 32 +++++++++++ .../fontAttributePage64.ets | 32 +++++++++++ .../fontAttributePage65.ets | 41 ++++++++++++++ .../fontAttributePage66.ets | 38 +++++++++++++ .../fontAttributePage67.ets | 38 +++++++++++++ .../fontAttributePage68.ets | 32 +++++++++++ .../fontAttributePage69.ets | 32 +++++++++++ .../fontAttributePage70.ets | 42 ++++++++++++++ .../fontAttributePage71.ets | 34 ++++++++++++ .../fontAttributePage72.ets | 34 ++++++++++++ .../fontAttributePage73.ets | 32 +++++++++++ .../fontAttributePage74.ets | 32 +++++++++++ .../fontAttributePage75.ets | 42 ++++++++++++++ .../fontAttributePage76.ets | 42 ++++++++++++++ .../fontAttributePage77.ets | 42 ++++++++++++++ .../fontAttributePage78.ets | 34 ++++++++++++ .../fontAttributePage79.ets | 55 +++++++++++++++++++ .../fontAttributePage80.ets | 37 +++++++++++++ 30 files changed, 1071 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage51.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage52.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage53.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage54.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage55.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage56.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage57.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage58.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage59.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage60.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage61.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage62.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage63.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage64.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage65.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage66.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage67.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage68.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage69.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage70.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage71.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage72.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage73.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage74.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage75.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage76.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage77.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage78.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage79.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage80.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage51.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage51.ets new file mode 100644 index 00000000..909431e9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage51.ets @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage51 { + @State start: number = 5 + @State end: number = 20 + @State selectText:string = "OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及运营的开源项目, 目标是面向全场景、全连" + + "接、全智能时代、基于开源的方式,搭建一个智能终端设备操作系统的框架和平台" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage52.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage52.ets new file mode 100644 index 00000000..635882f3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage52.ets @@ -0,0 +1,33 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage51 { + @State start: number = 5 + @State end: number = 20 + @State selectText:string = "OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及运营的开源项目, 目标是面向全场景、全连" + + "接、全智能时代、基于开源的方式,搭建一个智能终端设备操作系统的框架和平台" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage53.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage53.ets new file mode 100644 index 00000000..0e6a1940 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage53.ets @@ -0,0 +1,33 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage53 { + @State start: number = 5 + @State end: number = 20 + @State selectText:string = "OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及运营的开源项目, 目标是面向全场景、全连" + + "接、全智能时代、基于开源的方式,搭建一个智能终端设备操作系统的框架和平台" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage54.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage54.ets new file mode 100644 index 00000000..f6e4490c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage54.ets @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage54 { + @State selectText:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途" + + "遥远只要最后是你就好グレートブリテンおよび北アイルランド連合王国という言葉は本当に長い言葉성공은 신념의 산물이며, 신념을 가진 " + + "사람은 기적에 가까운 일을 가능하게 한다" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .wordBreak(WordBreak.NORMAL) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage55.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage55.ets new file mode 100644 index 00000000..5495746f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage55.ets @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage55 { + @State selectText:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途" + + "遥远只要最后是你就好グレートブリテンおよび北アイルランド連合王国という言葉は本当に長い言葉성공은 신념의 산물이며, 신념을 가진 " + + "사람은 기적에 가까운 일을 가능하게 한다" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .wordBreak(WordBreak.BREAK_ALL) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage56.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage56.ets new file mode 100644 index 00000000..24c14404 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage56.ets @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage56 { + @State selectText:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途" + + "遥远只要最后是你就好グレートブリテンおよび北アイルランド連合王国という言葉は本当に長い言葉성공은 신념의 산물이며, 신념을 가진 " + + "사람은 기적에 가까운 일을 가능하게 한다" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .wordBreak(WordBreak.BREAK_WORD) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage57.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage57.ets new file mode 100644 index 00000000..ec535caf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage57.ets @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage57 { + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .wordBreak(WordBreak.NORMAL) + .clip(true) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage58.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage58.ets new file mode 100644 index 00000000..ebce3f7c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage58.ets @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage58 { + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .wordBreak(WordBreak.NORMAL) + .clip(false) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage59.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage59.ets new file mode 100644 index 00000000..487e8774 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage59.ets @@ -0,0 +1,30 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage59 { + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .wordBreak(WordBreak.BREAK_ALL) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage60.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage60.ets new file mode 100644 index 00000000..b7a2d6ea --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage60.ets @@ -0,0 +1,30 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage60 { + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .wordBreak(WordBreak.BREAK_WORD) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage61.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage61.ets new file mode 100644 index 00000000..09cc1feb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage61.ets @@ -0,0 +1,33 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage61 { + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + @State start: number = 5 + @State end: number = 20 + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.None) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage62.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage62.ets new file mode 100644 index 00000000..931fcbbf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage62.ets @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage62 { + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + @State start: number = 5 + @State end: number = 20 + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + + Button('Set text selection') + .id("changeSelection63") + .margin({left:20}) + .onClick(() => { + this.start = 10 + this.end = 15 + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage63.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage63.ets new file mode 100644 index 00000000..4af46d8b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage63.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage63 { + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Taumat" + + "awhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .textOverflow({ overflow: TextOverflow.None }) + .maxLines(5) + .wordBreak(WordBreak.NORMAL) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage64.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage64.ets new file mode 100644 index 00000000..568b0602 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage64.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage64 { + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Taumat" + + "awhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .textOverflow({ overflow: TextOverflow.None }) + .maxLines(1) + .wordBreak(WordBreak.NORMAL) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage65.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage65.ets new file mode 100644 index 00000000..35bc96a7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage65.ets @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage65 { + @State onCopy:string = '' + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + @State start: number = 10 + @State end: number = 1000 + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .onCopy((value: string) => { + this.onCopy = value + }) + + Text(this.onCopy) + .fontSize(20) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage66.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage66.ets new file mode 100644 index 00000000..75023f17 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage66.ets @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage66 { + @State onCopy:string = '' + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + @State start: number = 10 + @State end: number = 20 + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .textOverflow({ overflow: TextOverflow.None }) + .selection(this.start, this.end) + .onCopy((value: string) => { + this.onCopy = value + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage67.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage67.ets new file mode 100644 index 00000000..99abffcd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage67.ets @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage67 { + @State onCopy:string = '' + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + @State start: number = 1000 + @State end: number = 1001 + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .textOverflow({ overflow: TextOverflow.None }) + .selection(this.start, this.end) + .onCopy((value: string) => { + this.onCopy = value + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage68.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage68.ets new file mode 100644 index 00000000..3ea760f2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage68.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage68 { + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .wordBreak(WordBreak.NORMAL) + .maxLines(5) + .textOverflow({ overflow: TextOverflow.Clip }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage69.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage69.ets new file mode 100644 index 00000000..c4b0054e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage69.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage69 { + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .wordBreak(WordBreak.NORMAL) + .maxLines(1) + .textOverflow({ overflow: TextOverflow.Clip }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage70.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage70.ets new file mode 100644 index 00000000..d538a177 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage70.ets @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage70 { + @State onCopy:string = "before copy" + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + @State start: number = 10 + @State end: number = 1000 + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .textOverflow({ overflow: TextOverflow.Clip }) + .onCopy((value: string) => { + this.onCopy = value + }) + + Text(this.onCopy) + .fontSize(20) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage71.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage71.ets new file mode 100644 index 00000000..2c5653a3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage71.ets @@ -0,0 +1,34 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage71 { + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + @State start: number = 10 + @State end: number = 20 + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .textOverflow({ overflow: TextOverflow.Clip }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage72.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage72.ets new file mode 100644 index 00000000..d3352482 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage72.ets @@ -0,0 +1,34 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage72 { + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + @State start: number = 1000 + @State end: number = 1001 + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .textOverflow({ overflow: TextOverflow.Clip }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage73.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage73.ets new file mode 100644 index 00000000..01b8fd3b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage73.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage73 { + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .wordBreak(WordBreak.NORMAL) + .maxLines(5) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage74.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage74.ets new file mode 100644 index 00000000..17f9aca4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage74.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage74 { + @State selectText:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Tau" + + "matawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .wordBreak(WordBreak.NORMAL) + .maxLines(1) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage75.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage75.ets new file mode 100644 index 00000000..a709b753 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage75.ets @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage75 { + @State onCopy:string = "before copy" + @State selectText:string = "我希望有个如你一般的人,如山间清爽的风,如古城温暖的光" + @State start: number = 20 + @State end: number = 1000 + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(1) + .onCopy((value: string) => { + this.onCopy = value + }) + + Text(this.onCopy) + .fontSize(20) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage76.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage76.ets new file mode 100644 index 00000000..15476f54 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage76.ets @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage76 { + @State onCopy:string = "before copy" + @State selectText:string = "我希望有个如你一般的人,如山间清爽的风,如古城温暖的光" + @State start: number = 21 + @State end: number = 40 + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(1) + .onCopy((value: string) => { + this.onCopy = value + }) + + Text(this.onCopy) + .fontSize(20) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage77.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage77.ets new file mode 100644 index 00000000..10575374 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage77.ets @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage77 { + @State onCopy:string = "before copy" + @State selectText:string = "我希望有个如你一般的人,如山间清爽的风,如古城温暖的光" + @State start: number = 10 + @State end: number = 20 + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(2) + .onCopy((value: string) => { + this.onCopy = value + }) + + Text(this.onCopy) + .fontSize(20) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage78.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage78.ets new file mode 100644 index 00000000..dadb8121 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage78.ets @@ -0,0 +1,34 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage78 { + @State selectText:string = "我希望有个如你一般的人,如山间清爽的风,如古城温暖的光" + @State start: number = 10 + @State end: number = 20 + + build() { + Column() { + Text(this.selectText) + .fontSize(20) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .textOverflow({ overflow: TextOverflow.MARQUEE }) + .maxLines(2) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage79.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage79.ets new file mode 100644 index 00000000..cc23ec69 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage79.ets @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage79 { + @State text:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Taumatawh" + + "akatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + @State start: number = 10 + @State end: number = 20 + + build() { + Column() { + Text(this.text) + .fontSize(20) + .margin({top:50}) + + Button('切换text中文文本') + .id("changeText79_1") + .fontSize(20) + .margin({top:20}) + .onClick(() => { + this.text = '我希望有个如你一般的人,如山间清爽的风,如古城温暖的光' + }) + + Button('切换text日语文本') + .id("changeText79_2") + .fontSize(20) + .margin({top:20}) + .onClick(() => { + this.text = 'グレートブリテンおよび北アイルランド連合王国という言葉は本当に長い言葉' + }) + + Button('切换text韩语文本') + .id("changeText79_3") + .fontSize(20) + .margin({top:20}) + .onClick(() => { + this.text = '성공은 신념의 산물이며, 신념을 가진 사람은 기적에 가까운 일을 가능하게 한다' + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage80.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage80.ets new file mode 100644 index 00000000..1e905658 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage80.ets @@ -0,0 +1,37 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage80 { + @State text:string = "山间清爽的风" + @State fontSize:number = 16 + + build() { + Column() { + Text(this.text) + .fontSize(this.fontSize) + .margin({top:50}) + + Button('change fontSize') + .id("changeText80") + .fontSize(20) + .margin({top:20}) + .onClick(() => { + this.fontSize = 30 + }) + }.width('100%') + } +} \ No newline at end of file -- Gitee From 54d15d3dce1f32d41729ff06e62ec7cffef97f63 Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 16:31:43 +0800 Subject: [PATCH 08/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../fontAttributePage100.ets | 33 +++++++++++++ .../fontAttributePage101.ets | 32 +++++++++++++ .../fontAttributePage102.ets | 32 +++++++++++++ .../fontAttributePage103.ets | 32 +++++++++++++ .../fontAttributePage104.ets | 32 +++++++++++++ .../fontAttributePage105.ets | 32 +++++++++++++ .../fontAttributePage106.ets | 32 +++++++++++++ .../fontAttributePage107.ets | 32 +++++++++++++ .../fontAttributePage108.ets | 32 +++++++++++++ .../fontAttributePage109.ets | 32 +++++++++++++ .../fontAttributePage110.ets | 32 +++++++++++++ .../fontAttributePage81.ets | 32 +++++++++++++ .../fontAttributePage82.ets | 44 ++++++++++++++++++ .../fontAttributePage83.ets | 46 +++++++++++++++++++ .../fontAttributePage84.ets | 39 ++++++++++++++++ .../fontAttributePage85.ets | 39 ++++++++++++++++ .../fontAttributePage86.ets | 39 ++++++++++++++++ .../fontAttributePage87.ets | 39 ++++++++++++++++ .../fontAttributePage88.ets | 39 ++++++++++++++++ .../fontAttributePage89.ets | 39 ++++++++++++++++ .../fontAttributePage90.ets | 39 ++++++++++++++++ .../fontAttributePage91.ets | 39 ++++++++++++++++ .../fontAttributePage92.ets | 39 ++++++++++++++++ .../fontAttributePage93.ets | 39 ++++++++++++++++ .../fontAttributePage94.ets | 33 +++++++++++++ .../fontAttributePage95.ets | 46 +++++++++++++++++++ .../fontAttributePage96.ets | 34 ++++++++++++++ .../fontAttributePage97.ets | 30 ++++++++++++ .../fontAttributePage98.ets | 35 ++++++++++++++ .../fontAttributePage99.ets | 32 +++++++++++++ 30 files changed, 1075 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage100.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage101.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage102.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage103.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage104.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage105.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage106.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage107.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage108.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage109.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage110.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage81.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage82.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage83.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage84.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage85.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage86.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage87.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage88.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage89.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage90.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage91.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage92.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage93.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage94.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage95.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage96.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage97.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage98.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage99.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage100.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage100.ets new file mode 100644 index 00000000..9f4e882b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage100.ets @@ -0,0 +1,33 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage100 { + + build() { + Column() { + Text() { + ImageSpan($r('app.media.icon')) + .width('60vp') + .height('60vp') + .verticalAlign(ImageSpanAlignment.CENTER) + .textBackgroundStyle({color: Color.Green, radius: 5}) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage101.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage101.ets new file mode 100644 index 00000000..4d646cb6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage101.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage101 { + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({color:"0xff0000",radius: 5}) + .fontColor(Color.Black) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage102.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage102.ets new file mode 100644 index 00000000..052d8340 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage102.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage102 { + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({color:Color.Green,radius: 0}) + .fontColor(Color.Black) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage103.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage103.ets new file mode 100644 index 00000000..9b099a74 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage103.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage103 { + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({color:Color.Green,radius: -5}) + .fontColor(Color.Black) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage104.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage104.ets new file mode 100644 index 00000000..13854af6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage104.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage104 { + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({color:'#ffc0cb',radius: 5}) + .fontColor(Color.Black) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage105.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage105.ets new file mode 100644 index 00000000..a5652ee7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage105.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage105 { + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({color:$r('app.color.yellow'),radius: 5}) + .fontColor(Color.Black) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage106.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage106.ets new file mode 100644 index 00000000..05c444b9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage106.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage106 { + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({color:Color.Green,radius: '10%'}) + .fontColor(Color.Black) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage107.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage107.ets new file mode 100644 index 00000000..e3969f96 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage107.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage107 { + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({color:Color.Green,radius: '10vp'}) + .fontColor(Color.Black) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage108.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage108.ets new file mode 100644 index 00000000..bd8ac4f0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage108.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage108 { + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({ color:Color.Green, radius:{topLeft:10} }) + .fontColor(Color.Black) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage109.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage109.ets new file mode 100644 index 00000000..6b2bd3ea --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage109.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage109 { + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({ color:Color.Green, radius:{topRight:10} }) + .fontColor(Color.Black) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage110.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage110.ets new file mode 100644 index 00000000..05088f8b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage110.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage110 { + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({ color:Color.Green, radius:{bottomLeft:10} }) + .fontColor(Color.Black) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage81.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage81.ets new file mode 100644 index 00000000..98f11108 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage81.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage81 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要最后" + + "是你就好グレートブリテンおよび北アイルランド連合王国という言葉は本当に長い言葉성공은 신념의 산물이며, 신념을 가진 사람은 기적에 가까" + + "운 일을 가능하게 한다This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Taumatawhakatan" + + "gihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + @State fontSize:number = 16 + + build() { + Column() { + Text(this.text) + .fontSize(this.fontSize) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage82.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage82.ets new file mode 100644 index 00000000..ca16bb62 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage82.ets @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage82 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + @State start: number = 5 + @State end: number = 20 + + build() { + Column() { + Text(){ + Span("fontAttributePage82") + } + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + + Button('Set text selection') + .id("changeSelection82") + .margin({left:20}) + .onClick(() => { + this.start = 10 + this.end = 15 + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage83.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage83.ets new file mode 100644 index 00000000..a0a1cb2c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage83.ets @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage83 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + @State start: number = 5 + @State end: number = 20 + + build() { + Column() { + Text(){ + ImageSpan($r('app.media.icon')) + .width('200px') + .height('200px') + } + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + + Button('Set text selection') + .id("changeSelection83") + .margin({left:20}) + .onClick(() => { + this.start = 10 + this.end = 15 + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage84.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage84.ets new file mode 100644 index 00000000..c8e663e4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage84.ets @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage84 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + @State start: number = 0 + @State end: number = 20 + + build() { + Column() { + Text(){ + ImageSpan($r('app.media.icon')) + .width('200px') + .height('200px') + .verticalAlign(ImageSpanAlignment.TOP) + } + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage85.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage85.ets new file mode 100644 index 00000000..e67a42a2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage85.ets @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage85 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + @State start: number = 0 + @State end: number = 20 + + build() { + Column() { + Text(){ + ImageSpan($r('app.media.icon')) + .width('200px') + .height('200px') + .verticalAlign(ImageSpanAlignment.CENTER) + } + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage86.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage86.ets new file mode 100644 index 00000000..40abf359 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage86.ets @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage86 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + @State start: number = 0 + @State end: number = 20 + + build() { + Column() { + Text(){ + ImageSpan($r('app.media.icon')) + .width('200px') + .height('200px') + .verticalAlign(ImageSpanAlignment.BOTTOM) + } + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage87.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage87.ets new file mode 100644 index 00000000..39237b14 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage87.ets @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage87 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + @State start: number = 0 + @State end: number = 20 + + build() { + Column() { + Text(){ + ImageSpan($r('app.media.icon')) + .width('200px') + .height('200px') + .verticalAlign(ImageSpanAlignment.BASELINE) + } + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage88.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage88.ets new file mode 100644 index 00000000..143d0a3d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage88.ets @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage88 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + @State start: number = 0 + @State end: number = 20 + + build() { + Column() { + Text(){ + ImageSpan($r('app.media.icon')) + .width('200px') + .height('200px') + .objectFit(ImageFit.Contain) + } + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage89.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage89.ets new file mode 100644 index 00000000..6921e810 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage89.ets @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage89 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + @State start: number = 0 + @State end: number = 20 + + build() { + Column() { + Text(){ + ImageSpan($r('app.media.icon')) + .width('200px') + .height('200px') + .objectFit(ImageFit.Cover) + } + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage90.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage90.ets new file mode 100644 index 00000000..7d9e2512 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage90.ets @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage90 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + @State start: number = 0 + @State end: number = 20 + + build() { + Column() { + Text(){ + ImageSpan($r('app.media.icon')) + .width('200px') + .height('200px') + .objectFit(ImageFit.Auto) + } + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage91.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage91.ets new file mode 100644 index 00000000..617645c6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage91.ets @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage91 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + @State start: number = 0 + @State end: number = 20 + + build() { + Column() { + Text(){ + ImageSpan($r('app.media.icon')) + .width('200px') + .height('200px') + .objectFit(ImageFit.Fill) + } + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage92.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage92.ets new file mode 100644 index 00000000..3e0d31ce --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage92.ets @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage92 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + @State start: number = 0 + @State end: number = 20 + + build() { + Column() { + Text(){ + ImageSpan($r('app.media.icon')) + .width('200px') + .height('200px') + .objectFit(ImageFit.ScaleDown) + } + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage93.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage93.ets new file mode 100644 index 00000000..33854cb2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage93.ets @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage93 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + @State start: number = 0 + @State end: number = 20 + + build() { + Column() { + Text(){ + ImageSpan($r('app.media.icon')) + .width('200px') + .height('200px') + .objectFit(ImageFit.None) + } + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage94.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage94.ets new file mode 100644 index 00000000..28278610 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage94.ets @@ -0,0 +1,33 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage94 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + + build() { + Column() { + Text(this.text){ + } + .id("fontAttributePage94") + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage95.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage95.ets new file mode 100644 index 00000000..97c141ec --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage95.ets @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage95 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + @State start: number = 0 + @State end: number = 20 + @State columnHeight:number = 500 + + build() { + Column() { + Text(this.text){ + } + .id("fontAttributePage95") + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .clip(true) + + Button('Set column height') + .id("changeHeight95") + .margin({left:20}) + .onClick(() => { + this.columnHeight = 0 + }) + }.width('100%') + .height(this.columnHeight) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage96.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage96.ets new file mode 100644 index 00000000..6bada647 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage96.ets @@ -0,0 +1,34 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage96 { + @State text:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Taumatawhakatan" + + "gihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + @State fontSize:number = 16 + + build() { + Column() { + Text(this.text){ + } + .id("fontAttributePage96") + .wordBreak(WordBreak.NORMAL) + .fontSize(this.fontSize) + .margin({top:50}) + .clip(false) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage97.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage97.ets new file mode 100644 index 00000000..d3d1fa1a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage97.ets @@ -0,0 +1,30 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage97 { + + build() { + Column() { + Text() { + ContainerSpan() { + }.textBackgroundStyle({color: "#7F007DFF", radius: "12vp"}) + } + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage98.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage98.ets new file mode 100644 index 00000000..309ee3cd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage98.ets @@ -0,0 +1,35 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage98 { + + build() { + Column() { + Text() { + ContainerSpan() { + ImageSpan($r('app.media.icon')) + .width('40vp') + .height('40vp') + .verticalAlign(ImageSpanAlignment.CENTER) + Span(' Hello World ! ').fontSize('16fp').fontColor(Color.Black) + }.textBackgroundStyle({color: "#7F007DFF", radius: "12vp"}) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage99.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage99.ets new file mode 100644 index 00000000..6a1cb0a0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage99.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage99 { + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({color:Color.Green,radius: 5}) + .fontColor(Color.Black) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file -- Gitee From 0457cf7914409417cda0098370eb9b3fa4a51f49 Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 16:32:00 +0800 Subject: [PATCH 09/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../fontAttributePage111.ets | 32 ++++++++++ .../fontAttributePage112.ets | 33 ++++++++++ .../fontAttributePage113.ets | 39 ++++++++++++ .../fontAttributePage114.ets | 47 ++++++++++++++ .../fontAttributePage115.ets | 33 ++++++++++ .../fontAttributePage116.ets | 33 ++++++++++ .../fontAttributePage117.ets | 37 +++++++++++ .../fontAttributePage118.ets | 37 +++++++++++ .../fontAttributePage119.ets | 55 ++++++++++++++++ .../fontAttributePage120.ets | 39 ++++++++++++ .../fontAttributePage121.ets | 38 ++++++++++++ .../fontAttributePage122.ets | 38 ++++++++++++ .../fontAttributePage123.ets | 38 ++++++++++++ .../fontAttributePage124.ets | 52 ++++++++++++++++ .../fontAttributePage125.ets | 40 ++++++++++++ .../fontAttributePage126.ets | 60 ++++++++++++++++++ .../fontAttributePage127.ets | 62 +++++++++++++++++++ .../fontAttributePage128.ets | 62 +++++++++++++++++++ .../fontAttributePage129.ets | 62 +++++++++++++++++++ .../fontAttributePage130.ets | 62 +++++++++++++++++++ .../fontAttributePage131.ets | 62 +++++++++++++++++++ .../fontAttributePage132.ets | 62 +++++++++++++++++++ .../fontAttributePage133.ets | 62 +++++++++++++++++++ .../fontAttributePage134.ets | 62 +++++++++++++++++++ .../fontAttributePage135.ets | 62 +++++++++++++++++++ .../fontAttributePage136.ets | 62 +++++++++++++++++++ .../fontAttributePage137.ets | 62 +++++++++++++++++++ .../fontAttributePage138.ets | 62 +++++++++++++++++++ .../fontAttributePage139.ets | 62 +++++++++++++++++++ .../fontAttributePage140.ets | 62 +++++++++++++++++++ 30 files changed, 1519 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage111.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage112.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage113.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage114.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage115.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage116.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage117.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage118.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage119.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage120.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage121.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage122.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage123.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage124.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage125.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage126.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage127.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage128.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage129.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage130.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage131.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage132.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage133.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage134.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage135.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage136.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage137.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage138.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage139.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage140.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage111.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage111.ets new file mode 100644 index 00000000..e6ece187 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage111.ets @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage111 { + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({ color:Color.Green, radius:{bottomRight:10} }) + .fontColor(Color.Black) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage112.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage112.ets new file mode 100644 index 00000000..22c7bd5e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage112.ets @@ -0,0 +1,33 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage112 { + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({ color:Color.Green, radius:{topLeft: 10, topRight: 20, + bottomLeft: 40, bottomRight: 80} }) + .fontColor(Color.Black) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage113.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage113.ets new file mode 100644 index 00000000..34c6e09b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage113.ets @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage113 { + @State colorStyle:Color = Color.Green + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({ color:this.colorStyle, radius:5 }) + .fontColor(Color.Black) + }.margin({top:50}) + + Button("背景色:红色") + .id("fontAttributePage113") + .fontSize(18) + .onClick(()=>{ + this.colorStyle = Color.Red + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage114.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage114.ets new file mode 100644 index 00000000..a78d57e7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage114.ets @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage114 { + @State radiusStyle:number = 10 + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({ color:Color.Green, radius:this.radiusStyle }) + .fontColor(Color.Black) + }.margin({top:50}) + + Button("圆角:20") + .id("fontAttributePage114_20") + .fontSize(18) + .onClick(()=>{ + this.radiusStyle = 20 + }) + .margin({top:50}) + + Button("圆角:30") + .id("fontAttributePage114_30") + .fontSize(18) + .onClick(()=>{ + this.radiusStyle = 30 + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage115.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage115.ets new file mode 100644 index 00000000..10a64b0d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage115.ets @@ -0,0 +1,33 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage115 { + @State radiusStyle:number = 5 + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({ radius:this.radiusStyle }) + .fontColor(Color.Black) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage116.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage116.ets new file mode 100644 index 00000000..d7c3e0a6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage116.ets @@ -0,0 +1,33 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage116 { + @State colorStyle:Color = Color.Green + + build() { + Column() { + Text() { + Span(' Hello World ! ') + .fontSize('20fp') + .textBackgroundStyle({ color:this.colorStyle }) + .fontColor(Color.Black) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage117.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage117.ets new file mode 100644 index 00000000..cd047a54 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage117.ets @@ -0,0 +1,37 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage117 { + + build() { + Column() { + Text() { + ContainerSpan() { + ImageSpan($r('app.media.icon')) + .width('40vp') + .height('40vp') + .verticalAlign(ImageSpanAlignment.CENTER) + Span(' Hello World ! ') + .fontSize('16fp') + .fontColor(Color.Black) + }.textBackgroundStyle({color:Color.Green,radius: 5}) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage118.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage118.ets new file mode 100644 index 00000000..7420bf62 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage118.ets @@ -0,0 +1,37 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage118 { + + build() { + Column() { + Text() { + ContainerSpan() { + ImageSpan($r('app.media.icon')) + .width('140vp') + .height('140vp') + .verticalAlign(ImageSpanAlignment.CENTER) + Span('Hello World !') + .fontSize('16fp') + .fontColor(Color.Black) + }.textBackgroundStyle({color:Color.Green,radius: 5}) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage119.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage119.ets new file mode 100644 index 00000000..bfbcfc47 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage119.ets @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage119 { + @State fontSize:Length = 18 + @State imageSize:Length = '80vp' + + build() { + Column() { + Text() { + ContainerSpan() { + ImageSpan($r('app.media.icon')) + .width(this.imageSize) + .height(this.imageSize) + .verticalAlign(ImageSpanAlignment.CENTER) + Span('Hello World !') + .fontSize(this.fontSize) + .fontColor(Color.Black) + }.textBackgroundStyle({color:Color.Green,radius: 5}) + }.margin({top:50}) + .width(240) + .height(150) + + Button("字体大小++") + .id("fontAttributePage119_01") + .fontSize(18) + .onClick(()=>{ + this.fontSize = 30 + }) + .margin({top:50}) + + Button("图片大小++") + .id("fontAttributePage119_02") + .fontSize(18) + .onClick(()=>{ + this.imageSize = '140vp' + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage120.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage120.ets new file mode 100644 index 00000000..eb89d8b2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage120.ets @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage120 { + + build() { + Column() { + Text() { + ContainerSpan() { + ImageSpan($r('app.media.icon')) + .width('40vp') + .height('40vp') + .verticalAlign(ImageSpanAlignment.CENTER) + .textBackgroundStyle({color:Color.Red,radius: 5}) + Span('Hello World !') + .fontSize('16fp') + .fontColor(Color.Black) + .textBackgroundStyle({color:Color.Blue,radius: 5}) + }.textBackgroundStyle({color:Color.Green,radius: 5}) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage121.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage121.ets new file mode 100644 index 00000000..acaf6059 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage121.ets @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage121 { + + build() { + Column() { + Text() { + ContainerSpan() { + ImageSpan($r('app.media.icon')) + .width('40vp') + .height('40vp') + .verticalAlign(ImageSpanAlignment.CENTER) + Span('Hello World !') + .fontSize('16fp') + .fontColor(Color.Black) + .textBackgroundStyle({color:Color.Blue,radius: 5}) + }.textBackgroundStyle({color:Color.Green,radius: 5}) + }.margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage122.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage122.ets new file mode 100644 index 00000000..868a62d3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage122.ets @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage122 { + + build() { + Column() { + Text() { + ContainerSpan() { + ImageSpan($r('app.media.icon')) + .width('40vp') + .height('40vp') + .verticalAlign(ImageSpanAlignment.CENTER) + Span('Hello World !') + .fontSize('16fp') + .fontColor(Color.Black) + }.textBackgroundStyle({color:Color.Red,radius: 5}) + }.backgroundColor(Color.Blue) + .margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage123.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage123.ets new file mode 100644 index 00000000..86d85901 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage123.ets @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage123 { + + build() { + Column() { + Text() { + ContainerSpan() { + ImageSpan($r('app.media.icon')) + .width('40vp') + .height('40vp') + .verticalAlign(ImageSpanAlignment.CENTER) + Span('Hello World !') + .fontSize('16fp') + .fontColor(Color.Black) + }.textBackgroundStyle({color:Color.Red,radius: 5}) + }.borderRadius(10) + .margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage124.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage124.ets new file mode 100644 index 00000000..52b96b11 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage124.ets @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage124 { + + build() { + Column() { + Text() { + ContainerSpan() { + ImageSpan($r('app.media.icon')) + .width('20vp') + .height('20vp') + .verticalAlign(ImageSpanAlignment.CENTER) + Span('1') + .fontSize('16fp') + .fontColor(Color.Black) + ImageSpan($r('app.media.icon')) + .width('20vp') + .height('20vp') + .verticalAlign(ImageSpanAlignment.CENTER) + Span('2') + .fontSize('16fp') + .fontColor(Color.Black) + ImageSpan($r('app.media.icon')) + .width('20vp') + .height('20vp') + .verticalAlign(ImageSpanAlignment.CENTER) + Span('3') + .fontSize('16fp') + .fontColor(Color.Black) + }.textBackgroundStyle({color:Color.Red,radius: 5}) + }.borderRadius(10) + .margin({top:50}) + .width(240) + .height(150) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage125.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage125.ets new file mode 100644 index 00000000..59a9fbb6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage125.ets @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage125 { + @State arr:number[] = [1,2,3,4,5,6,7,8,9,10,11,12] + + build() { + Column() { + Text() { + ContainerSpan() { + ForEach(this.arr, (item: number) => { + ImageSpan($r('app.media.icon')) + .width('60vp') + .height('60vp') + .verticalAlign(ImageSpanAlignment.CENTER) + Span(''+ String(item)) + .fontSize('16fp') + .fontColor(Color.Black) + }, (item: string) => item) + }.textBackgroundStyle({color:Color.Red,radius: 5}) + }.borderRadius(10) + .margin({top:50}) + .width(240) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage126.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage126.ets new file mode 100644 index 00000000..f3a686e4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage126.ets @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage126 { + @State textWidth:Length = 185 + @State arr:number[] = [1,2,3] + + build() { + Column() { + Text() { + ContainerSpan() { + ForEach(this.arr, (item: number) => { + ImageSpan($r('app.media.icon')) + .width(40) + .height(40) + .verticalAlign(ImageSpanAlignment.CENTER) + Span(''+ String(item)) + .fontSize('16fp') + .fontColor(Color.Black) + .borderWidth(1) + }, (item: string) => item) + }.textBackgroundStyle({color:Color.Red,radius: 5}) + }.borderRadius(10) + .width(this.textWidth) + .borderWidth(1) + + Button("Text组件宽度--") + .id("fontAttributePage126_01") + .fontSize(18) + .onClick(()=>{ + this.textWidth = 140 + }) + .margin({top:50}) + + Button("Text组件宽度++") + .id("fontAttributePage126_02") + .fontSize(18) + .onClick(()=>{ + this.textWidth = 250 + }) + .margin({top:50}) + .margin({top:50}) + .width(240) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage127.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage127.ets new file mode 100644 index 00000000..5591d6db --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage127.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage127 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent(10) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:文本截断是按字截断") + .id("fontAttributePage127") + .fontSize(18) + .onClick(()=>{ + this.text = "文本截断是按字截断" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage128.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage128.ets new file mode 100644 index 00000000..a35f45d1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage128.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage128 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text + this.textSize.height) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent(10) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i ams") + .id("fontAttributePage128") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i ams" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage129.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage129.ets new file mode 100644 index 00000000..89a98adb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage129.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage129 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent(0) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am") + .id("fontAttributePage129") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage130.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage130.ets new file mode 100644 index 00000000..4ab66448 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage130.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage130 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent(0) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am asdf") + .id("fontAttributePage130") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am asdf" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage131.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage131.ets new file mode 100644 index 00000000..47b8ca1a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage131.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage131 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent(-10) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am") + .id("fontAttributePage131") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage132.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage132.ets new file mode 100644 index 00000000..8b386108 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage132.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage132 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent(-10) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am asdf") + .id("fontAttributePage132") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am asdf" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage133.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage133.ets new file mode 100644 index 00000000..cd048406 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage133.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage133 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent("0") + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am") + .id("fontAttributePage133") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage134.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage134.ets new file mode 100644 index 00000000..47341211 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage134.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage134 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent("0") + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am asdf") + .id("fontAttributePage134") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am asdf" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage135.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage135.ets new file mode 100644 index 00000000..ff24f935 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage135.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage135 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent("30px") + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本") + .id("fontAttributePage135") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage136.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage136.ets new file mode 100644 index 00000000..1145e460 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage136.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage136 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent("30px") + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i ams") + .id("fontAttributePage136") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i ams" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage137.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage137.ets new file mode 100644 index 00000000..41eb5ced --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage137.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage137 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent("-10px") + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am") + .id("fontAttributePage137") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage138.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage138.ets new file mode 100644 index 00000000..8e535a3d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage138.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage138 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent("-10px") + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am asdf") + .id("fontAttributePage138") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am asdf" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage139.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage139.ets new file mode 100644 index 00000000..58b7fed3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage139.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage139 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent("10%") + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本") + .id("fontAttributePage139") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage140.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage140.ets new file mode 100644 index 00000000..cd035718 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage140.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage140 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent("10%") + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am") + .id("fontAttributePage140") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file -- Gitee From 5af019a8a8d2d6ae4ec8e77e8ef860c187fe57d3 Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 16:32:19 +0800 Subject: [PATCH 10/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../fontAttributePage141.ets | 62 ++++++++++++++++++ .../fontAttributePage142.ets | 62 ++++++++++++++++++ .../fontAttributePage143.ets | 61 ++++++++++++++++++ .../fontAttributePage144.ets | 61 ++++++++++++++++++ .../fontAttributePage145.ets | 62 ++++++++++++++++++ .../fontAttributePage146.ets | 62 ++++++++++++++++++ .../fontAttributePage147.ets | 62 ++++++++++++++++++ .../fontAttributePage148.ets | 64 +++++++++++++++++++ .../fontAttributePage149.ets | 62 ++++++++++++++++++ .../fontAttributePage150.ets | 62 ++++++++++++++++++ .../fontAttributePage151.ets | 62 ++++++++++++++++++ .../fontAttributePage152.ets | 64 +++++++++++++++++++ .../fontAttributePage153.ets | 62 ++++++++++++++++++ .../fontAttributePage154.ets | 64 +++++++++++++++++++ .../fontAttributePage155.ets | 62 ++++++++++++++++++ .../fontAttributePage156.ets | 62 ++++++++++++++++++ .../fontAttributePage157.ets | 62 ++++++++++++++++++ .../fontAttributePage158.ets | 64 +++++++++++++++++++ .../fontAttributePage159.ets | 62 ++++++++++++++++++ .../fontAttributePage160.ets | 62 ++++++++++++++++++ .../fontAttributePage161.ets | 62 ++++++++++++++++++ .../fontAttributePage162.ets | 64 +++++++++++++++++++ .../fontAttributePage163.ets | 62 ++++++++++++++++++ .../fontAttributePage164.ets | 64 +++++++++++++++++++ .../fontAttributePage165.ets | 62 ++++++++++++++++++ .../fontAttributePage166.ets | 62 ++++++++++++++++++ .../fontAttributePage167.ets | 62 ++++++++++++++++++ .../fontAttributePage168.ets | 64 +++++++++++++++++++ .../fontAttributePage169.ets | 62 ++++++++++++++++++ .../fontAttributePage170.ets | 62 ++++++++++++++++++ 30 files changed, 1872 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage141.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage142.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage143.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage144.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage145.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage146.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage147.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage148.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage149.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage150.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage151.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage152.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage153.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage154.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage155.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage156.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage157.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage158.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage159.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage160.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage161.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage162.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage163.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage164.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage165.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage166.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage167.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage168.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage169.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage170.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage141.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage141.ets new file mode 100644 index 00000000..7dc327ad --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage141.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage141 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent("abc") + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am") + .id("fontAttributePage141") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage142.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage142.ets new file mode 100644 index 00000000..f038c6fd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage142.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage142 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .textIndent("abc") + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am asdf") + .id("fontAttributePage142") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am asdf" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage143.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage143.ets new file mode 100644 index 00000000..4f838f33 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage143.ets @@ -0,0 +1,61 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage143 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am") + .id("fontAttributePage143") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage144.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage144.ets new file mode 100644 index 00000000..d1193b1f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage144.ets @@ -0,0 +1,61 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage144 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am asdf") + .id("fontAttributePage144") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am asdf" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage145.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage145.ets new file mode 100644 index 00000000..3b63d74a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage145.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage145 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.NORMAL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:文本截断是按字截断") + .id("fontAttributePage145") + .fontSize(18) + .onClick(()=>{ + this.text = "文本截断是按字截断" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage146.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage146.ets new file mode 100644 index 00000000..f9cf27bd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage146.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage146 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.NORMAL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本是按字") + .id("fontAttributePage146") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本是按字" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage147.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage147.ets new file mode 100644 index 00000000..7a937800 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage147.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage147 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.NORMAL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:てられますテキスト切り捨ては単語によって切り捨て") + .id("fontAttributePage147") + .fontSize(18) + .onClick(()=>{ + this.text = "てられますテキスト切り捨ては単語によって切り捨て" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage148.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage148.ets new file mode 100644 index 00000000..cbc31ee3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage148.ets @@ -0,0 +1,64 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage148 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.NORMAL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:この切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によっ" + + "て切り捨てられますテキストは単語によって切り") + .id("fontAttributePage148") + .fontSize(18) + .onClick(()=>{ + this.text = "この切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によ" + + "って切り捨てられますテキストは単語によって切り" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage149.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage149.ets new file mode 100644 index 00000000..5dce2c0d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage149.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage149 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.NORMAL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다") + .id("fontAttributePage149") + .fontSize(18) + .onClick(()=>{ + this.text = "이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage150.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage150.ets new file mode 100644 index 00000000..97af00fc --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage150.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage150 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.NORMAL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다") + .id("fontAttributePage150") + .fontSize(18) + .onClick(()=>{ + this.text = "이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage151.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage151.ets new file mode 100644 index 00000000..5d7e02a7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage151.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage151 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.NORMAL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:This truncation is truncated text by") + .id("fontAttributePage151") + .fontSize(18) + .onClick(()=>{ + this.text = "This truncation is truncated text by" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage152.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage152.ets new file mode 100644 index 00000000..fe898d83 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage152.ets @@ -0,0 +1,64 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage152 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.NORMAL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:This truncation is truncating text by word Truncating text by word Truncating text by word " + + "Truncating text by word Truncating text by word Yes") + .id("fontAttributePage152") + .fontSize(18) + .onClick(()=>{ + this.text = "This truncation is truncating text by word Truncating text by word Truncating text by word " + + "Truncating text by word Truncating text by word Yes" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage153.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage153.ets new file mode 100644 index 00000000..e0460cdf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage153.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage153 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.NORMAL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:按字截断によって切이 잘림This truncation is") + .id("fontAttributePage153") + .fontSize(18) + .onClick(()=>{ + this.text = "按字截断によって切이 잘림This truncation is" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage154.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage154.ets new file mode 100644 index 00000000..6f35e25c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage154.ets @@ -0,0 +1,64 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage154 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.NORMAL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:按字截断によって切이 잘림This truncation is按字截断によって切이 잘림This truncation is按字截断によって切이 " + + "잘림This truncation is按字截断によって切이 잘림This truncation is") + .id("fontAttributePage154") + .fontSize(18) + .onClick(()=>{ + this.text = "按字截断によって切이 잘림This truncation is按字截断によって切이 잘림This truncation is按字截断によって切이 " + + "잘림This truncation is按字截断によって切이 잘림This truncation is" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage155.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage155.ets new file mode 100644 index 00000000..508690fb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage155.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage155 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_ALL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:文本截断是按字截断") + .id("fontAttributePage155") + .fontSize(18) + .onClick(()=>{ + this.text = "文本截断是按字截断" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage156.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage156.ets new file mode 100644 index 00000000..f5e45777 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage156.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage156 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_ALL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本是按字") + .id("fontAttributePage156") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本是按字" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage157.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage157.ets new file mode 100644 index 00000000..d61eafb5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage157.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage157 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_ALL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:てられますテキスト切り捨ては単語によって切り捨て") + .id("fontAttributePage157") + .fontSize(18) + .onClick(()=>{ + this.text = "てられますテキスト切り捨ては単語によって切り捨て" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage158.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage158.ets new file mode 100644 index 00000000..bdd5206b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage158.ets @@ -0,0 +1,64 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage158 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_ALL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:この切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によ" + + "って切り捨てられますテキストは単語によって切り") + .id("fontAttributePage158") + .fontSize(18) + .onClick(()=>{ + this.text = "この切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によって切り捨てられますテキスト切り捨ては単語" + + "によって切り捨てられますテキストは単語によって切り" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage159.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage159.ets new file mode 100644 index 00000000..d6a8109f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage159.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage159 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_ALL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다") + .id("fontAttributePage159") + .fontSize(18) + .onClick(()=>{ + this.text = "이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage160.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage160.ets new file mode 100644 index 00000000..5e26e44e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage160.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage160 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_ALL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다") + .id("fontAttributePage160") + .fontSize(18) + .onClick(()=>{ + this.text = "이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage161.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage161.ets new file mode 100644 index 00000000..e4d90fe1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage161.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage161 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_ALL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:This truncation is truncated text by") + .id("fontAttributePage161") + .fontSize(18) + .onClick(()=>{ + this.text = "This truncation is truncated text by" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage162.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage162.ets new file mode 100644 index 00000000..a8318919 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage162.ets @@ -0,0 +1,64 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage162 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_ALL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:This truncation is truncating text by word Truncating text by word Truncating text by word " + + "Truncating text by word Truncating text by word Yes by word Truncating text by word") + .id("fontAttributePage162") + .fontSize(18) + .onClick(()=>{ + this.text = "This truncation is truncating text by word Truncating text by word Truncating text by word " + + "Truncating text by word Truncating text by word Yes by word Truncating text by word" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage163.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage163.ets new file mode 100644 index 00000000..e024faf9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage163.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage163 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_ALL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:按字截断によって切이 잘림This truncation is") + .id("fontAttributePage163") + .fontSize(18) + .onClick(()=>{ + this.text = "按字截断によって切이 잘림This truncation is" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage164.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage164.ets new file mode 100644 index 00000000..ef3d7e9a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage164.ets @@ -0,0 +1,64 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage164 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_ALL) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:按字截断によって切이 잘림This truncation is按字截断によって切이 잘림This truncation is按字截断によって切이 " + + "잘림This truncation is按字截断によって切이 잘림This truncation is") + .id("fontAttributePage164") + .fontSize(18) + .onClick(()=>{ + this.text = "按字截断によって切이 잘림This truncation is按字截断によって切이 잘림This truncation is按字截断によって切이 " + + "잘림This truncation is按字截断によって切이 잘림This truncation is" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage165.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage165.ets new file mode 100644 index 00000000..ffa9472b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage165.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage165 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_WORD) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:文本截断是按字截断") + .id("fontAttributePage165") + .fontSize(18) + .onClick(()=>{ + this.text = "文本截断是按字截断" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage166.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage166.ets new file mode 100644 index 00000000..275d3a88 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage166.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage166 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_WORD) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本是按字") + .id("fontAttributePage166") + .fontSize(18) + .onClick(()=>{ + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本是按字" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage167.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage167.ets new file mode 100644 index 00000000..a84ca352 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage167.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage167 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_WORD) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:てられますテキスト切り捨ては単語によって切り捨て") + .id("fontAttributePage167") + .fontSize(18) + .onClick(()=>{ + this.text = "てられますテキスト切り捨ては単語によって切り捨て" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage168.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage168.ets new file mode 100644 index 00000000..3916a387 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage168.ets @@ -0,0 +1,64 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage168 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_WORD) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:この切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によ" + + "って切り捨てられますテキストは単語によって切り") + .id("fontAttributePage168") + .fontSize(18) + .onClick(()=>{ + this.text = "この切り捨ては単語によって切り捨てられますテキスト切り捨ては単語によって切り捨てられますテキスト切り捨ては単語" + + "によって切り捨てられますテキストは単語によって切り" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage169.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage169.ets new file mode 100644 index 00000000..49c82198 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage169.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage169 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_WORD) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다") + .id("fontAttributePage169") + .fontSize(18) + .onClick(()=>{ + this.text = "이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage170.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage170.ets new file mode 100644 index 00000000..49457f97 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage170.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage170 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_WORD) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다") + .id("fontAttributePage170") + .fontSize(18) + .onClick(()=>{ + this.text = "이 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다. 텍스트 잘림은 단어로 자릅니다" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file -- Gitee From 329388a4de17f85eaba348df0e57a183fe452fc2 Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 16:32:35 +0800 Subject: [PATCH 11/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../fontAttributePage171.ets | 62 ++++++++++ .../fontAttributePage172.ets | 64 ++++++++++ .../fontAttributePage173.ets | 62 ++++++++++ .../fontAttributePage174.ets | 64 ++++++++++ .../fontAttributePage175.ets | 63 ++++++++++ .../fontAttributePage176.ets | 63 ++++++++++ .../fontAttributePage177.ets | 74 ++++++++++++ .../fontAttributePage178.ets | 74 ++++++++++++ .../fontAttributePage179.ets | 48 ++++++++ .../fontAttributePage180.ets | 53 +++++++++ .../fontAttributePage181.ets | 52 +++++++++ .../fontAttributePage182.ets | 64 ++++++++++ .../fontAttributePage183.ets | 58 +++++++++ .../fontAttributePage184.ets | 55 +++++++++ .../fontAttributePage185.ets | 103 ++++++++++++++++ .../fontAttributePage186.ets | 110 ++++++++++++++++++ 16 files changed, 1069 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage171.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage172.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage173.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage174.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage175.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage176.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage177.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage178.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage179.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage180.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage181.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage182.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage183.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage184.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage185.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage186.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage171.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage171.ets new file mode 100644 index 00000000..34c1a77e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage171.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage171 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_WORD) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:This truncation is truncated text by") + .id("fontAttributePage171") + .fontSize(18) + .onClick(()=>{ + this.text = "This truncation is truncated text by" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage172.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage172.ets new file mode 100644 index 00000000..52199939 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage172.ets @@ -0,0 +1,64 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage172 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_WORD) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:This truncation is truncating text by word Truncating text by word Truncating text by word " + + "Truncating text by word Truncating text by word Yes by word Truncating text by word") + .id("fontAttributePage172") + .fontSize(18) + .onClick(()=>{ + this.text = "This truncation is truncating text by word Truncating text by word Truncating text by word " + + "Truncating text by word Truncating text by word Yes by word Truncating text by word" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage173.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage173.ets new file mode 100644 index 00000000..1c1607a6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage173.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage173 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_WORD) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:按字截断によって切이 잘림This truncation is") + .id("fontAttributePage173") + .fontSize(18) + .onClick(()=>{ + this.text = "按字截断によって切이 잘림This truncation is" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage174.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage174.ets new file mode 100644 index 00000000..851f929b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage174.ets @@ -0,0 +1,64 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage174 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(2) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + .wordBreak(WordBreak.BREAK_WORD) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:按字截断によって切이 잘림This truncation is按字截断によって切이 잘림This truncation is按字截断によって切이 " + + "잘림This truncation is按字截断によって切이 잘림This truncation is") + .id("fontAttributePage174") + .fontSize(18) + .onClick(()=>{ + this.text = "按字截断によって切이 잘림This truncation is按字截断によって切이 잘림This truncation is按字截断によって切이 " + + "잘림This truncation is按字截断によって切이 잘림This truncation is" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage175.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage175.ets new file mode 100644 index 00000000..2a9f9cc5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage175.ets @@ -0,0 +1,63 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage175 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + @State maxLine:number = 3 + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(this.maxLine) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am本截断是按字截断文本截断是按字截断文本截断是按字截断文本") + .id("fontAttributePage175") + .fontSize(18) + .onClick(()=>{ + this.maxLine = 5 + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am本截断是按字截断文本截断是按字截断文本截断是按字截断文本" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage176.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage176.ets new file mode 100644 index 00000000..8e4aee81 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage176.ets @@ -0,0 +1,63 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' + +@Entry +@Component +struct fontAttributePage176 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + @State maxLine:number = 5 + controller: TextInputController = new TextInputController() + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(this.maxLine) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am本截断是按字截断文本截断是按字截断文本截断是按字截断文本") + .id("fontAttributePage176") + .fontSize(18) + .onClick(()=>{ + this.maxLine = 3 + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am本截断是按字截断文本截断是按字截断文本截断是按字截断文本" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage177.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage177.ets new file mode 100644 index 00000000..591edae2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage177.ets @@ -0,0 +1,74 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' +import window from "@ohos.window"; +import common from '@ohos.app.ability.common'; + +@Entry +@Component +struct fontAttributePage177 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + @State maxLine:number = 2 + controller: TextInputController = new TextInputController() + + private changeOrientation(isLandscape: boolean) { + // 获取UIAbility实例的上下文信息 + let context:common.UIAbilityContext = getContext(this) as common.UIAbilityContext; + // 调用该接口手动改变设备横竖屏状态 + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(isLandscape ? window.Orientation.LANDSCAPE : window.Orientation.PORTRAIT) + }); + } + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(this.maxLine) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am本截断是按字截断文本截断是按字截断文本截断是按字截断文本") + .id("fontAttributePage177") + .fontSize(18) + .onClick(()=>{ + this.changeOrientation(false) + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am本截断是按字截断文本截断是按字截断文本截断是按字截断文本" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage178.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage178.ets new file mode 100644 index 00000000..5c2b946b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage178.ets @@ -0,0 +1,74 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import measure from '@ohos.measure' +import window from "@ohos.window"; +import common from '@ohos.app.ability.common'; + +@Entry +@Component +struct fontAttributePage178 { + @State text: string = '1 height:' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + @State passwordState: boolean = false + @State maxLine:number = 2 + controller: TextInputController = new TextInputController() + + private changeOrientation(isLandscape: boolean) { + // 获取UIAbility实例的上下文信息 + let context:common.UIAbilityContext = getContext(this) as common.UIAbilityContext; + // 调用该接口手动改变设备横竖屏状态 + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(isLandscape ? window.Orientation.LANDSCAPE : window.Orientation.PORTRAIT) + }); + } + + textSize : SizeOptions = measure.measureTextSize({ + textContent: "Hello word", + fontSize: '50px' + }) + + build() { + Column() { + Text(this.text) + .margin({top:50}) + .maxLines(this.maxLine) + .width('220vp') + .minFontSize(14) + .maxFontSize(24) + + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .onChange((value: string) => { + this.text = value + }) + + Button("输入:本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am本截断是按字截断文本截断是按字截断文本截断是按字截断文本") + .id("fontAttributePage178") + .fontSize(18) + .onClick(()=>{ + this.changeOrientation(true) + this.text = "本截断是按字截断文本截断是按字截断文本截断是按字截断文本i am本截断是按字截断文本截断是按字截断文本截断是按字截断文本" + }) + .margin({top:50}) + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage179.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage179.ets new file mode 100644 index 00000000..b4a53f36 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage179.ets @@ -0,0 +1,48 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage179 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + @State start: number = 20 + @State end: number = 20 + + build() { + Column() { + Text(this.text){ + ImageSpan($r('app.media.icon')) + .width('100px') + .height('100px') + + ContainerSpan() { + Span('Hello World !').fontSize('16fp').fontColor(Color.Black) + }.textBackgroundStyle({radius: "12vp"}) + + Span('Hello World !').fontSize('16fp').fontColor(Color.Black) + + SymbolSpan($r('sys.symbol.ohos_wifi')) + .fontSize(48) + .effectStrategy(2) + } + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage180.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage180.ets new file mode 100644 index 00000000..ba895f1f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage180.ets @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage180 { + @State text:string = "我希望有个如你一般的人如山间清爽的风如古城温暖的光从清晨到夜晚由山野到书房等待不怕岁月蹉跎不怕路途遥远只要" + + "最后是你就好" + @State fontSize:number = 16 + @State wordBreak:WordBreak = WordBreak.NORMAL + + build() { + Column() { + Text(this.text){ + ImageSpan($r('app.media.icon')) + .width('100px') + .height('100px') + Span('Hello World !').fontSize('16fp').fontColor(Color.Black) + } + .fontSize(this.fontSize) + .margin({top:50}) + .wordBreak(this.wordBreak) + + Button('BREAK_ALL') + .id("fontAttributePage180_01") + .fontSize(18) + .onClick(()=>{ + this.wordBreak = WordBreak.BREAK_ALL + }) + .margin({top:50}) + + Button('BREAK_WORD') + .id("fontAttributePage180_02") + .fontSize(18) + .onClick(()=>{ + this.wordBreak = WordBreak.BREAK_WORD + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage181.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage181.ets new file mode 100644 index 00000000..03b04e32 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage181.ets @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage181 { + @State text:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Taumatawhakatangi" + + "hangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + @State fontSize:number = 16 + @State start: number = 10 + @State end: number = 20 + + build() { + Column() { + Text(this.text){ + } + .maxLines(1) + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + + Button('change selection') + .id("fontAttributePage181_01") + .margin({top:20}) + .onClick(() => { + this.start = 20 + this.end = 10 + }) + + Button('change selection') + .id("fontAttributePage181_02") + .margin({top:20}) + .onClick(() => { + this.start = 20 + this.end = 20 + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage182.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage182.ets new file mode 100644 index 00000000..e053f406 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage182.ets @@ -0,0 +1,64 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage182 { + @State text:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Taumatawhakatangi" + + "hangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + @State fontSize:number = 16 + @State maxLines:number = 1 + @State start: number = 5 + @State end: number = 30 + @State containerWidth:Length = '100%' + + build() { + Column() { + Text(this.text){ + } + .maxLines(this.maxLines) + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + + Button('change fontSize') + .id("fontAttributePage182_01") + .margin({top:20}) + .onClick(() => { + this.fontSize = 20 + }) + + Button('change maxLines') + .id("fontAttributePage182_02") + .margin({top:20}) + .onClick(() => { + this.maxLines = 3 + this.fontSize = 16 + }) + + Button('change container size') + .id("fontAttributePage182_03") + .margin({top:20}) + .onClick(() => { + this.maxLines = 1 + this.fontSize = 16 + this.containerWidth = '60%' + }) + }.width(this.containerWidth) + .height(500) + .borderWidth(2) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage183.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage183.ets new file mode 100644 index 00000000..58166b9f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage183.ets @@ -0,0 +1,58 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage183 { + @State text:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Taumatawhakatangi" + + "hangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + @State fontSize:number = 16 + @State start: number = -1 + @State end: number = -1 + + build() { + Column() { + Text(this.text){ + SymbolSpan($r('sys.symbol.ohos_wifi')) + .fontSize(20) + SymbolSpan($r('sys.symbol.ohos_wifi')) + .fontSize(20) + SymbolSpan($r('sys.symbol.ohos_wifi')) + .fontSize(20) + } + .maxLines(3) + .fontSize(this.fontSize) + .margin({top:50}) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + + Button('change selection') + .id("fontAttributePage183_01") + .margin({top:20}) + .onClick(() => { + this.start = 1 + this.end = 2 + }) + + Button('change selection') + .id("fontAttributePage183_02") + .margin({top:20}) + .onClick(() => { + this.start = 3 + this.end = 3 + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage184.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage184.ets new file mode 100644 index 00000000..7eb7bf19 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage184.ets @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage184 { + @State text:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Taumatawhakatangi" + + "hangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + @State fontSize:number = 16 + @State letterSpacing:number = 5 + + + build() { + Column() { + Text(this.text){ + SymbolSpan($r('sys.symbol.ohos_wifi')) + .fontSize(20) + SymbolSpan($r('sys.symbol.ohos_wifi')) + .fontSize(20) + SymbolSpan($r('sys.symbol.ohos_wifi')) + .fontSize(20) + } + .maxLines(3) + .fontSize(this.fontSize) + .letterSpacing(this.letterSpacing) + .margin({top:50}) + + Button('change selection') + .id("fontAttributePage184_01") + .margin({top:20}) + .onClick(() => { + this.letterSpacing = -10 + }) + + Button('change selection') + .id("fontAttributePage184_02") + .margin({top:20}) + .onClick(() => { + this.letterSpacing = 20 + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage185.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage185.ets new file mode 100644 index 00000000..dd341a74 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage185.ets @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage185 { + @State text:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Taumatawhakatangi" + + "hangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + private clickNum1:number = 0 + private clickNum2:number = 0 + @State textFontSize:number = 16 + @State symbolFontSize:number = 16 + @State textFontColor:Color = Color.Red + @State symbolFontColor:Array = [Color.Blue, Color.Blue, Color.Blue] + @State textFontWeight:FontWeight = FontWeight.Bolder + @State symbolFontWeight:FontWeight = FontWeight.Normal + + private fontWeights1:Array = [ + FontWeight.Lighter, + FontWeight.Regular, + FontWeight.Medium, + FontWeight.Bold, + FontWeight.Bolder, + ] + + private fontWeights2:Array = [ + FontWeight.Lighter, + FontWeight.Normal, + FontWeight.Regular, + FontWeight.Medium, + FontWeight.Bold, + ] + + build() { + Column() { + Text(this.text){ + SymbolSpan($r('sys.symbol.ohos_wifi')) + .fontSize(this.symbolFontSize) + .fontColor(this.symbolFontColor) + .fontWeight(this.symbolFontWeight) + } + .maxLines(3) + .fontSize(this.textFontSize) + .fontColor(this.textFontColor) + .fontWeight(this.textFontWeight) + .margin({top:50}) + + Button('change SymbolSpan style') + .id("fontAttributePage185_01") + .margin({top:20}) + .onClick(() => { + this.symbolFontSize = 24 + this.symbolFontColor = [Color.Red, Color.Red, Color.Red] + }) + + Button('change symbolFontWeight') + .id("fontAttributePage185_02") + .margin({top:20}) + .onClick(() => { + if(this.clickNum1<5){ + this.symbolFontWeight = this.fontWeights1[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==5){ + this.clickNum1=0 + } + } + }) + + Button('change Text style') + .id("fontAttributePage185_03") + .margin({top:20}) + .onClick(() => { + this.textFontSize = 24 + this.textFontColor = Color.Green + }) + + Button('change textFontWeight') + .id("fontAttributePage185_04") + .margin({top:20}) + .onClick(() => { + if(this.clickNum2<5){ + this.textFontWeight = this.fontWeights2[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==5){ + this.clickNum2=0 + } + } + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage186.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage186.ets new file mode 100644 index 00000000..18863354 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage186.ets @@ -0,0 +1,110 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributePage186 { + @State text:string = "This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Taumatawhakatangi" + + "hangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu" + private clickNum1:number = 0 + private clickNum2:number = 0 + private clickNum3:number = 0 + @State symbolFontSize:number = 16 + @State symbolFontColor:Array = [Color.Blue, Color.Blue, Color.Blue] + @State symbolFontWeight:FontWeight = FontWeight.Normal + @State effectStrategy:SymbolEffectStrategy = SymbolEffectStrategy.NONE + @State renderingStrategy:SymbolRenderingStrategy = SymbolRenderingStrategy.SINGLE + + private fontWeights1:Array = [ + FontWeight.Lighter, + FontWeight.Regular, + FontWeight.Medium, + FontWeight.Bold, + FontWeight.Bolder, + ] + + private effectStrategies:Array = [ + SymbolEffectStrategy.SCALE, + SymbolEffectStrategy.HIERARCHICAL + ] + + private renderingStrategies:Array = [ + SymbolRenderingStrategy.MULTIPLE_COLOR, + SymbolRenderingStrategy.MULTIPLE_OPACITY + ] + + build() { + Column() { + Text(this.text){ + SymbolSpan($r('sys.symbol.ohos_wifi')) + .fontSize(this.symbolFontSize) + .fontColor(this.symbolFontColor) + .fontWeight(this.symbolFontWeight) + } + .maxLines(3) + .margin({top:50}) + + Button('change SymbolSpan style') + .id("fontAttributePage186_01") + .margin({top:20}) + .onClick(() => { + this.symbolFontSize = 24 + this.symbolFontColor = [Color.Red, Color.Red, Color.Red] + }) + + Button('change symbolFontWeight') + .id("fontAttributePage186_02") + .margin({top:20}) + .onClick(() => { + if(this.clickNum1<5){ + this.symbolFontWeight = this.fontWeights1[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==5){ + this.clickNum1=0 + } + } + }) + + Button('change Text style') + .id("fontAttributePage186_03") + .margin({top:20}) + .onClick(() => { + this.symbolFontWeight = FontWeight.Normal + if(this.clickNum2<2){ + this.effectStrategy = this.effectStrategies[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==2){ + this.clickNum2=0 + } + } + }) + + Button('change textFontWeight') + .id("fontAttributePage186_04") + .margin({top:20}) + .onClick(() => { + this.effectStrategy = SymbolEffectStrategy.NONE + if(this.clickNum3<2){ + this.symbolFontWeight = FontWeight.Normal + this.renderingStrategy = this.renderingStrategies[this.clickNum3] + this.clickNum3++ + if(this.clickNum3==2){ + this.clickNum3=0 + } + } + }) + }.width('100%') + } +} \ No newline at end of file -- Gitee From fab25d0babf34367afdcc4a701b7f302595578c7 Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 16:36:44 +0800 Subject: [PATCH 12/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../fontAttributeAndStyle01.ets | 82 ++++++++++++++++ .../fontAttributeAndStyle02.ets | 50 ++++++++++ .../fontAttributeAndStyle03.ets | 93 +++++++++++++++++++ .../fontAttributeAndStyle04.ets | 39 ++++++++ .../fontAttributeAndStyle05.ets | 53 +++++++++++ .../fontAttributeAndStyle06.ets | 84 +++++++++++++++++ .../fontAttributeAndStyle07.ets | 77 +++++++++++++++ .../fontAttributeAndStyle08.ets | 87 +++++++++++++++++ .../fontAttributeAndStyle09.ets | 87 +++++++++++++++++ .../fontAttributeAndStyle10.ets | 67 +++++++++++++ .../fontAttributeAndStyle11.ets | 56 +++++++++++ .../fontAttributeAndStyle12.ets | 88 ++++++++++++++++++ .../fontAttributeAndStyle13.ets | 55 +++++++++++ .../fontAttributeAndStyle14.ets | 84 +++++++++++++++++ .../fontAttributeAndStyle15.ets | 84 +++++++++++++++++ .../fontAttributeAndStyle16.ets | 78 ++++++++++++++++ .../fontAttributeAndStyle17.ets | 56 +++++++++++ .../fontAttributeAndStyle18.ets | 88 ++++++++++++++++++ .../fontAttributeAndStyle19.ets | 65 +++++++++++++ .../fontAttributeAndStyle20.ets | 37 ++++++++ 20 files changed, 1410 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle01.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle02.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle03.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle04.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle05.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle06.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle07.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle08.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle09.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle10.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle11.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle12.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle13.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle14.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle15.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle16.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle17.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle18.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle19.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle20.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle01.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle01.ets new file mode 100644 index 00000000..87efa8e7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle01.ets @@ -0,0 +1,82 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle01 { + @State decoration: TextDecorationOptions = {type: TextDecorationType.None, color: Color.Black} + @State letterSpacing:number | string | Resource = 0 + @State text:ResourceStr = "111111111" + private clickNum1:number = 0 + private clickNum2:number = 0 + private decorations:Array = [ + {type: TextDecorationType.Underline}, + {type: TextDecorationType.LineThrough}, + {type: TextDecorationType.Overline}, + {type: TextDecorationType.None}, + {type: TextDecorationType.Underline, color: Color.Pink}, + {type: TextDecorationType.Underline, color: "0x008000"}, + {type: TextDecorationType.Underline, color: "rgb(255, 0, 0)"}, + {type: TextDecorationType.Underline, color: "#0000ff"}, + {type: TextDecorationType.Underline, color: $r('app.color.yellow')}, + ] + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + + build() { + Column() { + TextInput({ placeholder: 'please input', text:this.text }) + .type(InputType.Normal) + .width(240) + .height(60) + .margin({top:50}) + .decoration(this.decoration) + .letterSpacing(this.letterSpacing) + + Button("decoration") + .id("fontAttributeAndStyle01_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<9){ + this.decoration = this.decorations[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==9){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle01_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==5){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle02.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle02.ets new file mode 100644 index 00000000..10328d38 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle02.ets @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle02 { + @State text:ResourceStr = "111111111" + private clickNum1:number = 0 + private text_all:Array = [ + "总有一条蜿蜒在童话镇里七彩的河", + "%¥……@!*()&", + " " + ] + + build() { + Column() { + TextInput({ placeholder: 'please input', text:this.text }) + .type(InputType.Normal) + .width(240) + .height(60) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle02") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<3){ + this.text = this.text_all[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==3){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle03.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle03.ets new file mode 100644 index 00000000..8e5d741c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle03.ets @@ -0,0 +1,93 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle03 { + @State text:ResourceStr = "111111111" + @State letterSpacing:number | string | Resource = 0 + @State textInput:ResourceStr = "开源鸿蒙" + private clickNum1:number = 0 + private clickNum2:number = 0 + private text_all:Array = [ + "总有一条蜿蜒在童话镇里七彩的河", + "%¥……@!*()&", + " " + ] + + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + + build() { + Column() { + TextInput({ placeholder: 'please input', text:this.text }) + .type(InputType.Normal) + .letterSpacing(this.letterSpacing) + .width(240) + .height(60) + .margin({top:50}) + + Button("Input") + .id("fontAttributeAndStyle03_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<3){ + this.textInput = this.text_all[this.clickNum1] + this.text = this.textInput + this.clickNum1++ + if(this.clickNum1==3){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle03_02") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum1==5){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("clear text") + .id("fontAttributeAndStyle03_03") + .fontSize(18) + .onClick(()=>{ + this.text = "" + }) + .margin({top:50}) + + Button("Input after clear") + .id("fontAttributeAndStyle03_04") + .fontSize(18) + .onClick(()=>{ + this.text = this.textInput + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle04.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle04.ets new file mode 100644 index 00000000..83353e72 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle04.ets @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle04 { + @State text:ResourceStr = "111111111" + @State textInput:ResourceStr = "开源鸿蒙" + + build() { + Column() { + TextInput({ placeholder: 'please input', text:this.text }) + .type(InputType.Normal) + .letterSpacing(3) + .width(240) + .height(60) + .margin({top:50}) + + TextInput({ placeholder: 'please input'}) + .type(InputType.Normal) + .letterSpacing(-2) + .width(240) + .height(60) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle05.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle05.ets new file mode 100644 index 00000000..851f0458 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle05.ets @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle05 { + @State letterSpacing:number | string | Resource = 0 + private clickNum2:number = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + + build() { + Column() { + TextInput({ placeholder: 'please input'}) + .type(InputType.Normal) + .letterSpacing(this.letterSpacing) + .width(240) + .height(60) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle05") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum1==5){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle06.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle06.ets new file mode 100644 index 00000000..894197d4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle06.ets @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle15 { + @State letterSpacing:number | string | Resource = 0 + @State type:InputType = InputType.Normal + @State text:string = "开源鸿蒙" + private clickNum1:number = 0 + private clickNum2:number = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + + private types:Array = [ + InputType.Normal, + InputType.Password, + InputType.Email, + InputType.Number, + InputType.PhoneNumber, + InputType.USER_NAME, + InputType.NEW_PASSWORD, + InputType.NUMBER_PASSWORD, + InputType.NUMBER_DECIMAL, + InputType.URL, + ] + + build() { + Column() { + TextInput({ placeholder: 'please input',text:this.text }) + .fontSize(24) + .type(InputType.Normal) + .width(240) + .height(60) + .letterSpacing(this.letterSpacing) + .margin({top:50}) + + Button("type") + .id("fontAttributeAndStyle06_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<10){ + this.type = this.types[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==10){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle06_02") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum1==5){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle07.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle07.ets new file mode 100644 index 00000000..9c3ae505 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle07.ets @@ -0,0 +1,77 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle07 { + @State letterSpacing:number | string | Resource = 0 + @State type:InputType = InputType.Normal + @State style:TextInputStyle = TextInputStyle.Default + @State text:string = "开源鸿蒙开源鸿蒙开源鸿蒙" + private clickNum1:number = 0 + private clickNum2:number = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + private styles:Array = [ + TextInputStyle.Default, + TextInputStyle.Inline + ] + + build() { + Column() { + TextInput({ placeholder: 'please input',text:this.text }) + .fontSize(24) + .type(InputType.Normal) + .style(this.style) + .width(240) + .height(60) + .letterSpacing(this.letterSpacing) + .margin({top:50}) + + Button("style") + .id("fontAttributeAndStyle07_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<2){ + this.style = this.styles[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==2){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle07_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum1==5){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle08.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle08.ets new file mode 100644 index 00000000..9b0a091d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle08.ets @@ -0,0 +1,87 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle08 { + @State text:ResourceStr = "" + @State letterSpacing:number | string | Resource = 0 + @State textAlign:TextAlign = TextAlign.Start + @State style:TextContentStyle = TextContentStyle.DEFAULT + private clickNum1:number = 0 + private clickNum2:number = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + private textAligns:Array = [ + TextAlign.Start, + TextAlign.Center, + TextAlign.End + ] + + build() { + Column() { + TextInput({ placeholder: 'please input',text:this.text }) + .fontSize(24) + .type(InputType.Normal) + .style(this.style) + .width(240) + .height(60) + .textAlign(this.textAlign) + .letterSpacing(this.letterSpacing) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle08_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==5){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("textAlign") + .id("fontAttributeAndStyle08_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<3){ + this.textAlign = this.textAligns[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==3){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle08_3") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle09.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle09.ets new file mode 100644 index 00000000..cb7316b7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle09.ets @@ -0,0 +1,87 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle09 { + @State text:ResourceStr = "" + @State letterSpacing:number | string | Resource = 0 + @State fontSize:Length = 18 + @State style:TextContentStyle = TextContentStyle.DEFAULT + private clickNum1:number = 0 + private clickNum2:number = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + private fontSizes:Array = [ + 0, + 10, + 20, + 30 + ] + + build() { + Column() { + TextInput({ placeholder: 'please input',text:this.text }) + .fontSize(this.fontSize) + .type(InputType.Normal) + .style(this.style) + .width(240) + .height(60) + .letterSpacing(this.letterSpacing) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle09_1") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle09_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==5){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("fontSize") + .id("fontAttributeAndStyle09_3") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<4){ + this.fontSize = this.fontSizes[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==4){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle10.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle10.ets new file mode 100644 index 00000000..d9d131b9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle10.ets @@ -0,0 +1,67 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle10 { + @State text:ResourceStr = "" + @State letterSpacing:number | string | Resource = 0 + @State style:TextContentStyle = TextContentStyle.DEFAULT + private clickNum1:number = 0 + private clickNum2:number = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + + build() { + Column() { + TextInput({ placeholder: 'please input',text:this.text }) + .id("fontAttributeAndStyle10") + .fontSize(18) + .type(InputType.Normal) + .style(this.style) + .width(240) + .height(60) + .letterSpacing(this.letterSpacing) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle10_1") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle10_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==5){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle11.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle11.ets new file mode 100644 index 00000000..dfbcfab2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle11.ets @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle11 { + @State text:ResourceStr = "开源鸿蒙" + @State lineHeight:number | string | Resource = 24 + private clickNum1:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + + build() { + Column() { + TextInput({ placeholder: 'please input', text:this.text }) + .fontSize(24) + .type(InputType.Normal) + .width(240) + .height(60) + .lineHeight(this.lineHeight) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle11") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<6){ + this.lineHeight = this.lineHeights[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==6){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle12.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle12.ets new file mode 100644 index 00000000..01190e00 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle12.ets @@ -0,0 +1,88 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle12 { + @State text:ResourceStr = "" + @State lineHeight:number | string | Resource = 24 + @State fontSize:Length = 18 + @State style:TextContentStyle = TextContentStyle.DEFAULT + private clickNum1:number = 0 + private clickNum2:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + private fontSizes:Array = [ + 0, + 10, + 20, + 30 + ] + + build() { + Column() { + TextInput({ placeholder: 'please input',text:this.text }) + .fontSize(this.fontSize) + .type(InputType.Normal) + .style(this.style) + .width(240) + .height(60) + .lineHeight(this.lineHeight) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle12_1") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle12_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<6){ + this.lineHeight = this.lineHeights[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==6){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("fontSize") + .id("fontAttributeAndStyle12_3") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<4){ + this.fontSize = this.fontSizes[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==4){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle13.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle13.ets new file mode 100644 index 00000000..2ec41fe3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle13.ets @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle13 { + @State lineHeight:number | string | Resource = 24 + private clickNum1:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + + build() { + Column() { + TextInput({ placeholder: 'please input' }) + .fontSize(24) + .type(InputType.Normal) + .width(240) + .height(60) + .lineHeight(this.lineHeight) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle13") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<6){ + this.lineHeight = this.lineHeights[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==6){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle14.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle14.ets new file mode 100644 index 00000000..95c2aae6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle14.ets @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle14 { + @State lineHeight:number | string | Resource = 24 + @State text:ResourceStr = "开源鸿蒙" + private clickNum1:number = 0 + private clickNum2:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + private text_all:Array = [ + "总有一条蜿蜒在童话镇里七彩的河", + "%¥……@!*()&", + " " + ] + + build() { + Column() { + TextInput({ placeholder: 'please input',text:this.text }) + .fontSize(24) + .type(InputType.Normal) + .width(240) + .height(60) + .lineHeight(this.lineHeight) + .margin({top:50}) + + Button("Input") + .id("fontAttributeAndStyle14_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<3){ + this.text = this.text_all[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==3){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle14_02") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<6){ + this.lineHeight = this.lineHeights[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==6){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("clear text") + .id("fontAttributeAndStyle14_03") + .fontSize(18) + .onClick(()=>{ + this.text = "" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle15.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle15.ets new file mode 100644 index 00000000..f0739423 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle15.ets @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle15 { + @State lineHeight:number | string | Resource = 24 + @State type:InputType = InputType.Normal + @State text:string = "开源鸿蒙" + private clickNum1:number = 0 + private clickNum2:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + private types:Array = [ + InputType.Normal, + InputType.Password, + InputType.Email, + InputType.Number, + InputType.PhoneNumber, + InputType.USER_NAME, + InputType.NEW_PASSWORD, + InputType.NUMBER_PASSWORD, + InputType.NUMBER_DECIMAL, + InputType.URL, + ] + + build() { + Column() { + TextInput({ placeholder: 'please input',text:this.text }) + .fontSize(24) + .type(InputType.Normal) + .width(240) + .height(60) + .lineHeight(this.lineHeight) + .margin({top:50}) + + Button("type") + .id("fontAttributeAndStyle15_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<10){ + this.type = this.types[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==10){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle15_02") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<6){ + this.lineHeight = this.lineHeights[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==6){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle16.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle16.ets new file mode 100644 index 00000000..921d2580 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle16.ets @@ -0,0 +1,78 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle16 { + @State lineHeight:number | string | Resource = 24 + @State type:InputType = InputType.Normal + @State style:TextInputStyle = TextInputStyle.Default + @State text:string = "开源鸿蒙开源鸿蒙开源鸿蒙" + private clickNum1:number = 0 + private clickNum2:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + private styles:Array = [ + TextInputStyle.Default, + TextInputStyle.Inline + ] + + build() { + Column() { + TextInput({ placeholder: 'please input',text:this.text }) + .fontSize(24) + .type(InputType.Normal) + .style(this.style) + .width(240) + .height(60) + .lineHeight(this.lineHeight) + .margin({top:50}) + + Button("style") + .id("fontAttributeAndStyle16_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<2){ + this.style = this.styles[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==2){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle16_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<6){ + this.lineHeight = this.lineHeights[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==6){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle17.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle17.ets new file mode 100644 index 00000000..9367d556 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle17.ets @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle17 { + @State text:ResourceStr = "开源鸿蒙" + @State lineHeight:number | string | Resource = 24 + private clickNum1:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + + build() { + Column() { + TextInput({ placeholder: 'please input', text:this.text }) + .fontSize(24) + .type(InputType.Normal) + .width(240) + .height(60) + .lineHeight(this.lineHeight) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle17_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<6){ + this.lineHeight = this.lineHeights[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==6){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle18.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle18.ets new file mode 100644 index 00000000..bfad875f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle18.ets @@ -0,0 +1,88 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle18 { + @State lineHeight:number | string | Resource = 24 + @State type:InputType = InputType.Normal + @State style:TextInputStyle = TextInputStyle.Default + @State text:string = "开源鸿蒙开源鸿蒙开源鸿蒙" + @State decoration:TextDecorationOptions = {type:TextDecorationType.None} + private clickNum1:number = 0 + private clickNum2:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + private styles:Array = [ + TextInputStyle.Default, + TextInputStyle.Inline + ] + + build() { + Column() { + TextInput({ placeholder: 'please input',text:this.text }) + .fontSize(24) + .type(InputType.Normal) + .style(this.style) + .decoration(this.decoration) + .width(240) + .height(60) + .lineHeight(this.lineHeight) + .margin({top:50}) + + Button("style") + .id("fontAttributeAndStyle18_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<2){ + this.style = this.styles[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==2){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle18_02") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<6){ + this.lineHeight = this.lineHeights[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==6){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("decoration") + .id("fontAttributeAndStyle18_03") + .fontSize(18) + .onClick(()=>{ + this.decoration = {type:TextDecorationType.Underline} + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle19.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle19.ets new file mode 100644 index 00000000..f2badd3a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle19.ets @@ -0,0 +1,65 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle19 { + @State decoration: TextDecorationOptions = {type: TextDecorationType.None, color: Color.Black} + @State text:ResourceStr = "" + private clickNum1:number = 0 + private decorations:Array = [ + {type: TextDecorationType.Underline}, + {type: TextDecorationType.LineThrough}, + {type: TextDecorationType.Overline}, + {type: TextDecorationType.None}, + {type: TextDecorationType.Underline, color: Color.Pink}, + {type: TextDecorationType.Underline, color: "0x008000"}, + {type: TextDecorationType.Underline, color: "rgb(255, 0, 0)"}, + {type: TextDecorationType.Underline, color: "#0000ff"}, + {type: TextDecorationType.Underline, color: $r('app.color.yellow')}, + ] + + build() { + Column() { + TextArea({ placeholder: 'please input', text:this.text }) + .width(240) + .height(60) + .margin({top:50}) + .decoration(this.decoration) + + Button("decoration") + .id("fontAttributeAndStyle19_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<9){ + this.decoration = this.decorations[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==9){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle19_2") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle20.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle20.ets new file mode 100644 index 00000000..405cbb4a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle20.ets @@ -0,0 +1,37 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle20 { + @State text:ResourceStr = "" + + build() { + Column() { + TextArea({ placeholder: 'please input', text:this.text }) + .width(240) + .height(60) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle20") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file -- Gitee From 0176fbae77b6104c5579c1150349e5c91b32f399 Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 16:37:09 +0800 Subject: [PATCH 13/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../fontAttributeAndStyle21.ets | 60 +++++++++ .../fontAttributeAndStyle23.ets | 56 +++++++++ .../fontAttributeAndStyle24.ets | 88 ++++++++++++++ .../fontAttributeAndStyle25.ets | 87 +++++++++++++ .../fontAttributeAndStyle26.ets | 87 +++++++++++++ .../fontAttributeAndStyle27.ets | 88 ++++++++++++++ .../fontAttributeAndStyle28.ets | 115 ++++++++++++++++++ .../fontAttributeAndStyle29.ets | 81 ++++++++++++ .../fontAttributeAndStyle30.ets | 49 ++++++++ .../fontAttributeAndStyle31.ets | 92 ++++++++++++++ .../fontAttributeAndStyle32.ets | 53 ++++++++ .../fontAttributeAndStyle33.ets | 86 +++++++++++++ .../fontAttributeAndStyle34.ets | 84 +++++++++++++ .../fontAttributeAndStyle35.ets | 86 +++++++++++++ .../fontAttributeAndStyle36.ets | 85 +++++++++++++ .../fontAttributeAndStyle37.ets | 62 ++++++++++ .../fontAttributeAndStyle38.ets | 103 ++++++++++++++++ .../fontAttributeAndStyle39.ets | 57 +++++++++ .../fontAttributeAndStyle40.ets | 85 +++++++++++++ 19 files changed, 1504 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle21.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle23.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle24.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle25.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle26.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle27.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle28.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle29.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle30.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle31.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle32.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle33.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle34.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle35.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle36.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle37.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle38.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle39.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle40.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle21.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle21.ets new file mode 100644 index 00000000..fd569bda --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle21.ets @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle21 { + @State decoration: TextDecorationOptions = {type: TextDecorationType.None, color: Color.Black} + @State text:ResourceStr = "" + private clickNum1:number = 0 + private decorations:Array = [ + {type: TextDecorationType.Underline}, + {type: TextDecorationType.LineThrough}, + {type: TextDecorationType.Overline}, + {type: TextDecorationType.None}, + ] + + build() { + Column() { + TextArea({ placeholder: 'please input', text:this.text }) + .width(240) + .height(60) + .margin({top:50}) + .decoration(this.decoration) + + Button("decoration") + .id("fontAttributeAndStyle21_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<4){ + this.decoration = this.decorations[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==4){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle21_2") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle23.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle23.ets new file mode 100644 index 00000000..5f61ae13 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle23.ets @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle23 { + @State decoration: TextDecorationOptions = {type: TextDecorationType.None, color: Color.Black} + private clickNum1:number = 0 + private decorations:Array = [ + {type: TextDecorationType.Underline}, + {type: TextDecorationType.LineThrough}, + {type: TextDecorationType.Overline}, + {type: TextDecorationType.None}, + {type: TextDecorationType.Underline, color: Color.Pink}, + {type: TextDecorationType.Underline, color: "0x008000"}, + {type: TextDecorationType.Underline, color: "rgb(255, 0, 0)"}, + {type: TextDecorationType.Underline, color: "#0000ff"}, + {type: TextDecorationType.Underline, color: $r('app.color.yellow')}, + ] + + build() { + Column() { + TextArea({ placeholder: 'please input' }) + .width(240) + .height(60) + .margin({top:50}) + .decoration(this.decoration) + + Button("decoration") + .id("fontAttributeAndStyle23") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<9){ + this.decoration = this.decorations[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==9){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle24.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle24.ets new file mode 100644 index 00000000..c5731b68 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle24.ets @@ -0,0 +1,88 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle24 { + @State decoration: TextDecorationOptions = {type: TextDecorationType.None, color: Color.Black} + @State type:TextAreaType = TextAreaType.NORMAL + @State text:ResourceStr = "" + private clickNum1:number = 0 + private clickNum2:number = 0 + private decorations:Array = [ + {type: TextDecorationType.Underline}, + {type: TextDecorationType.LineThrough}, + {type: TextDecorationType.Overline}, + {type: TextDecorationType.None}, + {type: TextDecorationType.Underline, color: Color.Pink}, + {type: TextDecorationType.Underline, color: "0x008000"}, + {type: TextDecorationType.Underline, color: "rgb(255, 0, 0)"}, + {type: TextDecorationType.Underline, color: "#0000ff"}, + {type: TextDecorationType.Underline, color: $r('app.color.yellow')}, + ] + private types:Array = [ + TextAreaType.NORMAL, + TextAreaType.EMAIL, + TextAreaType.NUMBER, + TextAreaType.PHONE_NUMBER, + ] + + build() { + Column() { + TextArea({ placeholder: 'please input' }) + .type(this.type) + .width(240) + .height(60) + .margin({top:50}) + .decoration(this.decoration) + + Button("type") + .id("fontAttributeAndStyle24_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<4){ + this.type = this.types[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==4){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("decoration") + .id("fontAttributeAndStyle24_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<9){ + this.decoration = this.decorations[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==9){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle24_3") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle25.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle25.ets new file mode 100644 index 00000000..1cce7bcb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle25.ets @@ -0,0 +1,87 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle25 { + @State decoration: TextDecorationOptions = {type: TextDecorationType.None, color: Color.Black} + @State type:InputType = InputType.Normal + @State text:ResourceStr = "" + @State style:TextContentStyle = TextContentStyle.DEFAULT + private clickNum1:number = 0 + private clickNum2:number = 0 + private decorations:Array = [ + {type: TextDecorationType.Underline}, + {type: TextDecorationType.LineThrough}, + {type: TextDecorationType.Overline}, + {type: TextDecorationType.None}, + {type: TextDecorationType.Underline, color: Color.Pink}, + {type: TextDecorationType.Underline, color: "0x008000"}, + {type: TextDecorationType.Underline, color: "rgb(255, 0, 0)"}, + {type: TextDecorationType.Underline, color: "#0000ff"}, + {type: TextDecorationType.Underline, color: $r('app.color.yellow')}, + ] + private styles:Array = [ + TextContentStyle.DEFAULT, + TextContentStyle.INLINE + ] + + build() { + Column() { + TextArea({ placeholder: 'please input' }) + .style(this.style) + .width(240) + .height(60) + .margin({top:50}) + .decoration(this.decoration) + + Button("style") + .id("fontAttributeAndStyle25_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<2){ + this.style = this.styles[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==2){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("decoration") + .id("fontAttributeAndStyle25_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<9){ + this.decoration = this.decorations[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==9){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle25_3") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle26.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle26.ets new file mode 100644 index 00000000..7834b4b3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle26.ets @@ -0,0 +1,87 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle26 { + @State decoration: TextDecorationOptions = {type: TextDecorationType.None, color: Color.Black} + @State text:ResourceStr = "" + @State textAlign:TextAlign = TextAlign.Start + private clickNum1:number = 0 + private clickNum2:number = 0 + private decorations:Array = [ + {type: TextDecorationType.Underline}, + {type: TextDecorationType.LineThrough}, + {type: TextDecorationType.Overline}, + {type: TextDecorationType.None}, + {type: TextDecorationType.Underline, color: Color.Pink}, + {type: TextDecorationType.Underline, color: "0x008000"}, + {type: TextDecorationType.Underline, color: "rgb(255, 0, 0)"}, + {type: TextDecorationType.Underline, color: "#0000ff"}, + {type: TextDecorationType.Underline, color: $r('app.color.yellow')}, + ] + private textAligns:Array = [ + TextAlign.Start, + TextAlign.Center, + TextAlign.End + ] + + build() { + Column() { + TextArea({ placeholder: 'please input' }) + .textAlign(this.textAlign) + .width(240) + .height(60) + .margin({top:50}) + .decoration(this.decoration) + + Button("textAlign") + .id("fontAttributeAndStyle26_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<3){ + this.textAlign = this.textAligns[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==3){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("decoration") + .id("fontAttributeAndStyle26_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<9){ + this.decoration = this.decorations[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==9){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle26_3") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle27.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle27.ets new file mode 100644 index 00000000..c72d8e7c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle27.ets @@ -0,0 +1,88 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle27 { + @State decoration: TextDecorationOptions = {type: TextDecorationType.None, color: Color.Black} + @State text:ResourceStr = "" + @State fontSize:Length = 18 + private clickNum1:number = 0 + private clickNum2:number = 0 + private decorations:Array = [ + {type: TextDecorationType.Underline}, + {type: TextDecorationType.LineThrough}, + {type: TextDecorationType.Overline}, + {type: TextDecorationType.None}, + {type: TextDecorationType.Underline, color: Color.Pink}, + {type: TextDecorationType.Underline, color: "0x008000"}, + {type: TextDecorationType.Underline, color: "rgb(255, 0, 0)"}, + {type: TextDecorationType.Underline, color: "#0000ff"}, + {type: TextDecorationType.Underline, color: $r('app.color.yellow')}, + ] + private fontSizes:Array = [ + 0, + 10, + 20, + 30 + ] + + build() { + Column() { + TextArea({ placeholder: 'please input' }) + .fontSize(this.fontSize) + .width(240) + .height(60) + .margin({top:50}) + .decoration(this.decoration) + + Button("fontSize") + .id("fontAttributeAndStyle27_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<4){ + this.fontSize = this.fontSizes[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==4){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("decoration") + .id("fontAttributeAndStyle27_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<9){ + this.decoration = this.decorations[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==9){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle27_3") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle28.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle28.ets new file mode 100644 index 00000000..da39099b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle28.ets @@ -0,0 +1,115 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle28 { + @State decoration: TextDecorationOptions = {type: TextDecorationType.None, color: Color.Black} + @State text:ResourceStr = "" + @State maxLength:number = 20 + @State showCounter:boolean = false + private clickNum1:number = 0 + private clickNum2:number = 0 + private clickNum3:number = 0 + private decorations:Array = [ + {type: TextDecorationType.Underline}, + {type: TextDecorationType.LineThrough}, + {type: TextDecorationType.Overline}, + {type: TextDecorationType.None}, + {type: TextDecorationType.Underline, color: Color.Pink}, + {type: TextDecorationType.Underline, color: "0x008000"}, + {type: TextDecorationType.Underline, color: "rgb(255, 0, 0)"}, + {type: TextDecorationType.Underline, color: "#0000ff"}, + {type: TextDecorationType.Underline, color: $r('app.color.yellow')}, + ] + private maxLengths:Array = [ + 20, + 50 + ] + private showCounters:Array = [ + true, + false + ] + + build() { + Column() { + TextArea({ placeholder: 'please input' }) + .width(240) + .height(60) + .maxLength(this.maxLength) + .showCounter(this.showCounter) + .margin({top:50}) + .decoration(this.decoration) + + Button("maxLength") + .id("fontAttributeAndStyle28_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<2){ + this.maxLength = this.maxLengths[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==2){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("showCounter") + .id("fontAttributeAndStyle28_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<2){ + this.showCounter = this.showCounters[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==2){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("decoration") + .id("fontAttributeAndStyle28_3") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum3<9){ + this.decoration = this.decorations[this.clickNum3] + this.clickNum3++ + if(this.clickNum3==9){ + this.clickNum3=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle28_4") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + + Button("clear") + .id("fontAttributeAndStyle28_5") + .fontSize(18) + .onClick(()=>{ + this.text = "" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle29.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle29.ets new file mode 100644 index 00000000..6a371d86 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle29.ets @@ -0,0 +1,81 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle29 { + @State decoration: TextDecorationOptions = {type: TextDecorationType.None, color: Color.Black} + @State letterSpacing:number | string | Resource = 0 + @State text:ResourceStr = "" + private clickNum1:number = 0 + private clickNum2:number = 0 + private decorations:Array = [ + {type: TextDecorationType.Underline}, + {type: TextDecorationType.LineThrough}, + {type: TextDecorationType.Overline}, + {type: TextDecorationType.None}, + {type: TextDecorationType.Underline, color: Color.Pink}, + {type: TextDecorationType.Underline, color: "0x008000"}, + {type: TextDecorationType.Underline, color: "rgb(255, 0, 0)"}, + {type: TextDecorationType.Underline, color: "#0000ff"}, + {type: TextDecorationType.Underline, color: $r('app.color.yellow')}, + ] + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + + build() { + Column() { + TextArea({ placeholder: 'please input', text:this.text }) + .width(240) + .height(60) + .margin({top:50}) + .decoration(this.decoration) + .letterSpacing(this.letterSpacing) + + Button("decoration") + .id("fontAttributeAndStyle29_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<9){ + this.decoration = this.decorations[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==9){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle29_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==4){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle30.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle30.ets new file mode 100644 index 00000000..d9b9a928 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle30.ets @@ -0,0 +1,49 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle30 { + @State text:ResourceStr = "111111111" + private clickNum1:number = 0 + private text_all:Array = [ + "总有一条蜿蜒在童话镇里七彩的河", + "%¥……@!*()&", + " " + ] + + build() { + Column() { + TextArea({ placeholder: 'please input', text:this.text }) + .width(240) + .height(60) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle30") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<3){ + this.text = this.text_all[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==3){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle31.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle31.ets new file mode 100644 index 00000000..c85503a6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle31.ets @@ -0,0 +1,92 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle31 { + @State letterSpacing:number | string | Resource = 0 + @State textInput:ResourceStr = "开源鸿蒙" + @State text:ResourceStr = "开源鸿蒙" + private clickNum1:number = 0 + private clickNum2:number = 0 + private text_all:Array = [ + "总有一条蜿蜒在童话镇里七彩的河", + "%¥……@!*()&", + " " + ] + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + + build() { + Column() { + TextArea({ placeholder: 'please input',text:this.text }) + .fontSize(24) + .letterSpacing(this.letterSpacing) + .width(240) + .height(60) + .margin({top:50}) + + Button("Input") + .id("fontAttributeAndStyle31_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<3){ + this.textInput = this.text_all[this.clickNum1] + this.text = this.textInput + this.clickNum1++ + if(this.clickNum1==3){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle31_02") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum1==5){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("clear text") + .id("fontAttributeAndStyle31_03") + .fontSize(18) + .onClick(()=>{ + this.text = "" + }) + .margin({top:50}) + + Button("Input after clear") + .id("fontAttributeAndStyle31_04") + .fontSize(18) + .onClick(()=>{ + this.text = this.textInput + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle32.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle32.ets new file mode 100644 index 00000000..20088ff3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle32.ets @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle32 { + @State letterSpacing:number | string | Resource = 0 + private clickNum:number = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + + build() { + Column() { + TextArea({ placeholder: 'please input' }) + .fontSize(24) + .letterSpacing(this.letterSpacing) + .width(240) + .height(60) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle32") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum<5){ + this.letterSpacing = this.letterSpacings[this.clickNum] + this.clickNum++ + if(this.clickNum==5){ + this.clickNum=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle33.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle33.ets new file mode 100644 index 00000000..d0a748bc --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle33.ets @@ -0,0 +1,86 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle33 { + @State type:TextAreaType = TextAreaType.NORMAL + @State text:ResourceStr = "" + @State letterSpacing:number | string | Resource = 0 + @State textInput:ResourceStr = "开源鸿蒙" + private clickNum1:number = 0 + private clickNum2:number = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + private types:Array = [ + TextAreaType.NORMAL, + TextAreaType.EMAIL, + TextAreaType.NUMBER, + TextAreaType.PHONE_NUMBER, + ] + + build() { + Column() { + TextArea({ placeholder: 'please input', text:this.text }) + .fontSize(24) + .letterSpacing(this.letterSpacing) + .type(this.type) + .width(240) + .height(60) + .margin({top:50}) + + Button("type") + .id("fontAttributeAndStyle33_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<4){ + this.type = this.types[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==4){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle33_2") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle33_3") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==5){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle34.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle34.ets new file mode 100644 index 00000000..bb116ea6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle34.ets @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle34 { + @State text:ResourceStr = "" + @State letterSpacing:number | string | Resource = 0 + @State textInput:ResourceStr = "开源鸿蒙" + @State style:TextContentStyle = TextContentStyle.DEFAULT + private clickNum1:number = 0 + private clickNum2:number = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + private styles:Array = [ + TextContentStyle.DEFAULT, + TextContentStyle.INLINE + ] + + build() { + Column() { + TextArea({ placeholder: 'please input', text:this.text }) + .fontSize(24) + .style(this.style) + .letterSpacing(this.letterSpacing) + .width(240) + .height(60) + .margin({top:50}) + + Button("style") + .id("fontAttributeAndStyle34_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<2){ + this.style = this.styles[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==2){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle34_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==5){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle34_3") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle35.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle35.ets new file mode 100644 index 00000000..a2c69e87 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle35.ets @@ -0,0 +1,86 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle35 { + @State text:ResourceStr = "" + @State letterSpacing:number | string | Resource = 0 + @State textAlign:TextAlign = TextAlign.Start + @State textInput:ResourceStr = "开源鸿蒙" + @State style:TextContentStyle = TextContentStyle.DEFAULT + private clickNum1:number = 0 + private clickNum2:number = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + private textAligns:Array = [ + TextAlign.Start, + TextAlign.Center, + TextAlign.End + ] + + build() { + Column() { + TextArea({ placeholder: 'please input', text:this.text }) + .fontSize(24) + .textAlign(this.textAlign) + .letterSpacing(this.letterSpacing) + .width(240) + .height(60) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle35_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==5){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("textAlign") + .id("fontAttributeAndStyle35_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<3){ + this.textAlign = this.textAligns[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==3){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle35_3") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle36.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle36.ets new file mode 100644 index 00000000..93fff666 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle36.ets @@ -0,0 +1,85 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle36 { + @State text:ResourceStr = "" + @State letterSpacing:number | string | Resource = 0 + @State fontSize:Length = 18 + @State style:TextContentStyle = TextContentStyle.DEFAULT + private clickNum1:number = 0 + private clickNum2:number = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + private fontSizes:Array = [ + 0, + 10, + 20, + 30 + ] + + + build() { + Column() { + TextArea({ placeholder: 'please input', text:this.text }) + .fontSize(this.fontSize) + .letterSpacing(this.letterSpacing) + .width(240) + .height(60) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle36_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==5){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("fontSize") + .id("fontAttributeAndStyle36_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<4){ + this.fontSize = this.fontSizes[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==4){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + Button("input") + .id("fontAttributeAndStyle36_3") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle37.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle37.ets new file mode 100644 index 00000000..b89b9b75 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle37.ets @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle37 { + @State text:ResourceStr = "" + @State letterSpacing:number | string | Resource = 0 + @State style:TextContentStyle = TextContentStyle.DEFAULT + private clickNum2:number = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + + build() { + Column() { + TextArea({ placeholder: 'please input', text:this.text }) + .letterSpacing(this.letterSpacing) + .width(240) + .height(60) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle37_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==5){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle37_2") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle38.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle38.ets new file mode 100644 index 00000000..b33d19ae --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle38.ets @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle38 { + @State letterSpacing:number | string | Resource = 0 + @State text:ResourceStr = "" + @State maxLength:number = 20 + @State showCounter:boolean = false + private clickNum1:number = 0 + private clickNum2:number = 0 + private clickNum3:number = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + private maxLengths:Array = [ + 20, + 50 + ] + private showCounters:Array = [ + true, + false + ] + + build() { + Column() { + TextArea({ placeholder: 'please input',text:this.text }) + .width(240) + .height(60) + .maxLength(this.maxLength) + .showCounter(this.showCounter) + .margin({top:50}) + + Button("maxLength") + .id("fontAttributeAndStyle38_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<2){ + this.maxLength = this.maxLengths[this.clickNum1] + this.clickNum1++ + } + if(this.clickNum1==2){ + this.clickNum1=0 + } + }) + .margin({top:50}) + + Button("showCounter") + .id("fontAttributeAndStyle38_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<2){ + this.showCounter = this.showCounters[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==2){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle38_3") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum3<5){ + this.letterSpacing = this.letterSpacings[this.clickNum3] + this.clickNum3++ + if(this.clickNum3==5){ + this.clickNum3=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle38_4") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle39.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle39.ets new file mode 100644 index 00000000..891a13b4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle39.ets @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle39 { + @State letterSpacing:number | string | Resource = 0 + @State text:ResourceStr = "" + private clickNum:number = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + + build() { + Column() { + TextArea({ placeholder: 'please input',text:this.text }) + .width(240) + .height(60) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle39_1") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙" + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle39_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum<5){ + this.letterSpacing = this.letterSpacings[this.clickNum] + this.clickNum++ + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle40.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle40.ets new file mode 100644 index 00000000..4e3e1cf5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle40.ets @@ -0,0 +1,85 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle40 { + @State lineHeight:number | string | Resource = 24 + @State text:ResourceStr = "" + @State fontSize:Length = 18 + private clickNum1:number = 0 + private clickNum2:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + private fontSizes:Array = [ + 0, + 10, + 20, + 30 + ] + + build() { + Column() { + TextArea({ placeholder: 'please input',text:this.text }) + .width(240) + .height(60) + .fontSize(this.fontSize) + .lineHeight(this.lineHeight) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle40_1") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle40_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<6){ + this.lineHeight = this.lineHeights[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==6){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("fontSize") + .id("fontAttributeAndStyle40_3") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<4){ + this.fontSize = this.fontSizes[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==4){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file -- Gitee From c9dc5258a804de716676bc6d14b8dea306eabb6d Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 16:37:26 +0800 Subject: [PATCH 14/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../fontAttributeAndStyle41.ets | 55 ++++++++++ .../fontAttributeAndStyle42.ets | 93 ++++++++++++++++ .../fontAttributeAndStyle43.ets | 87 +++++++++++++++ .../fontAttributeAndStyle44.ets | 85 +++++++++++++++ .../fontAttributeAndStyle45.ets | 55 ++++++++++ .../fontAttributeAndStyle46.ets | 93 ++++++++++++++++ .../fontAttributeAndStyle47.ets | 74 +++++++++++++ .../fontAttributeAndStyle48.ets | 46 ++++++++ .../fontAttributeAndStyle49.ets | 69 ++++++++++++ .../fontAttributeAndStyle50.ets | 98 +++++++++++++++++ .../fontAttributeAndStyle51.ets | 100 +++++++++++++++++ .../fontAttributeAndStyle52.ets | 60 +++++++++++ .../fontAttributeAndStyle53.ets | 93 ++++++++++++++++ .../fontAttributeAndStyle54.ets | 93 ++++++++++++++++ .../fontAttributeAndStyle55.ets | 72 +++++++++++++ .../fontAttributeAndStyle56.ets | 72 +++++++++++++ .../fontAttributeAndStyle57.ets | 94 ++++++++++++++++ .../fontAttributeAndStyle58.ets | 59 ++++++++++ .../fontAttributeAndStyle59.ets | 101 ++++++++++++++++++ .../fontAttributeAndStyle60.ets | 94 ++++++++++++++++ 20 files changed, 1593 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle41.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle42.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle43.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle44.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle45.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle46.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle47.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle48.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle49.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle50.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle51.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle52.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle53.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle54.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle55.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle56.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle57.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle58.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle59.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle60.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle41.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle41.ets new file mode 100644 index 00000000..1e2ad00c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle41.ets @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle42 { + @State lineHeight:number | string | Resource = 24 + private clickNum:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + + build() { + Column() { + TextArea({ placeholder: 'please input' }) + .fontSize(24) + .lineHeight(this.lineHeight) + .width(240) + .height(60) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle41") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum<6){ + this.lineHeight = this.lineHeights[this.clickNum] + this.clickNum++ + if(this.clickNum==6){ + this.clickNum=0 + } + } + }) + .margin({top:50}) + + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle42.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle42.ets new file mode 100644 index 00000000..6129306d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle42.ets @@ -0,0 +1,93 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle42 { + @State lineHeight:number | string | Resource = 24 + @State textInput:ResourceStr = "开源鸿蒙" + @State text:ResourceStr = "开源鸿蒙" + private clickNum1:number = 0 + private clickNum2:number = 0 + private text_all:Array = [ + "总有一条蜿蜒在童话镇里七彩的河", + "%¥……@!*()&", + " " + ] + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + + build() { + Column() { + TextArea({ placeholder: 'please input',text:this.text }) + .fontSize(24) + .lineHeight(this.lineHeight) + .width(240) + .height(60) + .margin({top:50}) + + Button("Input") + .id("fontAttributeAndStyle42_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<3){ + this.textInput = this.text_all[this.clickNum1] + this.text = this.textInput + this.clickNum1++ + if(this.clickNum1==3){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle42") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<6){ + this.lineHeight = this.lineHeights[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==6){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("clear text") + .id("fontAttributeAndStyle42_03") + .fontSize(18) + .onClick(()=>{ + this.text = "" + }) + .margin({top:50}) + + Button("Input after clear") + .id("fontAttributeAndStyle42_04") + .fontSize(18) + .onClick(()=>{ + this.text = this.textInput + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle43.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle43.ets new file mode 100644 index 00000000..0132ff2e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle43.ets @@ -0,0 +1,87 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle43 { + @State type:TextAreaType = TextAreaType.NORMAL + @State text:ResourceStr = "" + @State lineHeight:number | string | Resource = 24 + @State textInput:ResourceStr = "开源鸿蒙" + private clickNum1:number = 0 + private clickNum2:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + private types:Array = [ + TextAreaType.NORMAL, + TextAreaType.EMAIL, + TextAreaType.NUMBER, + TextAreaType.PHONE_NUMBER, + ] + + build() { + Column() { + TextArea({ placeholder: 'please input', text:this.text }) + .fontSize(24) + .lineHeight(this.lineHeight) + .type(this.type) + .width(240) + .height(60) + .margin({top:50}) + + Button("type") + .id("fontAttributeAndStyle43_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<4){ + this.type = this.types[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==4){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle43_2") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle43_3") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<6){ + this.lineHeight = this.lineHeights[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==6){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle44.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle44.ets new file mode 100644 index 00000000..d4b533cf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle44.ets @@ -0,0 +1,85 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle44 { + @State style:TextContentStyle = TextContentStyle.DEFAULT + @State text:ResourceStr = "" + @State lineHeight:number | string | Resource = 24 + @State textInput:ResourceStr = "开源鸿蒙" + private clickNum1:number = 0 + private clickNum2:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + private styles:Array = [ + TextContentStyle.DEFAULT, + TextContentStyle.INLINE + ] + + build() { + Column() { + TextArea({ placeholder: 'please input', text:this.text }) + .fontSize(24) + .lineHeight(this.lineHeight) + .style(this.style) + .width(240) + .height(60) + .margin({top:50}) + + Button("style") + .id("fontAttributeAndStyle44_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<2){ + this.style = this.styles[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==2){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle44_2") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle44_3") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<6){ + this.lineHeight = this.lineHeights[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==6){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle45.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle45.ets new file mode 100644 index 00000000..32582504 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle45.ets @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle45 { + @State text:ResourceStr = "开源鸿蒙" + @State lineHeight:number | string | Resource = 24 + private clickNum1:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + + build() { + Column() { + TextArea({ placeholder: 'please input', text:this.text }) + .fontSize(24) + .width(240) + .height(60) + .lineHeight(this.lineHeight) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle45_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<6){ + this.lineHeight = this.lineHeights[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==6){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle46.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle46.ets new file mode 100644 index 00000000..76c2d127 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle46.ets @@ -0,0 +1,93 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle46 { + @State text:ResourceStr = "开源鸿蒙" + @State style:TextContentStyle = TextContentStyle.DEFAULT + @State lineHeight:number | string | Resource = 24 + @State decoration:TextDecorationOptions = {type: TextDecorationType.None} + private clickNum1:number = 0 + private clickNum2:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + private styles:Array = [ + TextContentStyle.DEFAULT, + TextContentStyle.INLINE + ] + + build() { + Column() { + TextArea({ placeholder: 'please input', text:this.text }) + .fontSize(24) + .width(240) + .height(60) + .lineHeight(this.lineHeight) + .decoration(this.decoration) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle46_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<6){ + this.lineHeight = this.lineHeights[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==6){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("decoration") + .id("fontAttributeAndStyle46_2") + .fontSize(18) + .onClick(()=>{ + this.decoration = {type: TextDecorationType.Underline} + }) + .margin({top:50}) + + Button("style") + .id("fontAttributeAndStyle46_3") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<2){ + this.style = this.styles[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==2){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle46_4") + .fontSize(18) + .onClick(()=>{ + this.text = "开源鸿蒙开源鸿蒙开源鸿蒙" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle47.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle47.ets new file mode 100644 index 00000000..d1eb8981 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle47.ets @@ -0,0 +1,74 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle47 { + @State changeValue: string = '' + @State decoration: TextDecorationOptions = {type: TextDecorationType.None, color: Color.Black} + private clickNum1:number = 0 + private decorations:Array = [ + {type: TextDecorationType.Underline}, + {type: TextDecorationType.LineThrough}, + {type: TextDecorationType.Overline}, + {type: TextDecorationType.None}, + {type: TextDecorationType.Underline, color: Color.Pink}, + {type: TextDecorationType.Underline, color: "0x008000"}, + {type: TextDecorationType.Underline, color: "rgb(255, 0, 0)"}, + {type: TextDecorationType.Underline, color: "#0000ff"}, + {type: TextDecorationType.Underline, color: $r('app.color.yellow')}, + ] + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .width('80%') + .height(40) + .decoration(this.decoration) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle47_1") + .fontSize(18) + .onClick(()=>{ + this.changeValue = "开源鸿蒙" + }) + .margin({top:50}) + + Button("decoration") + .id("fontAttributeAndStyle47_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<9){ + this.decoration = this.decorations[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==9){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle48.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle48.ets new file mode 100644 index 00000000..c677d043 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle48.ets @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle48 { + @State changeValue: string = '' + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .width('80%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle48") + .fontSize(18) + .onClick(()=>{ + this.changeValue = "开源鸿蒙" + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle49.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle49.ets new file mode 100644 index 00000000..a3fc9388 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle49.ets @@ -0,0 +1,69 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle49 { + @State changeValue: string = '' + @State decoration: TextDecorationOptions = {type: TextDecorationType.None} + private clickNum1:number = 0 + private decorations:Array = [ + {type: TextDecorationType.Underline}, + {type: TextDecorationType.LineThrough}, + {type: TextDecorationType.Overline}, + {type: TextDecorationType.None}, + ] + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .width('80%') + .height(40) + .decoration(this.decoration) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle49_1") + .fontSize(18) + .onClick(()=>{ + this.changeValue = "开源鸿蒙" + }) + .margin({top:50}) + + Button("decoration.type") + .id("fontAttributeAndStyle49_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<4){ + this.decoration = this.decorations[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==4){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle50.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle50.ets new file mode 100644 index 00000000..3e1ea8b9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle50.ets @@ -0,0 +1,98 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle50 { + @State changeValue: string = '' + @State decoration: TextDecorationOptions = {type: TextDecorationType.None} + private clickNum1:number = 0 + private clickNum2:number = 0 + @State letterSpacing:number | string | Resource = 0 + private decorations:Array = [ + {type: TextDecorationType.Underline}, + {type: TextDecorationType.LineThrough}, + {type: TextDecorationType.Overline}, + {type: TextDecorationType.None}, + {type: TextDecorationType.Underline, color: Color.Pink}, + {type: TextDecorationType.Underline, color: "0x008000"}, + {type: TextDecorationType.Underline, color: "rgb(255, 0, 0)"}, + {type: TextDecorationType.Underline, color: "#0000ff"}, + {type: TextDecorationType.Underline, color: $r('app.color.yellow')}, + ] + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .width('80%') + .height(40) + .decoration(this.decoration) + .letterSpacing(this.letterSpacing) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle50_1") + .fontSize(18) + .onClick(()=>{ + this.changeValue = "开源鸿蒙" + }) + .margin({top:50}) + + Button("decoration.type") + .id("fontAttributeAndStyle50_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<9){ + this.decoration = this.decorations[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==9){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle50_3") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum1==5){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle51.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle51.ets new file mode 100644 index 00000000..06e08b2d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle51.ets @@ -0,0 +1,100 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle51 { + @State changeValue: string = '' + @State textInput:string = "开源鸿蒙" + private clickNum1:number = 0 + private clickNum2:number = 0 + @State letterSpacing:number | string | Resource = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + private text_all:Array = [ + "总有一条蜿蜒在童话镇里七彩的河", + "%¥……@!*()&", + " " + ] + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .width('80%') + .height(40) + .letterSpacing(this.letterSpacing) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle51_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<3){ + this.textInput = this.text_all[this.clickNum1] + this.changeValue = this.textInput + this.clickNum1++ + if(this.clickNum1==3){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle51_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==5){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("clear text") + .id("fontAttributeAndStyle51_03") + .fontSize(18) + .onClick(()=>{ + this.changeValue = "" + }) + .margin({top:50}) + + Button("Input after clear") + .id("fontAttributeAndStyle51_04") + .fontSize(18) + .onClick(()=>{ + this.changeValue = this.textInput + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle52.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle52.ets new file mode 100644 index 00000000..45519bcf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle52.ets @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle52 { + private clickNum2:number = 0 + @State letterSpacing:number | string | Resource = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .width('80%') + .height(40) + .letterSpacing(this.letterSpacing) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + .onChange((value: string) => { + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle52") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==5){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle53.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle53.ets new file mode 100644 index 00000000..f8a26366 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle53.ets @@ -0,0 +1,93 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle53 { + private clickNum1:number = 0 + private clickNum2:number = 0 + @State changeValue: string = '' + @State type:SearchType = SearchType.NORMAL + @State letterSpacing:number | string | Resource = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + private types:Array = [ + SearchType.NORMAL, + SearchType.EMAIL, + SearchType.NUMBER, + SearchType.PHONE_NUMBER, + ] + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .type(this.type) + .width('80%') + .height(40) + .letterSpacing(this.letterSpacing) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin({top:50}) + + Button("type") + .id("fontAttributeAndStyle53_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<4){ + this.type = this.types[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==4){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle53_2") + .fontSize(18) + .onClick(()=>{ + this.changeValue = "开源鸿蒙" + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle53_3") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==5){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle54.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle54.ets new file mode 100644 index 00000000..c0f7a698 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle54.ets @@ -0,0 +1,93 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle54 { + private clickNum1:number = 0 + private clickNum2:number = 0 + @State textAlign:TextAlign = TextAlign.Start + @State changeValue: string = '' + @State type:SearchType = SearchType.NORMAL + @State letterSpacing:number | string | Resource = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + private textAligns:Array = [ + TextAlign.Start, + TextAlign.Center, + TextAlign.End + ] + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .width('80%') + .height(40) + .textAlign(this.textAlign) + .letterSpacing(this.letterSpacing) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle54_1") + .fontSize(18) + .onClick(()=>{ + this.changeValue = "开源鸿蒙" + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle54_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum1==5){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("textAlign") + .id("fontAttributeAndStyle54_3") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<3){ + this.textAlign = this.textAligns[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==3){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle55.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle55.ets new file mode 100644 index 00000000..dfabbe34 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle55.ets @@ -0,0 +1,72 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle55 { + private clickNum1:number = 0 + private clickNum2:number = 0 + @State changeValue: string = '' + @State type:SearchType = SearchType.NORMAL + @State letterSpacing:number | string | Resource = 0 + private letterSpacings:Array = [ + -2, + 0, + 3, + "5px", + "10%" + ] + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .width('80%') + .height(40) + .letterSpacing(this.letterSpacing) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle55_1") + .fontSize(18) + .onClick(()=>{ + this.changeValue = "开源鸿蒙" + }) + .margin({top:50}) + + Button("letterSpacing") + .id("fontAttributeAndStyle55_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<5){ + this.letterSpacing = this.letterSpacings[this.clickNum2] + this.clickNum2++ + if(this.clickNum1==5){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle56.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle56.ets new file mode 100644 index 00000000..7d2cf512 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle56.ets @@ -0,0 +1,72 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle56 { + private clickNum1:number = 0 + @State lineHeight:number | string | Resource = 24 + @State changeValue: string = '' + @State type:SearchType = SearchType.NORMAL + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .width('80%') + .height(40) + .lineHeight(this.lineHeight) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle56_1") + .fontSize(18) + .onClick(()=>{ + this.changeValue = "开源鸿蒙" + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle56_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<6){ + this.lineHeight = this.lineHeights[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==6){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle57.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle57.ets new file mode 100644 index 00000000..ba296b6e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle57.ets @@ -0,0 +1,94 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle57 { + @State lineHeight:number | string | Resource = 24 + @State changeValue: string = '' + @State type:SearchType = SearchType.NORMAL + @State fontSize:Length = 18 + private clickNum1:number = 0 + private clickNum2:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + private fontSizes:Array = [ + 0, + 10, + 20, + 30 + ] + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .width('80%') + .height(40) + .lineHeight(this.lineHeight) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: this.fontSize, weight: 400 }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle57_1") + .fontSize(18) + .onClick(()=>{ + this.changeValue = "开源鸿蒙" + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle57_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<6){ + this.lineHeight = this.lineHeights[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==6){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("fontSize") + .id("fontAttributeAndStyle57_3") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<4){ + this.fontSize = this.fontSizes[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==4){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle58.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle58.ets new file mode 100644 index 00000000..dc53429a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle58.ets @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle58 { + @State lineHeight:number | string | Resource = 24 + private clickNum1:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .width('80%') + .height(40) + .lineHeight(this.lineHeight) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 18, weight: 400 }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle58") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<6){ + this.lineHeight = this.lineHeights[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==6){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle59.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle59.ets new file mode 100644 index 00000000..9ff9ea49 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle59.ets @@ -0,0 +1,101 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle59 { + @State lineHeight:number | string | Resource = 24 + @State changeValue: string = '' + @State textInput:string = "开源鸿蒙" + private clickNum1:number = 0 + private clickNum2:number = 0 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + private text_all:Array = [ + "总有一条蜿蜒在童话镇里七彩的河", + "%¥……@!*()&", + " " + ] + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .width('80%') + .height(40) + .lineHeight(this.lineHeight) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin({top:50}) + + Button("Input") + .id("fontAttributeAndStyle59_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<3){ + this.textInput = this.text_all[this.clickNum1] + this.changeValue = this.textInput + this.clickNum1++ + if(this.clickNum1==3){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle59_02") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<6){ + this.lineHeight = this.lineHeights[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==6){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("clear text") + .id("fontAttributeAndStyle59_03") + .fontSize(18) + .onClick(()=>{ + this.changeValue = "" + }) + .margin({top:50}) + + Button("Input after clear") + .id("fontAttributeAndStyle59_04") + .fontSize(18) + .onClick(()=>{ + this.changeValue = this.textInput + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle60.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle60.ets new file mode 100644 index 00000000..95e8cb44 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle60.ets @@ -0,0 +1,94 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle60 { + private clickNum1:number = 0 + private clickNum2:number = 0 + @State changeValue: string = '' + @State type:SearchType = SearchType.NORMAL + @State lineHeight:number | string | Resource = 24 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + private types:Array = [ + SearchType.NORMAL, + SearchType.EMAIL, + SearchType.NUMBER, + SearchType.PHONE_NUMBER, + ] + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .type(this.type) + .lineHeight(this.lineHeight) + .width('80%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin({top:50}) + + Button("type") + .id("fontAttributeAndStyle60_1") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<4){ + this.type = this.types[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==4){ + this.clickNum1=0 + } + } + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle60_2") + .fontSize(18) + .onClick(()=>{ + this.changeValue = "开源鸿蒙" + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle60_03") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<6){ + this.lineHeight = this.lineHeights[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==6){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file -- Gitee From 88b6698f3ba0e9bcb9f9106b85da47d0589e85f8 Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 16:37:57 +0800 Subject: [PATCH 15/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../fontAttributeAndStyle61.ets | 71 ++++++++++++++ .../fontAttributeAndStyle62.ets | 81 ++++++++++++++++ .../fontAttributeAndStyle63.ets | 36 +++++++ .../fontAttributeAndStyle64.ets | 36 +++++++ .../fontAttributeAndStyle65.ets | 58 +++++++++++ .../fontAttributeAndStyle66.ets | 79 +++++++++++++++ .../fontAttributeAndStyle67.ets | 93 ++++++++++++++++++ .../fontAttributeAndStyle68.ets | 67 +++++++++++++ .../fontAttributeAndStyle69.ets | 53 ++++++++++ .../fontAttributeAndStyle70.ets | 82 ++++++++++++++++ .../fontAttributeAndStyle71.ets | 52 ++++++++++ .../fontAttributeAndStyle72.ets | 82 ++++++++++++++++ .../fontAttributeAndStyle73.ets | 97 +++++++++++++++++++ .../fontAttributeAndStyle74.ets | 69 +++++++++++++ .../fontAttributeAndStyle75.ets | 72 ++++++++++++++ .../fontAttributeAndStyle76.ets | 72 ++++++++++++++ .../fontAttributeAndStyle77.ets | 71 ++++++++++++++ .../fontAttributeAndStyle78.ets | 58 +++++++++++ .../fontAttributeAndStyle79.ets | 71 ++++++++++++++ .../fontAttributeAndStyle80.ets | 74 ++++++++++++++ 20 files changed, 1374 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle61.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle62.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle63.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle64.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle65.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle66.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle67.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle68.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle69.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle70.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle71.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle72.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle73.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle74.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle75.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle76.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle77.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle78.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle79.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle80.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle61.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle61.ets new file mode 100644 index 00000000..9363a7f0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle61.ets @@ -0,0 +1,71 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle61 { + private clickNum2:number = 0 + @State changeValue: string = '' + @State lineHeight:number | string | Resource = 24 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .lineHeight(this.lineHeight) + .width('80%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle61_1") + .fontSize(18) + .onClick(()=>{ + this.changeValue = "开源鸿蒙" + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle61_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<6){ + this.lineHeight = this.lineHeights[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==6){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle62.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle62.ets new file mode 100644 index 00000000..3c602b05 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle62.ets @@ -0,0 +1,81 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle62 { + private clickNum2:number = 0 + @State changeValue: string = '' + @State decoration:TextDecorationOptions = {type:TextDecorationType.None} + @State lineHeight:number | string | Resource = 24 + private lineHeights:Array = [ + -5, + 0, + 10, + 20, + "30%", + "40vp" + ] + controller: SearchController = new SearchController() + + build() { + Column() { + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller }) + .searchButton('SEARCH') + .lineHeight(this.lineHeight) + .decoration(this.decoration) + .width('80%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin({top:50}) + + Button("input") + .id("fontAttributeAndStyle62_1") + .fontSize(18) + .onClick(()=>{ + this.changeValue = "开源鸿蒙" + }) + .margin({top:50}) + + Button("lineHeight") + .id("fontAttributeAndStyle62_2") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum2<6){ + this.lineHeight = this.lineHeights[this.clickNum2] + this.clickNum2++ + if(this.clickNum2==6){ + this.clickNum2=0 + } + } + }) + .margin({top:50}) + + Button("decoration") + .id("fontAttributeAndStyle62_3") + .fontSize(18) + .onClick(()=>{ + this.decoration = {type:TextDecorationType.Underline} + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle63.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle63.ets new file mode 100644 index 00000000..c46f1fd1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle63.ets @@ -0,0 +1,36 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle63 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30 + } + }) + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle64.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle64.ets new file mode 100644 index 00000000..c1b70fe2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle64.ets @@ -0,0 +1,36 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle64 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addSymbolSpan($r("app.media.img2"), + { + style: + { + fontSize: 30 + } + }) + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle65.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle65.ets new file mode 100644 index 00000000..aabba0a8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle65.ets @@ -0,0 +1,58 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle65 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("012345", + { + style: + { + fontColor: Color.Orange, + fontSize: 30 + } + }) + this.controller.addImageSpan($r("app.media.icon"), + { + imageStyle: + { + size: ["57px", "57px"] + } + }) + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle65_01") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30 + } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle66.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle66.ets new file mode 100644 index 00000000..2914fbd7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle66.ets @@ -0,0 +1,79 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle66 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123", + { + style: + { + fontColor: Color.Orange, + fontSize: 20 + } + }) + }) + + Button("addSymbolSpan_01") + .id("fontAttributeAndStyle66_01") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30 + } + }) + }) + .margin({top:50}) + + Button("addSymbolSpan_02") + .id("fontAttributeAndStyle66_02") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: -30 + } + }) + }) + .margin({top:50}) + + Button("addSymbolSpan_03") + .id("fontAttributeAndStyle66_03") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 0 + } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle67.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle67.ets new file mode 100644 index 00000000..a62d7c4d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle67.ets @@ -0,0 +1,93 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle67 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123", + { + style: + { + fontColor: Color.Orange, + fontSize: 20 + } + }) + }) + + Button("addSymbolSpan_01") + .id("fontAttributeAndStyle67_01") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: '10' + } + }) + }) + .margin({top:50}) + + Button("addSymbolSpan_02") + .id("fontAttributeAndStyle67_02") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: '-10' + } + }) + }) + .margin({top:50}) + + Button("addSymbolSpan_03") + .id("fontAttributeAndStyle67_03") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: '10abc' + } + }) + }) + .margin({top:50}) + + Button("addSymbolSpan_04") + .id("fontAttributeAndStyle67_04") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: '50%' + } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle68.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle68.ets new file mode 100644 index 00000000..e53b32a5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle68.ets @@ -0,0 +1,67 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle68 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123", + { + style: + { + fontColor: Color.Orange, + fontSize: 20 + } + }) + }) + + Button("addSymbolSpan_01") + .id("fontAttributeAndStyle68_01") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30, + fontColor: [Color.Red,Color.Black] + } + }) + }) + .margin({top:50}) + + Button("addSymbolSpan_02") + .id("fontAttributeAndStyle68_02") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30, + fontColor: [Color.Red,Color.Black,Color.Pink] + } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle69.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle69.ets new file mode 100644 index 00000000..3a1c6416 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle69.ets @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle69 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123", + { + style: + { + fontColor: Color.Orange, + fontSize: 20 + } + }) + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle69_01") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30, + fontColor: ["0xff0000"] + } + }) + }) + .margin({top:50}) + + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle70.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle70.ets new file mode 100644 index 00000000..5b4cf270 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle70.ets @@ -0,0 +1,82 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle70 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123", + { + style: + { + fontColor: Color.Orange, + fontSize: 20 + } + }) + }) + + Button("addSymbolSpan_1") + .id("fontAttributeAndStyle70_01") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30, + fontColor: ["#008800"] + } + }) + }) + .margin({top:50}) + + Button("addSymbolSpan_2") + .id("fontAttributeAndStyle70_02") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30, + fontColor: ["rgba(0,255,0,1)"] + } + }) + }) + .margin({top:50}) + + Button("addSymbolSpan_3") + .id("fontAttributeAndStyle70_03") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30, + fontColor: ["rgb(0,0,255)"] + } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle71.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle71.ets new file mode 100644 index 00000000..17e836d5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle71.ets @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle71 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123", + { + style: + { + fontColor: Color.Orange, + fontSize: 20 + } + }) + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle71_01") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30, + fontColor: [$r("app.color.colorRed")] + } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle72.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle72.ets new file mode 100644 index 00000000..6af085fb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle72.ets @@ -0,0 +1,82 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle72 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123", + { + style: + { + fontColor: Color.Orange, + fontSize: 20 + } + }) + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle72_01") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30, + fontWeight:150 + } + }) + }) + .margin({top:50}) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle72_02") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30, + fontWeight:200 + } + }) + }) + .margin({top:50}) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle72_03") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30, + fontWeight:250 + } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle73.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle73.ets new file mode 100644 index 00000000..b6ef21e2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle73.ets @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle73 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123", + { + style: + { + fontColor: Color.Orange, + fontSize: 20 + } + }) + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle73_01") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30, + fontWeight:'600' + } + }) + }) + .margin({top:50}) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle73_02") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30, + fontWeight:'-100' + } + }) + }) + .margin({top:50}) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle73_03") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30, + fontWeight:'400abc' + } + }) + }) + .margin({top:50}) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle73_04") + .fontSize(18) + .onClick(()=>{ + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30, + fontWeight:'500%' + } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle74.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle74.ets new file mode 100644 index 00000000..51af2fc7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle74.ets @@ -0,0 +1,69 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle74 { + @State symbolFontWeight:FontWeight = FontWeight.Normal + private clickNum1:number = 0 + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + private fontWeights1:Array = [ + FontWeight.Lighter, + FontWeight.Regular, + FontWeight.Medium, + FontWeight.Bold, + FontWeight.Bolder, + ] + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123", + { + style: + { + fontColor: Color.Orange, + fontSize: 20 + } + }) + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle74_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<5){ + this.symbolFontWeight = this.fontWeights1[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==5){ + this.clickNum1=0 + } + } + this.controller.addSymbolSpan($r("sys.symbol.ohos_trash_circle"), + { + style: + { + fontSize: 30, + fontWeight:this.symbolFontWeight + } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle75.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle75.ets new file mode 100644 index 00000000..c3af6384 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle75.ets @@ -0,0 +1,72 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle75 { + @State symbolFontWeight:FontWeight = FontWeight.Normal + @State start: number = -1 + @State end: number = -1 + @State textSize:Length = 10 + private clickNum1:number = 0 + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + private textSizes:Array = [ + -20, + 0, + 20, + 40 + ] + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123456", + { + style: + { + fontColor: Color.Orange, + fontSize: 10 + } + }) + }) + .onSelect((value: RichEditorSelection) => { + this.start = value.selection[0]; + this.end = value.selection[1]; + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle75_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<4){ + this.textSize = this.textSizes[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==4){ + this.clickNum1=0 + } + this.controller.updateSpanStyle({ + start: this.start, + end: this.end, + textStyle: { fontSize: this.textSize } + }) + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle76.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle76.ets new file mode 100644 index 00000000..ffc07d96 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle76.ets @@ -0,0 +1,72 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle76 { + @State symbolFontWeight:FontWeight = FontWeight.Normal + @State start: number = -1 + @State end: number = -1 + @State textSize:Length = 20 + private clickNum1:number = 0 + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + private textSizes:Array = [ + 10, + -10, + '10abc', + '50%' + ] + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123456", + { + style: + { + fontColor: Color.Orange, + fontSize: 20 + } + }) + }) + .onSelect((value: RichEditorSelection) => { + this.start = value.selection[0]; + this.end = value.selection[1]; + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle76_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<4){ + this.textSize = this.textSizes[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==4){ + this.clickNum1=0 + } + this.controller.updateSpanStyle({ + start: this.start, + end: this.end, + textStyle: { fontSize: this.textSize } + }) + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle77.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle77.ets new file mode 100644 index 00000000..163e735b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle77.ets @@ -0,0 +1,71 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle77 { + @State symbolFontWeight:FontWeight = FontWeight.Normal + @State start: number = -1 + @State end: number = -1 + @State textColor:Color = Color.Red + private clickNum1:number = 0 + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + private textColors:Array= [ + Color.Red, + Color.Black, + Color.Pink + ] + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123456", + { + style: + { + fontColor: Color.Orange, + fontSize: 20 + } + }) + }) + .onSelect((value: RichEditorSelection) => { + this.start = value.selection[0]; + this.end = value.selection[1]; + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle77_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<3){ + this.textColor = this.textColors[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==3){ + this.clickNum1=0 + } + this.controller.updateSpanStyle({ + start: this.start, + end: this.end, + textStyle: { fontColor: this.textColor } + }) + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle78.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle78.ets new file mode 100644 index 00000000..8ad4e9f2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle78.ets @@ -0,0 +1,58 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle78 { + @State symbolFontWeight:FontWeight = FontWeight.Normal + @State start: number = -1 + @State end: number = -1 + @State textColor:Color |string = Color.Blue + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123456", + { + style: + { + fontColor: this.textColor, + fontSize: 20 + } + }) + }) + .onSelect((value: RichEditorSelection) => { + this.start = value.selection[0]; + this.end = value.selection[1]; + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle78_01") + .fontSize(18) + .onClick(()=>{ + this.textColor = '#FF0000' + this.controller.updateSpanStyle({ + start: this.start, + end: this.end, + textStyle: { fontColor: this.textColor } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle79.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle79.ets new file mode 100644 index 00000000..a63ff3fb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle79.ets @@ -0,0 +1,71 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle79 { + @State symbolFontWeight:FontWeight = FontWeight.Normal + @State start: number = -1 + @State end: number = -1 + @State textColor:string = "#FF0000" + private clickNum1:number = 0 + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + private textColors:Array= [ + '#008800', + 'rgba(0,255,0,1)', + 'rgb(0,0,255)' + ] + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123456", + { + style: + { + fontColor: this.textColor, + fontSize: 20 + } + }) + }) + .onSelect((value: RichEditorSelection) => { + this.start = value.selection[0]; + this.end = value.selection[1]; + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle79_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<3){ + this.textColor = this.textColors[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==3){ + this.clickNum1=0 + } + this.controller.updateSpanStyle({ + start: this.start, + end: this.end, + textStyle: { fontColor: this.textColor } + }) + } + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle80.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle80.ets new file mode 100644 index 00000000..423cf102 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle80.ets @@ -0,0 +1,74 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle80 { + @State symbolFontWeight:string | number = 100 + @State start: number = -1 + @State end: number = -1 + private clickNum1:number = 0 + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + private fontWeights1:Array = [ + 150, + 200, + 250, + 300, + 400, + 900 + ] + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123456", + { + style: + { + fontColor: Color.Orange, + fontSize: 30, + fontWeight:100 + } + }) + }) + .onSelect((value: RichEditorSelection) => { + this.start = value.selection[0]; + this.end = value.selection[1]; + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle80_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<6){ + this.symbolFontWeight = this.fontWeights1[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==6){ + this.clickNum1=0 + } + } + this.controller.updateSpanStyle({ + start: this.start, + end: this.end, + textStyle: { fontWeight: this.symbolFontWeight } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file -- Gitee From b1b2cc3136ddbf5bdd2849895bb83889d60a8df7 Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 16:38:16 +0800 Subject: [PATCH 16/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../fontAttributeAndStyle81.ets | 72 ++++++++++++++++ .../fontAttributeAndStyle82.ets | 73 +++++++++++++++++ .../fontAttributeAndStyle83.ets | 82 +++++++++++++++++++ .../fontAttributeAndStyle84.ets | 75 +++++++++++++++++ .../fontAttributeAndStyle85.ets | 75 +++++++++++++++++ .../fontAttributeAndStyle86.ets | 60 ++++++++++++++ 6 files changed, 437 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle81.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle82.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle83.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle84.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle85.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle86.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle81.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle81.ets new file mode 100644 index 00000000..44f6949b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle81.ets @@ -0,0 +1,72 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle81 { + @State symbolFontWeight:string | number = 100 + @State start: number = -1 + @State end: number = -1 + private clickNum1:number = 0 + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + private fontWeights1:Array = [ + '600', + '-100', + '400abc', + '500%' + ] + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123456", + { + style: + { + fontColor: Color.Orange, + fontSize: 30, + fontWeight:100 + } + }) + }) + .onSelect((value: RichEditorSelection) => { + this.start = value.selection[0]; + this.end = value.selection[1]; + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle81_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<4){ + this.symbolFontWeight = this.fontWeights1[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==4){ + this.clickNum1=0 + } + } + this.controller.updateSpanStyle({ + start: this.start, + end: this.end, + textStyle: { fontWeight: this.symbolFontWeight } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle82.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle82.ets new file mode 100644 index 00000000..6e9580a8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle82.ets @@ -0,0 +1,73 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle82 { + @State symbolFontWeight:FontWeight = FontWeight.Normal + @State start: number = -1 + @State end: number = -1 + private clickNum1:number = 0 + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + private fontWeights1:Array = [ + FontWeight.Normal, + FontWeight.Lighter, + FontWeight.Regular, + FontWeight.Medium, + FontWeight.Bold, + FontWeight.Bolder, + ] + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123", + { + style: + { + fontColor: Color.Orange, + fontSize: 20 + } + }) + }) + .onSelect((value: RichEditorSelection) => { + this.start = value.selection[0]; + this.end = value.selection[1]; + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle82_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<6){ + this.symbolFontWeight = this.fontWeights1[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==6){ + this.clickNum1=0 + } + } + this.controller.updateSpanStyle({ + start: this.start, + end: this.end, + textStyle: { fontWeight: this.symbolFontWeight } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle83.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle83.ets new file mode 100644 index 00000000..1e20f802 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle83.ets @@ -0,0 +1,82 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle83 { + @State symbolFontWeight:FontWeight = FontWeight.Normal + @State symbolRenderingStrategy:SymbolRenderingStrategy = SymbolRenderingStrategy.SINGLE + @State textColor:ResourceColor[] = [Color.Red] + @State start: number = -1 + @State end: number = -1 + private clickNum1:number = 0 + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + private renderingStrategies:Array = [ + SymbolRenderingStrategy.SINGLE, + SymbolRenderingStrategy.MULTIPLE_COLOR, + SymbolRenderingStrategy.MULTIPLE_OPACITY + ] + + private textColors:Array= [ + [Color.Red], + [Color.Red,Color.Yellow], + [Color.Red,Color.Red], + [Color.Red,Color.Red], + ] + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123", + { + style: + { + fontSize: 30 + } + }) + }) + .onSelect((value: RichEditorSelection) => { + this.start = value.selection[0]; + this.end = value.selection[1]; + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle83_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<6){ + this.textColor = this.textColors[this.clickNum1] + // this.symbolRenderingStrategy = this.renderingStrategies[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==6){ + this.clickNum1=0 + } + } + this.controller.updateParagraphStyle({ + start: this.start, + end: this.end, + symbolStyle: { + fontColor: this.textColor, + renderingStrategy:SymbolRenderingStrategy.MULTIPLE_COLOR, + } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle84.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle84.ets new file mode 100644 index 00000000..5592a2bb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle84.ets @@ -0,0 +1,75 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle84 { + @State symbolFontWeight:FontWeight = FontWeight.Normal + @State symbolRenderingStrategy:SymbolRenderingStrategy = SymbolRenderingStrategy.SINGLE + @State textColor:ResourceColor[] = [Color.Red] + @State textAlign: TextAlign = TextAlign.Start + @State start: number = -1 + @State end: number = -1 + private clickNum1:number = 0 + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + private textAligns:TextAlign[]= [ + TextAlign.Start, + TextAlign.Center, + TextAlign.End, + TextAlign.JUSTIFY + ] + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123456", + { + style: + { + fontSize: 30 + } + }) + }) + .onSelect((value: RichEditorSelection) => { + this.start = value.selection[0]; + this.end = value.selection[1]; + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle84_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<4){ + this.textAlign = this.textAligns[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==4){ + this.clickNum1=0 + } + } + this.controller.updateParagraphStyle({ + start: this.start, + end: this.end, + style: { + textAlign:this.textAlign + } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle85.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle85.ets new file mode 100644 index 00000000..415d6fd2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle85.ets @@ -0,0 +1,75 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle85 { + @State symbolFontWeight:FontWeight = FontWeight.Normal + @State symbolRenderingStrategy:SymbolRenderingStrategy = SymbolRenderingStrategy.SINGLE + @State textColor:ResourceColor[] = [Color.Red] + @State textAlign: TextAlign = TextAlign.Start + @State start: number = -1 + @State end: number = -1 + private clickNum1:number = 0 + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + private textAligns:TextAlign[]= [ + TextAlign.Start, + TextAlign.Center, + TextAlign.End, + TextAlign.JUSTIFY + ] + + build() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("123456", + { + style: + { + fontSize: 30 + } + }) + }) + .onSelect((value: RichEditorSelection) => { + this.start = value.selection[0]; + this.end = value.selection[1]; + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle85_01") + .fontSize(18) + .onClick(()=>{ + if(this.clickNum1<4){ + this.textAlign = this.textAligns[this.clickNum1] + this.clickNum1++ + if(this.clickNum1==4){ + this.clickNum1=0 + } + } + this.controller.updateParagraphStyle({ + start: this.start, + end: this.end, + style: { + textAlign:this.textAlign + } + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle86.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle86.ets new file mode 100644 index 00000000..67131bad --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle86.ets @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct fontAttributeAndStyle86 { + @State symbolFontWeight:FontWeight = FontWeight.Normal + @State symbolRenderingStrategy:SymbolRenderingStrategy = SymbolRenderingStrategy.SINGLE + @State textColor:ResourceColor[] = [Color.Red] + @State textAlign: TextAlign = TextAlign.Start + @State start: number = -1 + @State end: number = -1 + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Column() { + RichEditor(this.options) + .id("RichEditor_086") + .onReady(() => { + this.controller.addTextSpan("123456", + { + style: + { + fontSize: 30 + } + }) + }) + .onSelect((value: RichEditorSelection) => { + this.start = value.selection[0]; + this.end = value.selection[1]; + }) + + Button("addSymbolSpan") + .id("fontAttributeAndStyle86_01") + .fontSize(18) + .onClick(()=>{ + this.controller.setTypingStyle( + { + fontWeight: 600, + fontColor: Color.Red, + fontSize: 30, + }) + }) + .margin({top:50}) + }.width('100%') + } +} \ No newline at end of file -- Gitee From 3772c7769ee7d68d47a51cddb8c5272956d5cb49 Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 9 Sep 2024 17:55:30 +0800 Subject: [PATCH 17/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E9=85=8D=E7=BD=AE=20list=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../entry/src/ohosTest/ets/test/List.test.ets | 2 + .../UIAttributeFontInterface002.test.ets | 16 -- .../fontAttributeAndStyle_01.ets | 51 ++++ .../ohosTest/resources/base/media/img2.png | Bin 0 -> 6790 bytes .../resources/base/profile/test_pages.json | 268 +++++++++++++++++- 5 files changed, 319 insertions(+), 18 deletions(-) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface04/fontAttributeAndStyle_01.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/resources/base/media/img2.png diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets index 723ea731..201dccc5 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets @@ -80,6 +80,8 @@ import UIComponentTextTextinputAction from './UIComponentTextTextinputActionTest import UIComponentTextCommonAffingTranTest from './UIComponentTextCommonAffingTranTest/UIComponentTextCommonAffingTran.test' import UIComponentSymbolDisplay from './UIComponentSymbolDisplayTest/UIComponentSymbolDisplay.test' import UIAttributeFontSupportstage from './UIAttributeFontSupportstageTest/UIAttributeFontSupportstage.test' +import UIAttributeFontInterface002 from './UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test' +import UIAttributeFontInterface003 from './UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test' export default function testsuite() { demoTest(); UIAttributeFontInterface001(); diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets index b40ce914..5f85efa7 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets @@ -21,22 +21,6 @@ import Utils from '../model/Utils' import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.UiTest'; -/* - * SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0010:设置文本颜色 - * - * Settings.createWindow(config.url): - * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 - * - * windowSnap.snapShot(globalThis.context): - * 窗口截屏&图片文件保存,存储在设备端 - * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 - * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 - * - * Logger日志使用方法: - * import Logger form './model/Logger' - * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) - * */ - export default function UIAttributeFontInterface002() { describe('UIAttributeFontInterface002', () => { diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface04/fontAttributeAndStyle_01.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface04/fontAttributeAndStyle_01.ets new file mode 100644 index 00000000..68f3789e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface04/fontAttributeAndStyle_01.ets @@ -0,0 +1,51 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { BlankModifier } from "@ohos.arkui.modifier"; + +class MyBlankModifier extends BlankModifier { + applyBlankAttribute(instance: BlankAttribute): void { + super.applyNormalAttribute?.(instance); + } + + onChange() { + this.color("#FF654321") + } +} + +@Entry +@Component +struct BlankExample { + @State myBlankModifier: BlankModifier = new MyBlankModifier() + // @State customModifier: BlankModifier = new CustomModifier() + // .color("#FF123456") + + build() { + Column({ space: 5 }) { + Button("change value").onClick(() => { + (this.myBlankModifier as MyBlankModifier).onChange(); + }).key("changeButton") + + Column() { + Blank("160") + .attributeModifier(this.myBlankModifier as MyBlankModifier) + .key('blank') + Toggle({ type: ToggleType.Switch }).margin({ top: 14, bottom: 14, left: 6, right: 6 }) + }.backgroundColor(Color.Gray).padding(20) + } + .width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/media/img2.png b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/media/img2.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z|LuG1{QnBUJRg_E=h1#XMWt2%fcoN@l7eAS!Es?Q+;XsRNPhiiE=@AqlLkJzF`O18 zbsbSmKN=aaq8k3NFYZfDWpKmM!coBU0(XnL8R{4=i|wi{!uWYM2je{U{B*K2PVdu&=E zTq*-XsEsJ$u5H4g6DIm2Y!DN`>^v|AqlwuCD;w45K0@eqauiqWf7l&o)+YLHm~|L~ z7$0v5mkobriU!H<@mVJHLlmQqzQ3d6Rh_-|%Yy2li*tHO>_vcnuZ7OR_xkAIuIU&x z-|8Y0wj|6|a6_I(v91y%k_kNw6pnkNdxjqG8!%Vz_d%c_!X+6-;1`GC9_FpjoHev5fEV7RhJ>r=mh-jp$fqbqRJ=obwdgLDVP5+s zy1=_DWG0Y-Jb3t^WXmkr(d9~08k-|#Ly zaNOmT(^9tIb&eb4%CzIT zAm3CUtWSr1t4?h1kk#NBi{U|pJslvME{q|_eS^3En>SOqSxyuN1x;Is@8~m?*>}** znrRFArP!K_52RpX*&JHMR<^lVdm8ypJ}0R(SD(51j;6@ni$6bQ+2XL+R^|NnSp5}(kzvMZ^(@4fD_{QVu$(&K6H|C37TG1Am9Re{<<3gd zh@`>;BqkXMW&p0T6rt|iB$)~CvFe(XC)F9WgAZn*0@t$oZo;!*}r@_`h?KKH&6A@3= zISXoQB+~`op>NP-buiA*^0n{@i{_?MRG)&k)c)k_F+-2Lud!S9pc+i`s74NpBCaGF zXN+pHkubw*msGBTY27BKHv)RRh3;nMg4&$fD_6X9Vt~;_4D+5XPH~#Kn-yjcy!$}1 zigv#FNY>TqMhtIBb@UoF!cE~Q8~;!Pek>SQQwHnHuWKoVBosAiOr}q>!>aE*Krc)V zBUMEcJ5NU0g8}-h6i1zpMY9>m4ne?=U2~`w7K7Q0gB_=p@$5K7p6}thw z-~3dMj?YNX2X$lZ+7ngQ$=s}3mizNN@kE%OtB)?c&i~2L55z8^=yz;xMHLmlY>&Q# zJj?!)M#q_SyfkQh)k?j8IfLtB)ZCp|*vf4_B zos?73yd^h-Ac+;?E4*bpf=o*^3x3-`TVjbY4n6!EN10K6o@fxdyps05Vo3PU)otB} z`3kR+2w7_C#8Z!q`J)p{Vh!+m9-UP!$STp+Hb}}#@#_u^SsUQg<}59< zTvH3%XS4G+6FF^(m6bVF&nSUIXcl;nw{=H$%fgeJ>CgDYiLdpDXr{;-AnG z8dvcrHYVMI&`R6;GWekI@Ir3!uo)oz4^{6q0m^}@f2tM9&=YHNi6-?rh0-{+k@cQm zdp`g#YdQn%MDVg2GR>wZ`n2<0l4)9nx1Wfr&!Dvz=bPwU!h2S?ez6MVc5APE4-xLB zi&W9Q8k2@0w!C53g?iAIQ}~p*3O(@zja6KQ=M3zfW*_6o5SwR-)6VBh~m7{^-=MC-owYH5-u40a}a0liho3QZZ5L{bS_xM1)4}19)zTU$$MY zq3eZML1WC{K%YFd`Be0M-rkO^l?h{kM{$2oK1*A@HVJ57*yhDkUF!2WZ&oA4Y-sK( zCY69%#`mBCi6>6uw(x4gbFaP0+FD*JKJ-q!F1E?vLJ+d35!I5d7@^eU?(CS|C^tmI5?lv@s{{*|1F zFg|OzNpZ0hxljdjaW%45O0MOttRrd(Z?h{HYbB-KFUx&9GfFL3b8NwZ$zNu)WbBD` zYkj$^UB5%3Pj1MDr>S2Ejr9pUcgA!;ZG!@{uAy12)vG=*^9-|dNQBc8&`oxBlU~#y zs!anJX&T?57Jdr^sb>e+V`MVfY>Y0ESg7MG<7W0g&bR-ZYzzZ%2H&Etcp zcd6QeXO1D!5A#zM0lx*GH}`M)2~ZFLE;sP^RSB5wVMNfiZXPd(cmO>j=OSA3`o5r& zna(|^jGXbdN7PK)U8b7^zYtYkkeb%<%F~=OqB~kXMQkq}ii|skh@WSRt>5za;cjP0 zZ~nD%6)wzedqE}BMLt~qKwlvTr33))#uP~xyw#*Eaa|DbMQ_%mG0U8numf8)0DX`r zRoG2bM;#g|p-8gWnwRV5SCW0tLjLO&9Z?K>FImeIxlGUgo0Zk`9Qzhj1eco~7XZy+hXc@YF&ZQ=? zn*^1O56yK^x{y}q`j7}blGCx%dydV!c7)g~tJzmHhV=W~jbWRRR{1<^oDK+1clprm zz$eCy7y9+?{E|YgkW~}}iB#I4XoJ*xr8R?i_Hv$=Cof5bo-Nj~f`-DLebH}&0% zfQj9@WGd4;N~Y?mzQsHJTJq6!Qzl^-vwol(+fMt#Pl=Wh#lI5Vmu@QM0=_r+1wHt` z+8WZ~c2}KQQ+q)~2Ki77QvV&`xb|xVcTms99&cD$Zz4+-^R4kvUBxG8gDk7Y`K*)JZ^2rL(+ZWV~%W(@6 z)0bPArG#BROa_PHs~&WplQ_UIrpd)1N1QGPfv!J(Z9jNT#i%H?CE6|pPZb9hJ1JW4 z^q;ft#!HRNV0YgPojzIYT`8LuET2rUe-J|c!9l4`^*;4WtY@Ew@pL>wkjmMgGfN7 ze}}GtmU0@<_#08~I-Suk=^*9GLW=H4xhsml;vAV{%hy5Eegl@!6qKqbG024%n2HHw zCc@ivW_$@5ZoHP70(7D+(`PvgjW1Pd`wsiuv-aCukMrafwDm)B!xXVy*j2opohhoU zcJz%ADmj>i3`-3-$7nQKBQQuGY;2Qt&+(L~C>vSGFj5{Mlv?T_^dql;{zkpe4R1}R z%XfZyQ}wr*sr>jrKgm*PWLjuVc%6&&`Kbf1SuFpHPN&>W)$GmqC;pIoBC`=4-hPY8 zT*>%I2fP}vGW;R=^!1be?ta2UQd2>alOFFbVl;(SQJ4Jk#)4Z0^wpWEVvY4=vyDk@ zqlModi@iVPMC+{?rm=4(n+<;|lmUO@UKYA>EPTS~AndtK^Wy^%#3<;(dQdk3WaUkRtzSMC9}7x2||CNpF#(3T4C)@ z$~RWs`BNABKX|{cmBt>Q=&gkXl&x!!NK_%5hW0LS)Z4PB>%sV?F-{Wyj#s7W%$F{D zXdK^Fp3wvy+48+GP6F_|^PCRx=ddcTO3sG;B23A49~Qaw31SZ0Rc~`r4qqt%#OGW{ zCA_(LG5^N>yzUn&kAgVmxb=EA8s&tBXC}S1CZ(KoW)(%^JjLTPo^fs`Va;`=YlVPgmB$!yB}<(4ym6OeZ3xAJJ#;)2+B%p3P1Wt+d$eo`vz`T zXfUP2))kBDPoscH;Jc7I3NU<({|@wM$&GaDt`n7WLgIY3IA7A6-_R?z8N3mz|}*i z(zl5ot--Oq@f2-nv{X(ujT2T(k1vY_qh93pK@>H-qc%2Xta)IP0Q%zt%bqYgI`o!wv!0QerB`nCN^1n|@$sVOQ!V0teVG!I z_fD%JvfDeT1cK#-{o6Gv7}& zY0#NWin~kVaf$aufV&;63Hbs|`QVZWpDX6IMk1Hj2G}fiH9e-^6u2zf^FIr^BwD<6zjw63+{yUe8PUFvk8v{sJ=R{d#`O!sz`Q13~< zPT$JS(w=yQfU2`zPCNfSw=&zup@DXc(98afjhv@1w_f!m2Z>rMJ19AB&dB%P#Ls3b z=lK7OILM+SQ&VEd=1GN6o&>YVVtIzoZ%=Z_SdqJN2}E43{bE`>w+A;=y->@^k{oCC z$F*WTY&?34;kfyFV?b*Xb1Pq`Z=%OgwEg)Rz)tx=`f%5#w_INP=x&z5!jI;#;N$ma zhO)+MDm;SxOEVL15; zGq(v2pL3&P1Sl)8P*;G-fd{l1QJsv@e@d8)1PK4w2m*M%V3j-V~L^$i|&C@b?D?9tfwE{B^}Z$k8e5FmQ>v7Xz)sG32g9t}YBt zyR$+*_00RmPx+0mW+vVG4mxd(n$(eQf3-w>JPl2UJpafrPaL5@2j}%{VE-) zBI%6Qpj*dsdH<;g!S!avA~bv^0E+ zfyJbSjPb+j;J52U)<|cIcntQBI2T#>2;tOxu{%D?kML476AErF(qN9hPva5Nkc@BF zC-tLF@3ZFb%Kpj)M<{)x*l|*Ia@ECeXo2E4h2f!aV=cHAhi_E_mfUth(sM4^hJq7B zQsGWqdZUm9S%F`$nQ*_#NcuD`&)Ek%_s{&^78{9Hm ztri&rYLOxgFdG>O@+XHy z9#;|&vBCPXH5Mon^I`jSuR$&~ZWtyB67ujzFSj!51>#C}C17~TffQ{c-!QFQkTQ%! zIR^b1`zHx|*1GU?tbBx23weFLz5H?y_Q%N&t$}k?w+``2A=aotj0;2v$~AL z{scF-cL{wsdrmPvf#a9OHyYLcwQD4Kcm)`LLwMh4WT~p29f7M!iafJSU`IV}QY5Wa z(n44-9oA}?J{a+ah*@31WTs#&J#o1`H98#6IQf;Wv0N_!);f&9g7o-k(lW5rWnDUR zQBFIRG+X=6NnsI@mxnwm;tf5;_Uxg?jZ8m-m0}&6+DA!qam(p$mN5R})yA_7m$q@| zFEd|dpS595rxQr-n#GjI5i-AhnUE>Cr;jpCqSrD~EwK_DqI^7%3#p5)%T_od!t3SOmH9MyXeeGO2(UQL;ax|x?Ncixmeo1=$ z{-);Au{*tfzOG?KQ~K|ak8-HQ?`Pekhe2WM(8s{xv-p>Zmu_6{G!-oE$7$mY`MOJorI=+mMx?H;`pr!;fVYz?5~yXBACruWB`Ph zZM}90_<^OBxIhyZ9BW$`>6JvO;%VFpqVr8|7t3~AmxYak6?`Pp#c;**_SYmi`&z23 z`p6_~ePvH)C6x-G9$hgL=eVALq`-AiamN>!3~Lxw&{H(b{B(7xSRm6<3<{%{yXiH# zos5Rv1L+8fUKJLo%P>4I&$}y Date: Tue, 10 Sep 2024 14:23:03 +0800 Subject: [PATCH 18/19] =?UTF-8?q?ui=E5=AF=B9=E6=AF=94=E7=94=A8=E4=BE=8B=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8E=E5=AF=BC=E8=88=AA=E7=B1=BB=20?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E9=85=8D=E7=BD=AE=20list=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../UIAttributeFontInterface003.test.ets | 2 +- .../fontAttributePage35.ets | 2 +- .../fontAttributePage52.ets | 2 +- .../fontAttributeAndStyle05.ets | 1 + .../fontAttributeAndStyle06.ets | 2 +- .../fontAttributeAndStyle41.ets | 2 +- .../fontAttributeAndStyle83.ets | 9 +- .../resources/base/element/color.json | 4 + .../resources/base/element/string.json | 4 + .../resources/base/profile/test_pages.json | 170 +++++++++--------- 10 files changed, 103 insertions(+), 95 deletions(-) diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets index 8df1e724..895229ca 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets @@ -1884,7 +1884,7 @@ export default function UIAttributeFontInterface003() { */ it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0830', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0830 start.`); - Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle53") + Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle60") await Utils.sleep(1000) let driver: Driver = Driver.create(); await Utils.sleep(1000) diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage35.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage35.ets index de65c997..eedbe8ae 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage35.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage35.ets @@ -15,7 +15,7 @@ @Entry @Component -struct fontAttributePage34 { +struct fontAttributePage35 { build() { Column() { diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage52.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage52.ets index 635882f3..016dc899 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage52.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage52.ets @@ -15,7 +15,7 @@ @Entry @Component -struct fontAttributePage51 { +struct fontAttributePage52 { @State start: number = 5 @State end: number = 20 @State selectText:string = "OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及运营的开源项目, 目标是面向全场景、全连" + diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle05.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle05.ets index 851f0458..d551a720 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle05.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle05.ets @@ -17,6 +17,7 @@ @Component struct fontAttributeAndStyle05 { @State letterSpacing:number | string | Resource = 0 + private clickNum1:number = 0 private clickNum2:number = 0 private letterSpacings:Array = [ -2, diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle06.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle06.ets index 894197d4..58e556d5 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle06.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle06.ets @@ -15,7 +15,7 @@ @Entry @Component -struct fontAttributeAndStyle15 { +struct fontAttributeAndStyle06 { @State letterSpacing:number | string | Resource = 0 @State type:InputType = InputType.Normal @State text:string = "开源鸿蒙" diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle41.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle41.ets index 1e2ad00c..b505ca1a 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle41.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle41.ets @@ -15,7 +15,7 @@ @Entry @Component -struct fontAttributeAndStyle42 { +struct fontAttributeAndStyle41 { @State lineHeight:number | string | Resource = 24 private clickNum:number = 0 private lineHeights:Array = [ diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle83.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle83.ets index 1e20f802..12a2ed87 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle83.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle83.ets @@ -35,7 +35,6 @@ struct fontAttributeAndStyle83 { [Color.Red], [Color.Red,Color.Yellow], [Color.Red,Color.Red], - [Color.Red,Color.Red], ] build() { @@ -59,15 +58,15 @@ struct fontAttributeAndStyle83 { .id("fontAttributeAndStyle83_01") .fontSize(18) .onClick(()=>{ - if(this.clickNum1<6){ + if(this.clickNum1<3){ this.textColor = this.textColors[this.clickNum1] - // this.symbolRenderingStrategy = this.renderingStrategies[this.clickNum1] + this.symbolRenderingStrategy = this.renderingStrategies[this.clickNum1] this.clickNum1++ - if(this.clickNum1==6){ + if(this.clickNum1==3){ this.clickNum1=0 } } - this.controller.updateParagraphStyle({ + this.controller.updateSpanStyle({ start: this.start, end: this.end, symbolStyle: { diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/color.json b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/color.json index 249b5991..03d835fb 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/color.json +++ b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/color.json @@ -15,6 +15,10 @@ { "name": "blue", "value": "#0000ff" + }, + { + "name": "colorRed", + "value": "#FF0000" } ] } \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/string.json b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/string.json index e59486fd..fd14c372 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/string.json +++ b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/string.json @@ -35,6 +35,10 @@ { "name": "fontfamily_1", "value": "HarmonyOS Sans" + }, + { + "name": "span", + "value": "span" } ] } \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json index 4f74a300..c05cfa40 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json +++ b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json @@ -1504,90 +1504,90 @@ "testability/pages/UIAttributeFontInterface02/fontAttributePage184", "testability/pages/UIAttributeFontInterface02/fontAttributePage185", "testability/pages/UIAttributeFontInterface02/fontAttributePage186", - "testability/pages/UIAttributeFontInterface03/fontAttributePage01", - "testability/pages/UIAttributeFontInterface03/fontAttributePage02", - "testability/pages/UIAttributeFontInterface03/fontAttributePage03", - "testability/pages/UIAttributeFontInterface03/fontAttributePage04", - "testability/pages/UIAttributeFontInterface03/fontAttributePage05", - "testability/pages/UIAttributeFontInterface03/fontAttributePage06", - "testability/pages/UIAttributeFontInterface03/fontAttributePage07", - "testability/pages/UIAttributeFontInterface03/fontAttributePage08", - "testability/pages/UIAttributeFontInterface03/fontAttributePage09", - "testability/pages/UIAttributeFontInterface03/fontAttributePage10", - "testability/pages/UIAttributeFontInterface03/fontAttributePage11", - "testability/pages/UIAttributeFontInterface03/fontAttributePage12", - "testability/pages/UIAttributeFontInterface03/fontAttributePage13", - "testability/pages/UIAttributeFontInterface03/fontAttributePage14", - "testability/pages/UIAttributeFontInterface03/fontAttributePage15", - "testability/pages/UIAttributeFontInterface03/fontAttributePage16", - "testability/pages/UIAttributeFontInterface03/fontAttributePage17", - "testability/pages/UIAttributeFontInterface03/fontAttributePage18", - "testability/pages/UIAttributeFontInterface03/fontAttributePage19", - "testability/pages/UIAttributeFontInterface03/fontAttributePage20", - "testability/pages/UIAttributeFontInterface03/fontAttributePage21", - "testability/pages/UIAttributeFontInterface03/fontAttributePage23", - "testability/pages/UIAttributeFontInterface03/fontAttributePage24", - "testability/pages/UIAttributeFontInterface03/fontAttributePage25", - "testability/pages/UIAttributeFontInterface03/fontAttributePage26", - "testability/pages/UIAttributeFontInterface03/fontAttributePage27", - "testability/pages/UIAttributeFontInterface03/fontAttributePage28", - "testability/pages/UIAttributeFontInterface03/fontAttributePage29", - "testability/pages/UIAttributeFontInterface03/fontAttributePage30", - "testability/pages/UIAttributeFontInterface03/fontAttributePage31", - "testability/pages/UIAttributeFontInterface03/fontAttributePage32", - "testability/pages/UIAttributeFontInterface03/fontAttributePage33", - "testability/pages/UIAttributeFontInterface03/fontAttributePage34", - "testability/pages/UIAttributeFontInterface03/fontAttributePage35", - "testability/pages/UIAttributeFontInterface03/fontAttributePage36", - "testability/pages/UIAttributeFontInterface03/fontAttributePage37", - "testability/pages/UIAttributeFontInterface03/fontAttributePage38", - "testability/pages/UIAttributeFontInterface03/fontAttributePage39", - "testability/pages/UIAttributeFontInterface03/fontAttributePage40", - "testability/pages/UIAttributeFontInterface03/fontAttributePage41", - "testability/pages/UIAttributeFontInterface03/fontAttributePage42", - "testability/pages/UIAttributeFontInterface03/fontAttributePage43", - "testability/pages/UIAttributeFontInterface03/fontAttributePage44", - "testability/pages/UIAttributeFontInterface03/fontAttributePage45", - "testability/pages/UIAttributeFontInterface03/fontAttributePage46", - "testability/pages/UIAttributeFontInterface03/fontAttributePage47", - "testability/pages/UIAttributeFontInterface03/fontAttributePage48", - "testability/pages/UIAttributeFontInterface03/fontAttributePage49", - "testability/pages/UIAttributeFontInterface03/fontAttributePage50", - "testability/pages/UIAttributeFontInterface03/fontAttributePage51", - "testability/pages/UIAttributeFontInterface03/fontAttributePage52", - "testability/pages/UIAttributeFontInterface03/fontAttributePage53", - "testability/pages/UIAttributeFontInterface03/fontAttributePage54", - "testability/pages/UIAttributeFontInterface03/fontAttributePage55", - "testability/pages/UIAttributeFontInterface03/fontAttributePage56", - "testability/pages/UIAttributeFontInterface03/fontAttributePage57", - "testability/pages/UIAttributeFontInterface03/fontAttributePage58", - "testability/pages/UIAttributeFontInterface03/fontAttributePage59", - "testability/pages/UIAttributeFontInterface03/fontAttributePage60", - "testability/pages/UIAttributeFontInterface03/fontAttributePage61", - "testability/pages/UIAttributeFontInterface03/fontAttributePage62", - "testability/pages/UIAttributeFontInterface03/fontAttributePage63", - "testability/pages/UIAttributeFontInterface03/fontAttributePage64", - "testability/pages/UIAttributeFontInterface03/fontAttributePage65", - "testability/pages/UIAttributeFontInterface03/fontAttributePage66", - "testability/pages/UIAttributeFontInterface03/fontAttributePage67", - "testability/pages/UIAttributeFontInterface03/fontAttributePage68", - "testability/pages/UIAttributeFontInterface03/fontAttributePage69", - "testability/pages/UIAttributeFontInterface03/fontAttributePage70", - "testability/pages/UIAttributeFontInterface03/fontAttributePage71", - "testability/pages/UIAttributeFontInterface03/fontAttributePage72", - "testability/pages/UIAttributeFontInterface03/fontAttributePage73", - "testability/pages/UIAttributeFontInterface03/fontAttributePage74", - "testability/pages/UIAttributeFontInterface03/fontAttributePage75", - "testability/pages/UIAttributeFontInterface03/fontAttributePage76", - "testability/pages/UIAttributeFontInterface03/fontAttributePage77", - "testability/pages/UIAttributeFontInterface03/fontAttributePage78", - "testability/pages/UIAttributeFontInterface03/fontAttributePage79", - "testability/pages/UIAttributeFontInterface03/fontAttributePage80", - "testability/pages/UIAttributeFontInterface03/fontAttributePage81", - "testability/pages/UIAttributeFontInterface03/fontAttributePage82", - "testability/pages/UIAttributeFontInterface03/fontAttributePage83", - "testability/pages/UIAttributeFontInterface03/fontAttributePage84", - "testability/pages/UIAttributeFontInterface03/fontAttributePage85", - "testability/pages/UIAttributeFontInterface03/fontAttributePage86" + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle01", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle02", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle03", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle04", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle05", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle06", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle07", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle08", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle09", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle10", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle11", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle12", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle13", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle14", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle15", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle16", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle17", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle18", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle19", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle20", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle21", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle23", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle24", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle25", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle26", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle27", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle28", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle29", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle30", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle31", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle32", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle33", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle34", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle35", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle36", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle37", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle38", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle39", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle40", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle41", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle42", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle43", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle44", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle45", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle46", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle47", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle48", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle49", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle50", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle51", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle52", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle53", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle54", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle55", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle56", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle57", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle58", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle59", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle60", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle61", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle62", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle63", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle64", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle65", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle66", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle67", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle68", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle69", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle70", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle71", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle72", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle73", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle74", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle75", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle76", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle77", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle78", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle79", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle80", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle81", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle82", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle83", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle84", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle85", + "testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle86" ] } -- Gitee From 37b61247c94040ff13d726f6a313a911f438b9ed Mon Sep 17 00:00:00 2001 From: dongwei Date: Thu, 12 Sep 2024 17:48:06 +0800 Subject: [PATCH 19/19] ohosTest codecheck Signed-off-by: dongwei --- .../entry/src/ohosTest/ets/test/List.test.ets | 2 + .../UIAttributeFontInterface002.test.ets | 944 +++++++++--------- .../UIAttributeFontInterface003.test.ets | 672 ++++++------- .../fontAttributePage03.ets | 2 +- .../fontAttributePage04.ets | 2 +- .../fontAttributeAndStyle04.ets | 4 + .../resources/base/element/integer.json | 15 + .../resources/base/element/string.json | 12 + .../resources/base/media/big_icon.png | Bin 0 -> 27877 bytes 9 files changed, 843 insertions(+), 810 deletions(-) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/integer.json create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/resources/base/media/big_icon.png diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets index 201dccc5..00732590 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets @@ -150,4 +150,6 @@ export default function testsuite() { UIComponentTextCommonAffingTranTest(); UIComponentSymbolDisplay(); UIAttributeFontSupportstage(); + UIAttributeFontInterface002() + UIAttributeFontInterface003() } \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets index 5f85efa7..90856cab 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface002.test.ets @@ -36,7 +36,7 @@ export default function UIAttributeFontInterface002() { } Logger.info('TEST', `Succeeded in destroy the window.`); }) - await Utils.sleep(1000); + await Utils.sleep(500); done() }) @@ -48,9 +48,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0210', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0210 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage01") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0210 finish.`); done() }) @@ -63,9 +63,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0270', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0270 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage03") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_INTERFACE_0270 finish.`); done() }) @@ -78,9 +78,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0010', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0010 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage04") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0010 finish.`); done() }) @@ -93,15 +93,15 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0020', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0020 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage05") - await Utils.sleep(1000) + await Utils.sleep(500) let driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) await driver.triggerKey(2049); - await Utils.sleep(1000) + await Utils.sleep(500) await driver.triggerKey(2054); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SEARCH_LAYOUT_0020 finish.`); done() }) @@ -115,9 +115,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0010', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0010 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage06") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0010 finish.`); done() }) @@ -131,9 +131,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0020', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0020 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage07") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0020 finish.`); done() }) @@ -147,9 +147,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0030', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0030 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage08") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0030 finish.`); done() }) @@ -163,9 +163,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0040', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0040 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage09") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0040 finish.`); done() }) @@ -179,9 +179,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0050', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0050 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage10") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0050 finish.`); done() }) @@ -195,9 +195,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0060', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0060 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage11") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0060 finish.`); done() }) @@ -211,9 +211,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0070', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0070 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage12") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0070 finish.`); done() }) @@ -227,9 +227,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0080', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0080 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage13") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0080 finish.`); done() }) @@ -242,9 +242,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0090', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0090 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage14") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0090 finish.`); done() }) @@ -257,9 +257,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0100', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0100 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage15") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0100 finish.`); done() }) @@ -272,9 +272,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0110', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0110 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage16") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0110 finish.`); done() }) @@ -289,9 +289,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0120', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0120 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage17") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0120 finish.`); done() }) @@ -305,9 +305,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0130', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0130 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage18") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0130 finish.`); done() }) @@ -321,9 +321,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0140', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0140 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage19") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0140 finish.`); done() }) @@ -337,9 +337,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0150', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0150 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage20") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0150 finish.`); done() }) @@ -353,9 +353,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0160', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0160 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage21") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0160 finish.`); done() }) @@ -369,9 +369,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0170', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0170 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage22") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0170 finish.`); done() }) @@ -385,9 +385,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0180', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0180 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage23") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0180 finish.`); done() }) @@ -401,9 +401,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0190', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0190 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage24") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0190 finish.`); done() }) @@ -417,9 +417,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0200', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0200 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage25") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0200 finish.`); done() }) @@ -433,9 +433,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0210', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0210 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage26") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0210 finish.`); done() }) @@ -449,9 +449,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0220', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0220 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage27") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0220 finish.`); done() }) @@ -465,9 +465,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0230', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0230 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage28") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0230 finish.`); done() }) @@ -481,9 +481,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0240', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0240 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage29") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0240 finish.`); done() }) @@ -497,9 +497,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0250', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0250 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage30") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_CAPI_0250 finish.`); done() }) @@ -513,9 +513,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0014', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0014 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage33") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0014 finish.`); done() }) @@ -529,9 +529,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0067', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0067 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage34") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0067 finish.`); done() }) @@ -545,9 +545,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0081', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0081 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage35") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SPAN_INTERFACE_0081 finish.`); done() }) @@ -560,9 +560,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0350', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0350 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage36") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0350 finish.`); done() }) @@ -576,19 +576,19 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0420', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0420 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage183") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributePage183_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributePage183_02')); await button1.click(); windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button2.click(); windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0420 finish.`); done() }) @@ -601,19 +601,19 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0430', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0430 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage184") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributePage184_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributePage184_02')); await button1.click(); windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button2.click(); windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0430 finish.`); done() }) @@ -626,32 +626,32 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0690', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0690 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage185") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributePage185_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributePage185_02')); let button3: Component = await driver.findComponent(ON.id('fontAttributePage185_03')); let button4: Component = await driver.findComponent(ON.id('fontAttributePage185_04')); await button1.click(); windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button3.click(); windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) for(let i_01 = 0; i_01 < 5; i_01++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) } for(let i_02 = 0; i_02 < 5; i_02++){ await button4.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) } Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0690 finish.`); done() @@ -666,35 +666,35 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0700', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0700 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage186") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributePage186_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributePage186_02')); let button3: Component = await driver.findComponent(ON.id('fontAttributePage186_03')); let button4: Component = await driver.findComponent(ON.id('fontAttributePage186_04')); await button1.click(); windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) for(let i_01 = 0; i_01 < 5; i_01++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) } for(let i_02 = 0; i_02 < 2; i_02++){ await button3.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) } for(let i_03 = 0; i_03 < 2; i_03++){ await button4.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) } Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SYMBOL_MIXEDDISPLAY_0700 finish.`); done() @@ -709,9 +709,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0010', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0010 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage41") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0010 finish.`); done() }) @@ -725,9 +725,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0020', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0020 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage42") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0020 finish.`); done() }) @@ -741,9 +741,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0030', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0030 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage43") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0030 finish.`); done() }) @@ -756,9 +756,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0040', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0040 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage44") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0040 finish.`); done() }) @@ -771,13 +771,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0050', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0050 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage45") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let copy: Component = await driver.findComponent(ON.text('复制')); await copy.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0050 finish.`); done() }) @@ -790,9 +790,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0060', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0060 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage46") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0060 finish.`); done() }) @@ -805,9 +805,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0070', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0070 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage47") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0070 finish.`); done() }) @@ -820,9 +820,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0080', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0080 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage48") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0080 finish.`); done() }) @@ -835,9 +835,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0090', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0090 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage49") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0090 finish.`); done() }) @@ -850,9 +850,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0100', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0100 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage50") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0100 finish.`); done() }) @@ -866,9 +866,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0110', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0110 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage51") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0110 finish.`); done() }) @@ -882,12 +882,12 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0120', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0120 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage52") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); await driver.click(100,200) - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0120 finish.`); done() }) @@ -901,13 +901,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0140', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0140 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage53") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let selectAll: Component = await driver.findComponent(ON.text('全选')); await selectAll.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0140 finish.`); done() }) @@ -920,9 +920,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0170', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0170 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage54") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0170 finish.`); done() }) @@ -935,9 +935,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0180', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0180 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage55") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0180 finish.`); done() }) @@ -950,9 +950,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0190', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0190 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage56") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0190 finish.`); done() }) @@ -966,9 +966,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0200', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0200 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage57") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0200 finish.`); done() }) @@ -982,9 +982,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0210', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0210 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage58") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0210 finish.`); done() }) @@ -997,9 +997,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0220', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0220 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage59") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0220 finish.`); done() }) @@ -1012,9 +1012,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0230', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0230 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage60") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0230 finish.`); done() }) @@ -1028,9 +1028,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0240', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0240 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage61") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0240 finish.`); done() }) @@ -1044,13 +1044,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0250', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0250 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage62") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let changeSelect: Component = await driver.findComponent(ON.id('changeSelection63')); await changeSelect.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0250 finish.`); done() }) @@ -1064,9 +1064,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0260', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0260 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage63") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0260 finish.`); done() }) @@ -1080,9 +1080,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0270', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0270 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage64") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0270 finish.`); done() }) @@ -1096,9 +1096,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0280', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0280 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage65") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0280 finish.`); done() }) @@ -1112,9 +1112,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0290', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0290 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage66") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0290 finish.`); done() }) @@ -1129,9 +1129,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0300', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0300 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage67") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0300 finish.`); done() }) @@ -1145,9 +1145,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0310', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0310 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage68") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0310 finish.`); done() }) @@ -1162,9 +1162,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0320', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0320 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage69") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0320 finish.`); done() }) @@ -1178,13 +1178,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0330', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0330 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage70") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let copy: Component = await driver.findComponent(ON.text('复制')); await copy.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0330 finish.`); done() }) @@ -1198,9 +1198,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0340', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0340 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage71") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0340 finish.`); done() }) @@ -1214,9 +1214,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0350', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0350 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage72") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0350 finish.`); done() }) @@ -1230,9 +1230,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0360', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0360 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage73") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0360 finish.`); done() }) @@ -1246,9 +1246,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0370', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0370 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage74") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0370 finish.`); done() }) @@ -1262,13 +1262,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0380', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0380 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage75") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let copy: Component = await driver.findComponent(ON.text('复制')); await copy.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0380 finish.`); done() }) @@ -1282,13 +1282,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0390', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0390 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage76") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let copy: Component = await driver.findComponent(ON.text('复制')); await copy.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0390 finish.`); done() }) @@ -1302,13 +1302,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0400', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0400 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage77") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let copy: Component = await driver.findComponent(ON.text('复制')); await copy.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0400 finish.`); done() }) @@ -1322,9 +1322,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0410', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0410 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage78") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0410 finish.`); done() }) @@ -1338,25 +1338,25 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0420', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0420 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage79") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let copy1: Component = await driver.findComponent(ON.id('changeText79_1')); await copy1.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let copy2: Component = await driver.findComponent(ON.id('changeText79_2')); await copy2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let copy3: Component = await driver.findComponent(ON.id('changeText79_3')); await copy3.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0420 finish.`); done() }) @@ -1369,13 +1369,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0430', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0430 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage80") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let changeFontSize: Component = await driver.findComponent(ON.id('changeText80')); await changeFontSize.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0430 finish.`); done() }) @@ -1388,9 +1388,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0440', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0440 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage81") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0440 finish.`); done() }) @@ -1405,13 +1405,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0450', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0450 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage82") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let select: Component = await driver.findComponent(ON.id('changeSelection82')); await select.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0450 finish.`); done() }) @@ -1426,13 +1426,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0460', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0460 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage83") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let select: Component = await driver.findComponent(ON.id('changeSelection83')); await select.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0460 finish.`); done() }) @@ -1446,9 +1446,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0470', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0470 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage84") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0470 finish.`); done() }) @@ -1459,12 +1459,12 @@ export default function UIAttributeFontInterface002() { * @tc.desc : Add a Text component and include a child `ImageSpan` component. Set the `verticalAlign` to `center`, * and set the `selection` with `selectionStart` at 0 and `selectionEnd` at 20. */ - it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0470', 0, async (done: Function) => { + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0480', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0480 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage85") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0480 finish.`); done() }) @@ -1478,9 +1478,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0490', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0490 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage86") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0490 finish.`); done() }) @@ -1494,9 +1494,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0500', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0500 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage87") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0500 finish.`); done() }) @@ -1510,9 +1510,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0510', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0510 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage88") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0510 finish.`); done() }) @@ -1526,9 +1526,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0520', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0520 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage89") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0520 finish.`); done() }) @@ -1542,9 +1542,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0530', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0530 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage90") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0530 finish.`); done() }) @@ -1558,9 +1558,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0540', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0540 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage91") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0540 finish.`); done() }) @@ -1574,9 +1574,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0550', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0550 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage92") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0550 finish.`); done() }) @@ -1590,9 +1590,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0560', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0560 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage93") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0560 finish.`); done() }) @@ -1605,13 +1605,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0590', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0590 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage94") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage94')); await button.longClick(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0590 finish.`); done() }) @@ -1625,13 +1625,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0600', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0600 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage95") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('changeHeight95')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0600 finish.`); done() }) @@ -1644,9 +1644,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0610', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0610 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage96") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0610 finish.`); done() }) @@ -1659,9 +1659,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0630', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0610 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage179") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0630 finish.`); done() }) @@ -1675,17 +1675,17 @@ export default function UIAttributeFontInterface002() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0640 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage180") let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributePage180_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributePage180_02')); await button1.click(); windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button2.click(); windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0640 finish.`); done() }) @@ -1699,17 +1699,17 @@ export default function UIAttributeFontInterface002() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0650 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage181") let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributePage181_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributePage181_02')); await button1.click(); windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button2.click(); windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0650 finish.`); done() }) @@ -1724,21 +1724,21 @@ export default function UIAttributeFontInterface002() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0660 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage182") let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributePage182_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributePage182_02')); let button3: Component = await driver.findComponent(ON.id('fontAttributePage182_03')); await button1.click(); windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button2.click(); windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button3.click(); windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_ABILITY_0660 finish.`); done() }) @@ -1751,9 +1751,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0040', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0040 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage97") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0040 finish.`); done() }) @@ -1767,9 +1767,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0050', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0050 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage98") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0050 finish.`); done() }) @@ -1783,9 +1783,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0060', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0060 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage99") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0060 finish.`); done() }) @@ -1799,9 +1799,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0070', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0070 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage100") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0070 finish.`); done() }) @@ -1815,9 +1815,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0080', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0080 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage101") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0080 finish.`); done() }) @@ -1831,9 +1831,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0090', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0090 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage102") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0090 finish.`); done() }) @@ -1847,9 +1847,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0100', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0100 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage103") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0100 finish.`); done() }) @@ -1863,9 +1863,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0110', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0110 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage104") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0110 finish.`); done() }) @@ -1880,9 +1880,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0120', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0120 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage105") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0120 finish.`); done() }) @@ -1896,9 +1896,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0130', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0130 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage106") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0130 finish.`); done() }) @@ -1912,9 +1912,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0140', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0140 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage107") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0140 finish.`); done() }) @@ -1928,9 +1928,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0150', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0150 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage108") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0150 finish.`); done() }) @@ -1944,9 +1944,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0160', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0160 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage109") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0160 finish.`); done() }) @@ -1960,9 +1960,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0170', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0170 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage110") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0170 finish.`); done() }) @@ -1976,9 +1976,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0180', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0180 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage111") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0180 finish.`); done() }) @@ -1993,9 +1993,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0190', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0190 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage112") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0190 finish.`); done() }) @@ -2010,13 +2010,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0200', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0200 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage113") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage113')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0200 finish.`); done() }) @@ -2032,20 +2032,20 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0210', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0210 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage114") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button_20: Component = await driver.findComponent(ON.id('fontAttributePage114_20')); await button_20.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let button_30: Component = await driver.findComponent(ON.id('fontAttributePage114_30')); await button_30.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0210 finish.`); done() }) @@ -2059,9 +2059,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0220', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0220 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage115") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0220 finish.`); done() }) @@ -2075,9 +2075,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0230', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0230 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage116") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0230 finish.`); done() }) @@ -2092,9 +2092,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0240', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0240 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage117") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0240 finish.`); done() }) @@ -2110,9 +2110,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0250', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0250 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage118") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0250 finish.`); done() }) @@ -2128,13 +2128,13 @@ export default function UIAttributeFontInterface002() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0260 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage119") let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() let fontSize: Component = await driver.findComponent(ON.id('fontAttributePage119_01')); let imageSize: Component = await driver.findComponent(ON.id('fontAttributePage119_02')); await fontSize.click() await imageSize.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0260 finish.`); done() @@ -2152,9 +2152,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0270', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0270 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage120") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0270 finish.`); done() }) @@ -2170,9 +2170,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0280', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0280 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage121") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0280 finish.`); done() }) @@ -2187,9 +2187,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0290', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0290 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage122") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0290 finish.`); done() }) @@ -2204,9 +2204,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0300', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0300 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage123") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0300 finish.`); done() }) @@ -2221,9 +2221,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0310', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0310 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage124") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0310 finish.`); done() }) @@ -2238,9 +2238,9 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0320', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0320 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage125") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0320 finish.`); done() }) @@ -2256,14 +2256,14 @@ export default function UIAttributeFontInterface002() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0330 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage126") let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let widthDec: Component = await driver.findComponent(ON.id('fontAttributePage126_01')); let widthInc: Component = await driver.findComponent(ON.id('fontAttributePage126_02')); await widthDec.click() await widthInc.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_CONTAINERSPAN_0330 finish.`); done() @@ -2281,13 +2281,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0010', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0010 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage127") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage127')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0010 finish.`); done() }) @@ -2301,13 +2301,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0020', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0020 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage128") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage128')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0020 finish.`); done() }) @@ -2321,13 +2321,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0030', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0020 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage129") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage129')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0020 finish.`); done() }) @@ -2341,13 +2341,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0040', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0040 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage130") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage130')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0040 finish.`); done() }) @@ -2361,13 +2361,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0050', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0050 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage131") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage131')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0050 finish.`); done() }) @@ -2381,13 +2381,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0060', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0060 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage132") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage132')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0060 finish.`); done() }) @@ -2401,13 +2401,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0070', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0070 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage133") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage133')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0070 finish.`); done() }) @@ -2421,13 +2421,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0080', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0080 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage134") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage134')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0080 finish.`); done() }) @@ -2441,13 +2441,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0090', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0090 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage135") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage135')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0090 finish.`); done() }) @@ -2461,13 +2461,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0100', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0100 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage136") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage136')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0100 finish.`); done() }) @@ -2481,13 +2481,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0110', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0110 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage137") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage137')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0110 finish.`); done() }) @@ -2501,13 +2501,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0120', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0120 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage138") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage138')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0120 finish.`); done() }) @@ -2521,13 +2521,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0130', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0130 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage139") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage139')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0130 finish.`); done() }) @@ -2541,13 +2541,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0140', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0140 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage140") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage140')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0140 finish.`); done() }) @@ -2561,13 +2561,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0150', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0150 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage141") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage141')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0150 finish.`); done() }) @@ -2581,13 +2581,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0160', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0160 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage142") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage142')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0160 finish.`); done() }) @@ -2601,13 +2601,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0170', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0170 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage143") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage143')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0170 finish.`); done() }) @@ -2621,13 +2621,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0180', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0180 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage144") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage144')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0180 finish.`); done() }) @@ -2640,13 +2640,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0190', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0190 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage145") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage145')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0190 finish.`); done() }) @@ -2660,13 +2660,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0200', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0200 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage146") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage146')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0200 finish.`); done() }) @@ -2680,13 +2680,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0210', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0210 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage147") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage147')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0210 finish.`); done() }) @@ -2701,13 +2701,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0220', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0220 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage148") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage148')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0220 finish.`); done() }) @@ -2721,13 +2721,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0230', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0230 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage149") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage149')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0230 finish.`); done() }) @@ -2742,13 +2742,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0240', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0240 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage150") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage150')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0240 finish.`); done() }) @@ -2762,13 +2762,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0250', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0250 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage151") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage151')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0250 finish.`); done() }) @@ -2783,13 +2783,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0260', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0260 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage152") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage152')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0260 finish.`); done() }) @@ -2803,13 +2803,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0270', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0270 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage153") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage153')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0270 finish.`); done() }) @@ -2824,13 +2824,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0280', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0280 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage154") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage154')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0280 finish.`); done() }) @@ -2844,13 +2844,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0290', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0290 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage155") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage155')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0290 finish.`); done() }) @@ -2864,13 +2864,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0300', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0300 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage156") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage156')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0300 finish.`); done() }) @@ -2884,13 +2884,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0310', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0310 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage157") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage157')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0310 finish.`); done() }) @@ -2905,13 +2905,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0320', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0320 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage158") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage158')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0320 finish.`); done() }) @@ -2925,13 +2925,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0330', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0330 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage159") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage159')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0330 finish.`); done() }) @@ -2946,13 +2946,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0340', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0340 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage160") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage160')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0340 finish.`); done() }) @@ -2966,13 +2966,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0350', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0350 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage161") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage161')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0350 finish.`); done() }) @@ -2987,13 +2987,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0360', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0360 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage162") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage162')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0360 finish.`); done() }) @@ -3007,13 +3007,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0370', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0370 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage163") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage163')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0370 finish.`); done() }) @@ -3028,13 +3028,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0380', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0380 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage164") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage164')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0380 finish.`); done() }) @@ -3048,13 +3048,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0390', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0390 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage165") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage165')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0390 finish.`); done() }) @@ -3068,13 +3068,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0400', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0400 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage166") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage166')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0400 finish.`); done() }) @@ -3088,13 +3088,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0410', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0410 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage167") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage167')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0410 finish.`); done() }) @@ -3109,13 +3109,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0420', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0420 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage168") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage168')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0420 finish.`); done() }) @@ -3129,13 +3129,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0430', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0430 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage169") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage169')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0430 finish.`); done() }) @@ -3150,13 +3150,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0440', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0440 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage170") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage170')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0440 finish.`); done() }) @@ -3170,13 +3170,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0450', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0450 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage171") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage171')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0450 finish.`); done() }) @@ -3191,13 +3191,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0460', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0460 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage172") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage172')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0460 finish.`); done() }) @@ -3211,13 +3211,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0470', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0470 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage173") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage173')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0470 finish.`); done() }) @@ -3232,13 +3232,13 @@ export default function UIAttributeFontInterface002() { it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0480', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0480 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage174") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); let button: Component = await driver.findComponent(ON.id('fontAttributePage174')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0480 finish.`); done() }) @@ -3255,14 +3255,14 @@ export default function UIAttributeFontInterface002() { Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage175") await Utils.sleep(2000) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributePage175')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0490 finish.`); done() }) @@ -3278,14 +3278,14 @@ export default function UIAttributeFontInterface002() { Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage176") await Utils.sleep(2000) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributePage176')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0500 finish.`); done() }) @@ -3302,14 +3302,14 @@ export default function UIAttributeFontInterface002() { Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage177") await Utils.sleep(2000) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributePage177')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0510 finish.`); done() }) @@ -3326,14 +3326,14 @@ export default function UIAttributeFontInterface002() { Settings.createWindow("testability/pages/UIAttributeFontInterface02/fontAttributePage178") await Utils.sleep(2000) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributePage178')); await button.click(); - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_TRUNCATION_0520 finish.`); done() }) diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets index 895229ca..07134017 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterface003.test.ets @@ -36,7 +36,7 @@ export default function UIAttributeFontInterface003() { } Logger.info('TEST', `Succeeded in destroy the window.`); }) - await Utils.sleep(1000); + await Utils.sleep(500); done() }) @@ -53,18 +53,18 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0130', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0130 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle01") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle01_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle01_2')); for(let i_01 = 0; i_01<9; i_01++){ await button1.click() for(let i_02 = 0; i_02<5; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==4 && i_01 == 8){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0130 finish.`); done() @@ -83,15 +83,15 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0140', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0140 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle02") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle02')); for(let i = 0; i<9; i++){ await button1.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i==8){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0140 finish.`); done() @@ -110,9 +110,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0150', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0150 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle03") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle03_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle03_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle03_3')); @@ -121,13 +121,13 @@ export default function UIAttributeFontInterface003() { await button1.click() for(let i_02 = 0; i_02<5; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button3.click() await button4.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==4 && i_01 == 2){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0150 finish.`); done() @@ -146,37 +146,37 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0160', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0160 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle04") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle04_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle04_2')); await button1.longClick() let selectAll: Component = await driver.findComponent(ON.text('全选')); if(selectAll){ await selectAll.click() - await Utils.sleep(1000) + await Utils.sleep(500) let copy: Component = await driver.findComponent(ON.text('复制')); let paste: Component = await driver.findComponent(ON.text('粘贴')); await copy.click() - await Utils.sleep(1000) + await Utils.sleep(500) await button2.longClick() - await Utils.sleep(1000) + await Utils.sleep(500) await paste.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) } else { let copy: Component = await driver.findComponent(ON.text('复制')); let paste: Component = await driver.findComponent(ON.text('粘贴')); await copy.click() - await Utils.sleep(1000) + await Utils.sleep(500) await button2.longClick() - await Utils.sleep(1000) + await Utils.sleep(500) await paste.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) } Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0160 finish.`); done() @@ -192,15 +192,15 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0170', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0170 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle05") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle05')); for(let i = 0; i<5; i++){ await button.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i==4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0170 finish.`); done() @@ -220,18 +220,18 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0180', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0180 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle06") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle06_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle06_02')); for(let i_01 = 0; i_01 < 10; i_01++){ await button1.click() for(let i_02 = 0; i_02 < 5; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==4 && i_01==9){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0180 finish.`); done() @@ -252,18 +252,18 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0190', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0190 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle07") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle07_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle07_2')); for(let i_01 = 0; i_01 < 10; i_01++){ await button1.click() for(let i_02 = 0; i_02 < 5; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==4 && i_01==9){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0190 finish.`); done() @@ -283,9 +283,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0200', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0200 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle08") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle08_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle08_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle08_3')); @@ -294,9 +294,9 @@ export default function UIAttributeFontInterface003() { await button1.click() for(let i_02 = 0; i_02<3; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==2 && i_01 == 4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0200 finish.`); done() @@ -316,9 +316,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0210', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0210 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle09") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle09_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle09_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle09_3')); @@ -328,7 +328,7 @@ export default function UIAttributeFontInterface003() { for(let i_02 = 0; i_02<4; i_02++){ await button3.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02 == 3 && i_01 == 4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0210 finish.`); done() @@ -348,20 +348,20 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0220', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0220 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle10") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle10_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle10_2')); let input: Component = await driver.findComponent(ON.id('fontAttributeAndStyle10')); await button1.click() for(let i_01 = 0; i_01<5; i_01++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) await input.longClick() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_01 == 4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0220 finish.`); done() @@ -379,15 +379,15 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0230', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0230 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle11") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle11')); for(let i = 0; i<6; i++){ await button.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i==5){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0230 finish.`); done() @@ -406,9 +406,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0240', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0240 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle12") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle12_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle12_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle12_3')); @@ -418,7 +418,7 @@ export default function UIAttributeFontInterface003() { for(let i_02 = 0; i_02<4; i_02++){ await button3.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02 == 3 && i_01 == 5){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0240 finish.`); done() @@ -437,15 +437,15 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0250', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0250 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle13") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle13')); for(let i = 0; i<6; i++){ await button.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i==5){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0250 finish.`); done() @@ -464,9 +464,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0260', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0260 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle14") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle14_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle14_02')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle14_03')); @@ -474,9 +474,9 @@ export default function UIAttributeFontInterface003() { await button2.click() for(let i_02 = 0; i_02 < 3; i_02++){ await button1.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button3.click() if(i_02==2 && i_01 == 5){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0260 finish.`); @@ -498,18 +498,18 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0270', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0270 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle15") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle15_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle15_02')); for(let i_01 = 0; i_01 < 10; i_01++){ await button1.click() for(let i_02 = 0; i_02 < 6; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==5 && i_01==9){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0270 finish.`); done() @@ -530,18 +530,18 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0280', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0280 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle16") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle16_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle16_2')); for(let i_01 = 0; i_01 < 10; i_01++){ await button1.click() for(let i_02 = 0; i_02 < 6; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==5 && i_01==9){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0280 finish.`); done() @@ -561,18 +561,18 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0290', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0290 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle17") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle17_1')); let input: Component = await driver.findComponent(ON.type('TextInput')); for(let i_01 = 0; i_01 < 10; i_01++){ await button.click() - await Utils.sleep(1000) + await Utils.sleep(500) await input.longClick() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_01==9){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0290 finish.`); done() @@ -592,9 +592,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0300', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0300 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle18") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle18_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle18_02')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle18_03')); @@ -603,9 +603,9 @@ export default function UIAttributeFontInterface003() { await button1.click() for(let i_02 = 0; i_02 < 6; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==5 && i_01==1){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0300 finish.`); done() @@ -626,17 +626,17 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0310', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0310 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle19") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle19_01')); let input: Component = await driver.findComponent(ON.id('fontAttributeAndStyle19_2')); await input.click() for(let i_01 = 0; i_01 < 9; i_01++){ await button.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_01==8){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0310 finish.`); done() @@ -654,14 +654,14 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0320', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0320 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle20") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let input: Component = await driver.findComponent(ON.id('fontAttributeAndStyle20')); await input.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0320 finish.`); done() }) @@ -677,17 +677,17 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0330', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0330 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle21") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle21_01')); let input: Component = await driver.findComponent(ON.id('fontAttributeAndStyle21_2')); await input.click() for(let i_01 = 0; i_01 < 4; i_01++){ await button.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_01==3){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0330 finish.`); done() @@ -707,15 +707,15 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0360', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0360 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle23") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle23')); for(let i_01 = 0; i_01 < 9; i_01++){ await button.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_01==8){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0360 finish.`); done() @@ -736,21 +736,21 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0370', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0370 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle24") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle24_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle24_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle24_3')); await button3.click() - await Utils.sleep(1000) + await Utils.sleep(500) for(let i_01 = 0; i_01 < 4; i_01++){ await button1.click() for(let i_02 = 0; i_02 < 9; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==8 && i_01==3 ){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0370 finish.`); done() @@ -772,21 +772,21 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0380', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0380 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle25") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle25_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle25_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle25_3')); await button3.click() - await Utils.sleep(1000) + await Utils.sleep(500) for(let i_01 = 0; i_01 < 2; i_01++){ await button1.click() for(let i_02 = 0; i_02 < 9; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==8 && i_01==1){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0380 finish.`); done() @@ -808,21 +808,21 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0390', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0390 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle26") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle26_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle26_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle26_3')); await button3.click() - await Utils.sleep(1000) + await Utils.sleep(500) for(let i_01 = 0; i_01 < 9; i_01++){ await button2.click() for(let i_02 = 0; i_02 < 3; i_02++){ await button1.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==2 && i_01==8){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0390 finish.`); done() @@ -844,21 +844,21 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0400', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0400 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle27") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle27_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle27_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle27_3')); await button3.click() - await Utils.sleep(1000) + await Utils.sleep(500) for(let i_01 = 0; i_01 < 9; i_01++){ await button2.click() for(let i_02 = 0; i_02 < 4; i_02++){ await button1.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==3 && i_01==8){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0400 finish.`); done() @@ -881,16 +881,16 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0410', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0410 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle28") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle28_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle28_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle28_3')); let button4: Component = await driver.findComponent(ON.id('fontAttributeAndStyle28_4')); let button5: Component = await driver.findComponent(ON.id('fontAttributeAndStyle28_5')); await button3.click() - await Utils.sleep(1000) + await Utils.sleep(500) for(let i_01 = 0; i_01 < 2; i_01++){ await button1.click() for(let i_02 = 0; i_02 < 2; i_02++){ @@ -898,9 +898,9 @@ export default function UIAttributeFontInterface003() { for(let i_03 = 0; i_03 < 9; i_03++){ await button3.click() await button4.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button5.click() if(i_01==1 && i_02==1 && i_03==8){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0410 finish.`); @@ -924,18 +924,18 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0420', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0420 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle29") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle29_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle29_2')); for(let i_01 = 0; i_01<9; i_01++){ await button1.click() for(let i_02 = 0; i_02<5; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==4 && i_01 == 8){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0420 finish.`); done() @@ -954,15 +954,15 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0430', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0430 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle30") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle30')); for(let i = 0; i<3; i++){ await button.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i==2){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0430 finish.`); done() @@ -981,9 +981,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0440', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0440 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle31") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle31_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle31_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle31_3')); @@ -992,13 +992,13 @@ export default function UIAttributeFontInterface003() { await button1.click() for(let i_02 = 0; i_02<5; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button3.click() await button4.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==4 && i_01 == 2){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0440 finish.`); done() @@ -1017,15 +1017,15 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0460', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0460 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle32") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle32')); for(let i = 0; i<5; i++){ await button.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i==4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0460 finish.`); done() @@ -1044,9 +1044,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0470', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0470 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle33") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle33_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle33_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle33_3')); @@ -1055,9 +1055,9 @@ export default function UIAttributeFontInterface003() { await button2.click() for(let i_02 = 0; i_02<5; i_02++){ await button3.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==4 && i_01 == 3){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0470 finish.`); done() @@ -1077,9 +1077,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0480', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0480 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle34") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle34_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle34_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle34_3')); @@ -1088,9 +1088,9 @@ export default function UIAttributeFontInterface003() { for(let i_02 = 0; i_02<5; i_02++){ await button2.click() await button3.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==4 && i_01 == 1){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0480 finish.`); done() @@ -1110,9 +1110,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0490', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0490 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle35") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle35_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle35_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle35_3')); @@ -1121,9 +1121,9 @@ export default function UIAttributeFontInterface003() { await button1.click() for(let i_02 = 0; i_02<3; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==2 && i_01 == 4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0490 finish.`); done() @@ -1143,9 +1143,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0500', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0500 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle36") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle36_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle36_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle36_3')); @@ -1155,7 +1155,7 @@ export default function UIAttributeFontInterface003() { for(let i_02 = 0; i_02<4; i_02++){ await button2.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02 == 3 && i_01 == 4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0500 finish.`); done() @@ -1175,9 +1175,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0510', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0510 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle37") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle37_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle37_2')); let textArea: Component = await driver.findComponent(ON.type('TextArea')); @@ -1185,9 +1185,9 @@ export default function UIAttributeFontInterface003() { for(let i_01 = 0; i_01<5; i_01++){ await button1.click() await textArea.longClick() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_01 == 4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0510 finish.`); done() @@ -1207,9 +1207,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0520', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0520 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle38") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle38_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle38_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle38_3')); @@ -1222,7 +1222,7 @@ export default function UIAttributeFontInterface003() { await button3.click() await button4.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_01 == 1 && i_02==1 && i_03==4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0520 finish.`); done() @@ -1242,16 +1242,16 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0530', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0530 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle39") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle39_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle39_2')); await button1.click() for(let i = 0; i<5; i++){ await button2.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i == 4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0530 finish.`); done() @@ -1270,9 +1270,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0540', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0540 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle40") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle40_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle40_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle40_3')); @@ -1282,7 +1282,7 @@ export default function UIAttributeFontInterface003() { for(let i_02 = 0; i_02<4; i_02++){ await button3.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02 == 3 && i_01 == 5){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0540 finish.`); done() @@ -1301,15 +1301,15 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0550', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0550 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle41") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle41')); for(let i = 0; i<5; i++){ await button.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i==4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0550 finish.`); done() @@ -1328,9 +1328,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0560', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0560 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle42") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle42_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle42_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle42_3')); @@ -1339,13 +1339,13 @@ export default function UIAttributeFontInterface003() { await button1.click() for(let i_02 = 0; i_02<5; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button3.click() await button4.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==4 && i_01 == 2){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0560 finish.`); done() @@ -1365,9 +1365,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0570', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0570 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle43") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle43_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle43_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle43_3')); @@ -1377,7 +1377,7 @@ export default function UIAttributeFontInterface003() { await button2.click() await button3.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==5 && i_01 == 3){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0570 finish.`); done() @@ -1397,9 +1397,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0580', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0580 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle44") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle44_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle44_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle44_3')); @@ -1409,7 +1409,7 @@ export default function UIAttributeFontInterface003() { await button3.click() await button2.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==5 && i_01 == 1){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0580 finish.`); done() @@ -1429,18 +1429,18 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0590', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0590 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle45") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle45_1')); let textArea: Component = await driver.findComponent(ON.type('TextArea')); for(let i_01 = 0; i_01 < 5; i_01++){ await button.click() - await Utils.sleep(1000) + await Utils.sleep(500) await textArea.longClick() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_01==4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0590 finish.`); done() @@ -1460,9 +1460,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0600', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0600 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle46") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle46_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle46_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle46_3')); @@ -1474,7 +1474,7 @@ export default function UIAttributeFontInterface003() { await button2.click() await button3.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==1 && i_01 == 5){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0600 finish.`); done() @@ -1496,16 +1496,16 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0610', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0610 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle47") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle47_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle47_2')); await button1.click() for(let i_01 = 0; i_01<9; i_01++){ await button2.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_01 == 5){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0610 finish.`); done() @@ -1523,14 +1523,14 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0620', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0620 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle48") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle48')); await button.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0620 finish.`); done() }) @@ -1546,16 +1546,16 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0630', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0630 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle49") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle49_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle49_2')); await button1.click() for(let i_01 = 0; i_01<4; i_01++){ await button2.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_01 == 5){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0630 finish.`); done() @@ -1576,9 +1576,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0700', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0700 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle50") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle50_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle50_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle50_3')); @@ -1588,7 +1588,7 @@ export default function UIAttributeFontInterface003() { for(let i_02 = 0; i_02<5; i_02++){ await button3.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02 == 4 && i_01 == 8){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0700 finish.`); done() @@ -1608,9 +1608,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0720', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0720 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle51") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle51_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle51_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle51_3')); @@ -1622,7 +1622,7 @@ export default function UIAttributeFontInterface003() { await button3.click() await button4.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02 == 4 && i_01 == 2){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0720 finish.`); done() @@ -1641,14 +1641,14 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0740', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0740 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle52") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle52')); for(let i_02 = 0; i_02<5; i_02++){ await button1.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02 == 4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0740 finish.`); done() @@ -1667,9 +1667,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0750', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0750 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle53") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle53_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle53_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle53_3')); @@ -1679,7 +1679,7 @@ export default function UIAttributeFontInterface003() { for(let i_02 = 0; i_02<5; i_02++){ await button3.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02 == 4 && i_01 == 3){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0750 finish.`); done() @@ -1699,9 +1699,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0760', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0760 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle54") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle54_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle54_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle54_3')); @@ -1711,7 +1711,7 @@ export default function UIAttributeFontInterface003() { for(let i_02 = 0; i_02<3; i_02++){ await button3.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02 == 2 && i_01 == 4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0760 finish.`); done() @@ -1731,9 +1731,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0780', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0780 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle55") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle55_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle55_2')); let search: Component = await driver.findComponent(ON.type('Search')); @@ -1741,9 +1741,9 @@ export default function UIAttributeFontInterface003() { for(let i_01 = 0; i_01<5; i_01++){ await button2.click() await search.longClick() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_01 == 4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0780 finish.`); done() @@ -1761,17 +1761,17 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0790', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0790 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle56") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle56_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle56_2')); await button1.click() for(let i_01 = 0; i_01<6; i_01++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_01 == 5){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0790 finish.`); done() @@ -1790,9 +1790,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0800', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0800 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle57") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle57_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle57_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle57_3')); @@ -1802,7 +1802,7 @@ export default function UIAttributeFontInterface003() { for(let i_02 = 0; i_02<4; i_02++){ await button3.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02 == 3 && i_01 == 5){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0800 finish.`); done() @@ -1821,15 +1821,15 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0810', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0810 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle56") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle58')); for(let i_01 = 0; i_01<6; i_01++){ await button.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_01 == 5){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0810 finish.`); done() @@ -1848,9 +1848,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0820', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0820 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle59") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle59_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle59_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle59_3')); @@ -1859,13 +1859,13 @@ export default function UIAttributeFontInterface003() { await button1.click() for(let i_02 = 0; i_02<5; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button3.click() await button4.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==4 && i_01 == 2){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0820 finish.`); done() @@ -1885,9 +1885,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0830', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0830 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle60") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle60_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle60_2')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle60_3')); @@ -1897,7 +1897,7 @@ export default function UIAttributeFontInterface003() { for(let i_02 = 0; i_02<6; i_02++){ await button3.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02 == 5 && i_01 == 3){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0830 finish.`); done() @@ -1917,17 +1917,17 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0840', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0840 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle61") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle61_1')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle61_2')); await button1.click() for(let i_01 = 0; i_01<6; i_01++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_01 == 5){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0840 finish.`); done() @@ -1946,9 +1946,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0850', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0850 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle62") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle62_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle62_02')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle62_03')); @@ -1956,9 +1956,9 @@ export default function UIAttributeFontInterface003() { await button3.click() for(let i_02 = 0; i_02 < 6; i_02++){ await button2.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i_02==5){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LINEHEIGHT_DECORATION_LETTERSPACING_0850 finish.`); done() @@ -1975,9 +1975,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0020', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0020 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle63") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0020 finish.`); done() }) @@ -1991,9 +1991,9 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0030', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0030 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle64") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0030 finish.`); done() }) @@ -2007,15 +2007,15 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0040', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0040 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle65") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button: Component = await driver.findComponent(ON.id('fontAttributeAndStyle65_01')); await button.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0040 finish.`); done() }) @@ -2029,21 +2029,21 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0060', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0060 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle66") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle66_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle66_02')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle66_03')); await button1.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button2.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button3.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0060 finish.`); done() }) @@ -2056,25 +2056,25 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0070', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0070 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle67") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle67_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle67_02')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle67_03')); let button4: Component = await driver.findComponent(ON.id('fontAttributeAndStyle67_04')); await button1.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button2.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button3.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button4.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0070 finish.`); done() }) @@ -2089,17 +2089,17 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0080', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0080 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle68") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle68_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle68_02')); await button1.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button2.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0080 finish.`); done() }) @@ -2113,13 +2113,13 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0090', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0090 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle69") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle69_01')); await button1.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0090 finish.`); done() }) @@ -2133,21 +2133,21 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0100', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0100 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle70") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle70_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle70_02')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle70_03')); await button1.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button2.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button3.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0100 finish.`); done() }) @@ -2161,13 +2161,13 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0110', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0110 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle71") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle71_01')); await button1.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0110 finish.`); done() }) @@ -2181,21 +2181,21 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0120', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0120 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle72") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle72_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle72_02')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle72_03')); await button1.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button2.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button3.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0120 finish.`); done() }) @@ -2209,25 +2209,25 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0130', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0130 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle73") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle73_01')); let button2: Component = await driver.findComponent(ON.id('fontAttributeAndStyle73_02')); let button3: Component = await driver.findComponent(ON.id('fontAttributeAndStyle73_03')); let button4: Component = await driver.findComponent(ON.id('fontAttributeAndStyle73_04')); await button1.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button2.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button3.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) await button4.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0130 finish.`); done() }) @@ -2242,18 +2242,18 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0140', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0140 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle74") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle74_01')); - await Utils.sleep(1000) + await Utils.sleep(500) for(let i = 0; i<5; i++){ await button1.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i==5){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0140 finish.`); done() @@ -2271,18 +2271,18 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0150', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0150 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle75") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle75_01')); - await Utils.sleep(1000) + await Utils.sleep(500) for(let i = 0; i<4; i++){ await button1.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i==4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0150 finish.`); done() @@ -2298,16 +2298,16 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0160', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0160 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle76") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle76_01')); - await Utils.sleep(1000) + await Utils.sleep(500) for(let i = 0; i<4; i++){ await button1.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i==4){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0160 finish.`); done() @@ -2326,15 +2326,15 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0170', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0170 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle77") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle77_01')); for(let i = 0; i<3; i++){ await button1.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i==3){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0170 finish.`); done() @@ -2352,13 +2352,13 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0180', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0180 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle78") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle78_01')); await button1.click() windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0180 finish.`); done() }) @@ -2372,15 +2372,15 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0190', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0190 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle79") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle79_01')); for(let i = 0; i<3; i++){ await button1.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i==3){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0190 finish.`); done() @@ -2397,15 +2397,15 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0210', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0210 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle80") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle80_01')); for(let i = 0; i<6; i++){ await button1.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i==6){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0210 finish.`); done() @@ -2422,15 +2422,15 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0220', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0220 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle81") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle81_01')); for(let i = 0; i<6; i++){ await button1.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i==6){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0220 finish.`); done() @@ -2449,15 +2449,15 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0230', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0230 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle82") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle82_01')); for(let i = 0; i<6; i++){ await button1.click() - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) if(i==6){ Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0230 finish.`); done() @@ -2474,17 +2474,17 @@ export default function UIAttributeFontInterface003() { it('SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0360', 0, async (done: Function) => { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0360 start.`); Settings.createWindow("testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle86") - await Utils.sleep(1000) + await Utils.sleep(500) let driver: Driver = Driver.create(); - await Utils.sleep(1000) + await Utils.sleep(500) let button1: Component = await driver.findComponent(ON.id('fontAttributeAndStyle86_01')); let richEditor:Component = await driver.findComponent(ON.id('RichEditor_086')); await button1.click() - await Utils.sleep(1000) + await Utils.sleep(500) await richEditor.inputText("999999999") - await Utils.sleep(1000) + await Utils.sleep(500) windowSnap.snapShot() - await Utils.sleep(1000) + await Utils.sleep(500) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_RICHEDITOR_SYMBOL_SHUFFLEEDITING_0360 finish.`); done() }) diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage03.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage03.ets index c299df16..5cbc02cf 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage03.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage03.ets @@ -25,7 +25,7 @@ struct fontAttributePage03 { Search({ value: this.changeValue, placeholder: 'Type to search...' }) .searchButton('SEARCH') .searchIcon({ - src: $r('app.media.icon') + src: $r('app.media.big_icon') }) .width('90%') .height(60) diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage04.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage04.ets index 3c124c7e..a68b1334 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage04.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface02/fontAttributePage04.ets @@ -25,7 +25,7 @@ struct fontAttributePage04 { Search({ value: this.changeValue, placeholder: 'Type to search...' }) .searchButton('SEARCH') .searchIcon({ - src: $r('app.media.big_icon') + src: $r('app.media.icon') }) .width('90%') .height(60) diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle04.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle04.ets index 83353e72..f682983d 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle04.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface03/fontAttributeAndStyle04.ets @@ -22,14 +22,18 @@ struct fontAttributeAndStyle04 { build() { Column() { TextInput({ placeholder: 'please input', text:this.text }) + .id("fontAttributeAndStyle04_1") .type(InputType.Normal) + .copyOption(CopyOptions.InApp) .letterSpacing(3) .width(240) .height(60) .margin({top:50}) TextInput({ placeholder: 'please input'}) + .id("fontAttributeAndStyle04_1") .type(InputType.Normal) + .copyOption(CopyOptions.InApp) .letterSpacing(-2) .width(240) .height(60) diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/integer.json b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/integer.json new file mode 100644 index 00000000..673a4b87 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/integer.json @@ -0,0 +1,15 @@ +{ + "integer":[ + { + "name": "0", + "value": 0 + }, + { + "name": "20", + "value": 20 + },{ + "name": "50", + "value": 50 + } + ] +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/string.json b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/string.json index fd14c372..273e23b0 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/string.json +++ b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/string.json @@ -39,6 +39,18 @@ { "name": "span", "value": "span" + }, + { + "name": "test_value", + "value": "-10" + }, + { + "name": "TestAbility_label_p", + "value": "100%" + }, + { + "name": "abc", + "value": "abc" } ] } \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/media/big_icon.png b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/media/big_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..7a32b59293c29076b7ff37af37dc09318aa26462 GIT binary patch literal 27877 zcmV+5Kp($}P)=03dkVGiWXo9XK5VeMP4*kkwA%v5*~HFtB5 zKq3Ng4*(JV<+BWjFQ$vBekvj=Dk8iyP{+T-@dN6#Xj7ww&;*(YE5HiMDg~hyF6^pXo$k}KXB+e5%=w*(lCo%hj*jiJzXaNu) z5@n~IvD3=vW)Y8iF$cqlLcweKtvMsKKXINL&4SHVh5)M29Y*Z+V-AN=wf!0@tZ4b< zP{4=JCjSPHk^vcz0~tbwj{gpTfphdC@%<#CcdL>2ZnyGYcO*yOcH_gR!{iX<5akHy zkj*ML{8ssX!C0=rqj+Te?;OZc zauLbJ7r7uAzQ_xWhu$;7GsH0hh6sIP`oIwp`zZT>NhAfw)H$Nh5e*K2lg0GNtK;n? zj#U~sZldfUY~$HR*ao%{ZUQ$^Hc;w79V!!BCeL3H5HF%2UPY=yXL`js-?+Z;%(pRj z84LW`C0~BIr|U84gEv$DIr?Gt!jZ*}?={{qb#eP3P83e+3g76r4 zgy#{$BN84F^DSLQEQ#X`{Eu2^i#1}_fK?J!DA>XC9uc>Il^|WLqO1WOgbqpzQ#F!` zS}}%+2|5uG^I zD2UFONM=^136DnMUI|JEVGGB5c#cpGfyXrXn*U9|A>#-*B*(UqkIT_2;2$RHWH+bD$e5hw?TPcVu|m%dtDX595ki~eOAQ7>EKh>6(5aT~{dJRcBq z7hwlwJE$NXY>Tyi$#q*|iMIvySGCF}MKEm^3;8Wlpu#T_>EG38~mY5&~(y6(j93t!iUl8$6xbd#ykk9pq zhh+Sp6qq;B!fetDC60gf?@6;0>VJ8}jgwY>XOPR?-Z1)TRPYhPZVYA zLrAeX^Bxf4*~W1n;XValaFeh3UwB530sofaqN=e_;@I1x)__hFaTnarMEKO9ALHdC zppGM|_)#pe#1bz@4cjbe_yEvqFA`y3a)9mJ1@**b!%mC6;)7 znDb+KW~+m8%b^=dEJcJUQnY)mHupZ?fBF~Jdi+A>vhy-O;ux_SoVPy0^Hbnwquky0 z>NiA5gDqo;C6-tm9FRECjnw(S64)wKw(=xt`%e73TYB=B4Cq* zkMR5q_&eZla~1JQ#RYeXC6-tqA|Q%{Gk2&l?7-mL@cUR;Zm1|IkUkAO=ij{iw(Y_Q6= z+@Qt}iTEi)z7OmmtWNpnFAbqfEOEJ*I{mA4@OAHH#}61V01Ene4*6W4vd1C+Rxa%C z@oL1;qKW5ygpcX*6W}x8HcDq{0$pN>w+If4Mdn@G59B^08aVpI3=n=xi{JAKj$#)h zj(@2!TO<_RAmJmFzoy^^c%241tyx7H6{j_rmO?)v$ef`eOE4a2=|B;C0dm zmtFRyw!ggn8RhFG^}SaAa!Kv4#)#7C@xJhJU#-Jzxqu3IuMN$#K}Lg!0~|vNJO%sw zy$*Ov#y_0jN$g_8@fmFrHgSAR#%DNwju}EHHVwrBsg;dj(vd~kfu%in-l|OH-s&rp zHGEY4d|dv#aRzz$7qx%hbtr?_$#l8nekea*MA+S#NDMJ!2&NIau3fg&-n)q&Rf*Qh@+s5vP;7E zaD0aHFPKFCo?7jy*SGWQbGXpnw{EcUD7c4?tKw%i4cK)XV;&l&R&M9SJj#>yX@KW-b5W<^iVFd{j-~E zW$5TdOY7tEWO{U7mYD(0juA0yURoqxH2zKUpPI9++*4QN{q87!@OYoUg?gyWH;mo2#c z0ZuHGcN{6h!f~8g`zI3D0#L5FPHC$!PKu^5%!TgA(a#s#enD|!&t36EPU#npqfumK zFA|~siL-<+k@MsVnTKKS=w-sFm>f)3lRP3tR!81_Jo5es@jPe$5wA`h>iE}0q_q2a zaTnpUOxy=OSaEzuERBkdBXLSIQ9RJi9VeM%lncXru{I8elB-8id~Aa!D}j?J6de}1toHjL`veI5qk!?k@iWp;1D#S{b}ThBBd4! znL_4m(LNbD`qK-Cv!BU|M?NSZN8?AZ^(+2fNBrQ$S>#?!9G_DsXA{TWVJ;64dEn4( z!PVV&b$Eq1Mum`j6Ol%RFvu^DIN}JB!sA4UM9Dmia$!(*+=7jxf->?I#xHEOD;7x{ z72{wnH;D^OWX}p=n7hTdKOhoi3y?-WsT3ERNg12;*pgpg0GG zDx<_xg!YdL$6(PCM`*u#7$u(EhqApe4D)YrhQ#HSx+1r{2`UdLc)$mINtfq9_pG8` zOdKN`#BAevkSh;>2Ou3Rr2C6eDv}Dr!Um3436s`HV@w&y#sM9`uUd&Mv(N1P-dYv2L^@E&lhTq9=G2|G9m3yk5K`G>hrJ8J`lrOWM%}OQHNmbz#KVuflrAT0?$C7 zpS3l6263qH_c%POL_7d~g0hPcpS#^>j1ecs#!{{OBKop&?^DBe_KnM!yJcM}eQ;_# z&$GN4VeU<}ziK%bDeWF-@3hUYP)@bK`qAun7SjIkoSn?v{<6kfrJM^tezA^ zkN<;y^^2#8qrnPrn~3*;ZIpE^zQ&@Py~GkryjeJe28u(tMa26!9wI!1ml21uO2l21 zd%!J()yt{#5=$)cMq##&Ix;qvzE93W9DU$%^{c0eqsAIJ9|HG~nWWE4EV0CO!3uB> z$5Z??X~0?Du{j$!K18^OE~Sknmbj)^2^{bMVPp0~lQ=$CN0$al1II0tUEn4{{{dODu6s(Ex5>d~lm4 zw@Fzc2pcAG91+oCC46ZsY{|4)CQ({qiR+34bNF0GxQTEZN5+u_`*GnbF~SIrG;Y!SVw8HB#tGPSOV;*z0eH*S|OqZ zG-DE42+iQ^Rmbcb%iWYEmRO?PT}i@DYZIYKLd(REf_7k)k~o%!=$BYx34$+2f-yn^ zQ(M|G!U_>>lp4w;!rc-}EU`q%2Nt8FhIy2)#CTQ_I+%yp5=$(x#EVcv>7evV=Z+4{ zDauzhWmcK#S7n@VdZ9^|tJ%surz2`tQ+X|lB&+Sy@IMt)^>UJKSF)9#S+7O6zbvZ! zpDK!8Zu`sErz*vZ`)3|ymoK$Uu&$NQbb-NED|MJ@UnN_~bUL|p8LfEc`JY*-vVUN{?Jp;)SP?~-nB$+~tfX|8&CJ@lfBbSdDLl1@39%S2te_~(CCc3cV1<8u3c zO6(1Fc=h&&bdjkbZGpNfc$B{Pbg ztyYoP-}6<%+8<%r%1cS7P`iIK^)_r4(EeEnO6-(TA$S$)k+PZ==VF4gABzgAuw9f(I`6ptT3^Q*g z0w<8h(5`usGFAKq+aJbFEFyJLZN{Bi(Nxuj;1a#qylro~Vu`t0<&MRkgM{r!-Pe8ZV~(r=jC)ZmLQn^2AfAIcCbP{Ig7x znS0BImxcNkp)D^m7f6^eu^4IhGDsuq&&WY5^)!;jwqMYYqCknn^5!bGXvNWDbrlKY zKN2O5lw3;<15&3%sgB!kL~#E0hx;T74H3=aR;o=8by1B~=MaQrJb6pK);cZ{C5omW z_q>TiDx_6arM;F!rqlv)6t7WsY5c0LjFCVRTRRhHgViJnhZ70pV42LVZPv znM|78Pu?$+{FH=vmK0Ko#HCF^0Tl@kU8%(;!oF_%&)G`=FExatI_IR756=icM~rB*~g{yGxYqPa{tnEmq`^UMn`PVZ@P&P1wAY*)M=95#>RI&OB&g6FQBcl`5MJSZ_dqqrg#*U?ugmQ>7L`J+kt% z!hWBH+@8bS{vHlszYoVl=w;9k_jeH_GLb|k?Vhy19GjUJMk?dg*@>+>uhaeu^_5!Q z(%jp?O~fRSs*OXLNEca9@d|I!Rx^f94b~d4R=2*b#gGP4P6DAs5`G_~y~0~R9*%^A zp>WU__WO{lj_pn^^he}`*iA_Ib$g@yy)BrG6K+QWHK(}KnH1*=S9$(JFATkmjij+a z5_uwwRQ*(qUk)PM}Y!Tf!D{)j+xx6sj zO2GwI+)5>cVOG!tmoV7(!1x8Y_7JPwbenJ8;D$4csHL{N{XiDQ^!NvSjF z=kTltPfqOb;Q)>X6Ul~B?=PmR5?0Vj`-{-FGK>?d6a@?~+WuEW*;P>xe+m_f7f9+R z4MHQfNxV{r)jDi8;bsfATJ~8ZF-fErPlzLyK)#_bN8b8yzb_mNgvTes<1U;Gge>=D zxsg<6;uv{esfWx|>NVP4ZNFdyvS<^BV{*vM6XJe`LJI{7A*Z^*b1~vTC06HZ6cq8J zC9HntENt84VBBE2ghvPv+ zcj#=(OkPrU)hJ!PfH;Ci9a?p`5eD`~kTN!!Iv(sv1ZgDHVzB`qMP{>*AWm1V%)=nF zjN;Gx@T_aZ@w{?9>%mbUj{7hiRqAMl4M1^fl3hJj>NUkVQ;+gOI2kzlqjR?ZH6fy` z)eF{Y1;fH|Fo@`l+^OWTwG`S7Ba0hNxY2;kmXXG0)B16Z0Pn1!M49tzeKj4hIpv ze6dHsB&ceMQ(ARTv*yWF$-I!|!f+Ik<+f3v7kvIfJBU=NiQwbs{iu$)o6jc(hcc$L zG*WJ~3UbW4d^mJunPW7P>1~90A(ZP-I?aMkzb2ehT8XC-D_NnOjD)>j zgakP`a)NWP8dQ(<7TjBh57yyk=*!I}Y&2oLZc;`qNF*=X5Gu5^3rzxMmi_qfSorb) zzBmwMAC3#?4xvAU-mogZGZ~i`*?B4-q^(@U@udC3430;R{lS96+yqgw9(&>_W38ch zZ#~h^9Y_6$?l77R&_T+JJ%RTf)c-A>;K}YiuN*@d*!Y{UVR|*CXNcmiGHiq zDrLFv>bMyRLx41~>sAYHx8e2*++H)%xYah&=+sPAX$7^Vm74f{UQ&0M_$@K4)gTq< zq_zUz>A>Ap_~A`>bOa9%;NcNGJhrPlg5GFaeL3AB=WPGH;A|WZg9_ojJ^yCI>=(B? zp&wUZXAQPjV5@0TN2g|l+e)FCnzRwSmseSs>`awtB|y{2X{81`EAYW4e0l;84=a6n z0*|{e%4{cR?BRM|>7(-fa;ytXb`Zx>;Uyq+)G1Sdo4GDV9AHt;6TrtX1WGtwwZyHLdr^5hu4K7>E)!9P8M;t@PMvH@S58Y$C-=p_<| z`OgI6$c;E+fleJZ+wh}p_-q?K+=M%UfJ>=j)`z8PynGpPxbc_lo6XczoVA9LM(%^b zIfJhb;Lm&T+h_30N6>o$-7e&#U<0ZW#>)!VNxPj>B4>kWyoFr$`DGxoXI-_m$n3&# z(Ya^D;iwQtg3M9kpjx3&yHYa=*Qp0GPgG1NTQRrVwh|`pEXm@04I6hwr9QJ!lvKe7BB{qV8QOJInYP;S=Vx|3IflcY zk&O3d3@#_&xUjR@KTm|d)UZq96&fk*t{N%a+ceVsc+*t8-4#>sR_ha@cvaKOM9Q4p zz|C}~s!1}rHz}ljSJ=<{(_L^)NR~QdjOn=XmJ*l6)D380# zSIPa@G(k)g$G*(@2N-{&6*ag*?5FRQMU2MmLXveC2^e|Hsrd>ekeZG^m9 zpQs|yYY@go5s4AXM#FY%Hku|q{&*Yy@mu(11OD_3zBzzlpP+Mai5>XX!lA^7xtS+{ zJj`5nT{|a`MlCYYc6Sv%xdlJmhQHpmtDV}a8DDZ>#qmli&~QdtYk@eFiEl$JkYz?1 zQ3$L#3Ue7QuUK!q0Xh9^4S_u1{LFa$8|x~N29RS@#czo zd;awu_?tWMy&LAxb=jiyd2v>~+BLYhZld@~0ymrR#lEeWhXb=WOvR&kUCbJl)pkwp zt-}W!@RMEPgUyJoHZ&49-~zeQ@GhZ~!o5}V{kYYDyB+v{B6A`uiVAVe^GTQeSgFJJ zx8U#IhacV)KG+ae8@8IiOIWMJ_cmcA4V)F+5|<2uzv4}vaU&No zsp9@7{OGo=lAmn7y*7=Dz&U89LNgWKTU9>Uf|CI}ITXI!3v<0xSzcv}u|gUV<`Z$N z4L`hPJ})2NupN}EfLd&Z((MjBK7pq_lQeoGIOv5TRXuEY9iS$0TsvtaP0Wq_&IbH+ z$Lt!rD{s1Ti@|17`2I~Z=si4wZ;s(;2*=^5{wqEC(jDKM2WzJeA8x^CxBd?tMF0RG z07*naRE<2g-qPKZ*Trtf>|g5bl=8EFIE7oPELVRPjb+rBYo?}1AdXfG-rInm1Y>9` zebbd&3^tp#L*NzuxCg)62R(pZKM=>O!h;LDDBJ5s9G~8XA8kzs8M;c?SuqdTT;Y!g z@Vf)hzMT`&QhK}E7<;gkuIBE_8%Tq+;jmM#_iw^SH%!DXox83MChI`tOr2P(+kvv5 z?81Kq_PTcX?37c}ccJR{61-J+f*bjRO;~T5|Hf5C5Q(gZ240?l?95B2p zF#AT3I5b!}<`Bc@U4RqQS3li0=dK&gNt}nPj7|y0tM^!h(-pZItmWR4m+IvkrIGCr7$lSA4LSNWy7QueQDT z!3LmqlJ@w!0svJJ$fXgPxc=y*1cgwQ!F8VIYocptfB3Y2(#a28Zo1e7IpJAIq?QS6!-{MI_b_ z4}!$ie1)Z>nV3udgAKdag42b(btwIS(#W=+A8f#OGbCTWh}!oK}AHUqwJf?dm<3Ub}nVJISJBy-H4+c zH&KYhwzC2oE!$<1C}?zxj(_roab+cr(kLpJKDtsfiQ{(5PCQ;!C#9D`Fu#=>Ay7>j zbHX`JAATzlY#WiY?>6g}&frGN?seUWqeSFvTy3}QFkh_}h(m%w{t6REJR8X7wNY^r z8o$)(YhgNI<=$lqzNRZPtl4DQYTJr=T?e~}9o$-Ln8Vgu6IL2_mL<DzMWE7gd12=>*6Vg{w{3-7uTRn$Tt}4AuD~Y#cH4HBG=pv#pr+b4mAECXCTxe? zGHW4Vb8?9Ro8LA#v9Yw#FjZxv4V`1#ts3S`8%h_sV3wGfcc-S}Jc(nGe&#Z+rBv#B z8Qx}=&mt=lD4_YzRSejbOE=>~=iQR+Q8$`*>Ds1@+kDfvsjv zD_QV%OCb5gDXVpxdo@++vCX}@Q-(GFO2L+G`L`d4LcG%%Sr~nt(}9%=(KQlJGw~?a zn0D+f)4IYUi9=N_0kJBpHDM(c+9|XX^Ax>4$AMoAi;7+nhv%s4IqWHMY`ZL_W1RP9 z`^atkCoVYV#&#B3+}Nn{+%fG z*e;LFw^rm?i5shF0EFHIY1CN^hqi*uo^(_{$3;+0w=^8TSiB znN3e+JogGUXSBlGF5{?>S0avCj)+g4=9>p`gnQ;y9V=A4yvAkCn>c3LqgYPWw=sR= zn}!o30_SAx`$EBV(k3rs;vf*m(!TK>2op8WC*Gr_Gh(*rGb|y1w4*Zjut%5s$sBy8 zyauzxvDp2EYVG8VYmu-rRE0wI%DVu+3Pc3w&Yvk>B==39qL+hcfBdVekg^`D0Fc8gc_h^YFDk#D@8+o%ST=fBVrHR9dNgSixa$n@(#NwEN zmssL8P?cVDZ-**}MevNi;vV@|){oL*MnBb%vM)D3gh3uumN#9&C9VX@xGz~@5#tAW zAdbtlg}wn?S>hN=93gaIKZ8L?*O%*Zhh>TRpxka96_&xi9~P#ojw`9Em@|&$|Hu^% zhw!Widwn<@05yvWw!{*z1Ft4w^fNftr`g$#2SZa=9v+(nQk1^IO9ENqqA0^gcsL%w<73$G zTDU-;gM>3ZSNUwzl_ic6V*>G}ru=E&Y#rCZ^1Z}jk$ZUFhd=Ja;~osJf&WH{E4iyu zMHCKYdF&zUKJ0BTiDQY^NA7JA`qLgfDTyQITDaz4dE#)v)`7xN-<)(F9>SyJkl`(X z+LiBxCFY4?0lmz|&^Jf$<$*0qV~OL+%kkHQI1*>8!%5#9b-p=(FAj__wmVDWSmI(B z*_fNZI%Tpg6bY6=g-kx3oj9>VXRTNbW%&C>XlxXN2-OS~RRZ{zL= zzCN-s^z|X^bxjJvfn0INuM*clsG5fN@a-}D<0JUZb2u0*-OraeKU7V+_}z2(FOT5c zBZ~rm-Eie4j#+p$;>aGtW(z*sULLhy;(RD~?+=E7I3B{Yp>iuhi+~MwX&Q^|IHFdxUvFHGV@_r zc&Puk1jE97HU4s7r16hm!e916cm|ltBLpUWc!a{)gcS)p5Hn+MAt-YpU}L?yGdw1a za)G$$w(%@+#4;mv&MR1PwZoVM)`>*TA*=GexnW$cPNj~pDySWNize+IYhfT<6O}fnR~O`5N|Y#iI{b5d;n#CROBN z?m2;a4E4y*YF6jQ6gLROiJK_2^CFItguRYcu8_<}rzE6BbYod|naL29DODwMI#Klm zd^D-ZD2Ffi;Xg(2tgGDJP9_U+yb^ey)6ZU}FP}G>}OmtFus@ zm}PRNNI(|0TpGe-vJC*rxn~c?IUPqcteOJPi)n69;@HjCHcG|5ka^G`7dbHrWGvv0 zb+GyBDvnaOlqq%3j-2v+RkgQX#TJ809kQxbPhx>gUx0v#5vto^U+07?PtfaMtR! zRojRmjR`iCcLPO8PuS1kt0VZ$Q~1p@;p;=;c`ryAp*^!wVfo0ku)b*=3cq~{_0$dx zwo*G~9J_Z*DjOBSW|P}?>)`qEQ#_zeECFFfzc*q%`)+&;636?NanwQT|iBBk!YWcBju%0L{#SVLPB_SfLQNXG(K1qf zmx!a6nRNN>u?2Yg;~xC+3H_mx$|o>~@~Q~sI+TtUbRtj936YpxqdRguKZ#A}c+n}wFgcC~@Z<=-jN#i8`27KV zc6*Z0$*ZjcGgaib&)`3Q3%`6QJlcmxdoapn zVlX>T#PYFDtPnvQD=Vp|7AgIajlKQBf*rMkVWS>@aw1W&ktem*n%1r!Z>Qxxpr5b z{brEC{t5i^xAwE|Z^8Gr;LeJLDd^Nr6UduDnQ(lN8{u_FMxf7oX3zTaz^;YJ(oZ@~R^c(4H;hRUO3 zBaQ#?h43H0wlfxc$B+S9N?-8uXAwRxyb(v9!9QaX+0(AQFMxK;Hzszc3H-8=l@ijx z)RHG%_`{xEf7*k;?Ay_UK{&tU1$9X-dtcG=OFvvci)Uw&nWGA^i54@cXBZ zZx4jQD3C@~3_lMlbyaUWF-Jq&ru}tdA3y1uB(}SvtT$l2uI6Dm=Z8JEN$KS5QQ;>> zZVBF!2Lp55dfpYDo(NA)gl~@Fn`7HqdeXJ$=*xVvcNzq9~=YAgO5BAMcH98}pzCU+vkBLbC>~x_K3Dw=E>$&8Bj*QIN!f z4>TV+i-9_}hsfV ziFy@c5hD&aKjJ8Ng@!?o?`JT`l|iBG^^~VQQ?m|wIyuo<+BIGU<-}5pepPsQ-nHvd zSjoRRg8iOyGAO9Uj?4>%pOJUx&}LQhFBt|R=#L=xN*XCi5 zC;^vD)T%h7iI{sZ-I@DkYLZx<1BK^g;873Vp<|fAX^Y*fVf+Xxs!CqiGXQATp;1@M zAfFkT_|nEzB@S3h7_WdOaa;u7F~Gdq1kG~jcHwaW`(5RE*E7r=dp+f(Pt_NAa?g1o z7<63(?KZSJ&`hBj+euEDJ{W-2_(c%tHN%oP=81A51^Yo9husyi!%?xH9ITuA&Abq{kVQ=5NTbQl z#-*XM8xhC0yW$n%8c6AAw+P~ZF)4`)s$*o^qDzjLKbFKXPgEw2IEWKFQR*DjQb^Q9 zY42x#GcS|@lmwzMapKF~4h`h##Ljip6RTF7L8KFhw1uD~&a&_0X_atE9`nPJIOc^j zwzchigHQl263bvd``vkt=8CaT+#32}QR?e0{@FQBX z#$2(qBQLSU5*Nl&;+PkzJ1yZ-4~18}7ra+e zZk;C3YC=1Pn{DA{$Dt~m3}x&9Hnw5T(Q_0g4p4>Ku1e_umV5h5tE4p#GMViUY@)VO zJ1u-?Mc7?&sCRS+Vh&()!dYika$j)(t3jh4yh(GDe#8SgCW4hm3E=h5Zd^kwiQ^(D zSJN{H#KpF@1b2+~N#F6Z5$;7Vx_ zCd5&7IbRaTxv?aU7h%@eS$QvUWz=Z%%4{UiszI{>>r;o^gsp}niDnMD&3UV|)Za(t zS(Op=Gohae505Rj=+}{;UKr#-TPk?<2~#1?NP?$k-9id%we67GomIHME_|>SQA^6R zs`EeOrqx4knMoK~Aw(iX;&^-lH;>^_)A6(+JU?M_$Ss_2$*KziOiLe2GC31V;`lC9 zZ59>(fJO>8+iE87uo4ubwPff!sVnYpKN^{csaLxoM#l?N~i*G=%lKBaWCWX;j-hR#p5Y ziIN?w7X&vxR{!ioczOa)PApX5Hz$*0^+kv?tEDt{-uNWf7)#=K5lYhVlY?osa00d( z$mgTYNg$t%5Xh&ULc8|nlx7p*9bVz_iL$$D646O6?2jyvPoCLIJGIO4vg%eOFHsvj zD>c~Y!1r&$-`<5E-m;ji+Z`cxGM26`AEu94DhN0nSWxCCAsEvi_Mo+AD&tdNGzx)y z!kMG7I=3W`GqEI&S(GAc(A^`uW>+iu43N~Rosi1AM zai|)({nu|Ta@XN7*j@_Gr?P~8iNpwWr3OE`4L`nZ(#H31OhN~i@mSyVyi1(LOL1bv z->F%&`upqf)s0E$z^@N1{^-fT(mobt9M)M|$P&PkI8LKN8WgruvQmfbb@=f%{B#Gt z7beJdXOdsGOfGzBF5WLec{Zb6GeT?EV6zGDuiNL}bYXa8VtR4jc=@GW!96K_EufRT9YETzS2FkIhXHvGz^V&=H~7;5eQ@P?@;KiGo1LGo%PZ%fLEN&BlrK3laSNKd7)d%F#PcmjWD z!s9MHA6POb;OxG+##j0q~D zKHT;v7D#Ha)fOIX+C;m(Vr2R*_Ko>^m>Rd$GUu@}&0`#b|A@fx$gWf8U9K^S#Fu&E z`m$_HFS`F!+2J5qX$&oMd)`~ORrH59jVwOCVT0;z(b-=YPE6O2oY^Jrtii(*3-@<4 z;Otd3^ivs(d3P1=uA7m#eMJ&ZgQ+ds9qXG$0;@IKcDHnylP%xU|K+S^3ojn$Z@Qc2 zIrrj7biVN+s@{}hZa)wbPCL7z>Q>jh&uU2l|UFz=?v|Apq>Ox5F^b~g3dYY&BrtzfNQ&`dP^vmlMs5q!zwQkxWDF*ULgWEtFDaeQynac?bR zrS^_lLNADR3bm;Gt8BGAzx<{kqF}$L;jEF^-x;+<#8&-!q|{?2a-P`bWPZU!TRJR? zm0OE+>{-x^J)Ojnd#SSAg>Ef~dHyNH-7K2=c%H=JP!ea#%E$}DLddw>q%aFdg@*BXUqngj#I*0tX{I zJetWgapW1~BT#SOt;gmSdX*8o$u7}*t5A!C?m*b<*=lz*u!D0^G|7=;(2xcaM3gw3 z*d64;uvjqJjve$A5l`eMCx=IcWvtJE%Er>e5q5S+_V;5c)fWR6kp z7%o^E8A9gE18dgso*mc5cZF{oK(VMGSH`A64aG zI1}Y$9>&qofO_QVqz(moS;Xx$FtCGhh3DFk20-kDPEF|4;Le)x ztZ#?rzC3__8RG;d(e1?&PN$KnDp}zf0;Jn@O4p_v1pS`s-ES8khgd^L>^$ z7Q3Z(mJ7^fx`ElHXox*wF)4Od>{RFXZkYS@ydrVEbExhmp11v1dl&XQAtE?ny$;{o zv?SaA4cI%G3W8Ss#mwu=>bPoIvvY1fb+~pe=gwKYh@afHhriyq-qOYr=SNt3Sgo5! zaX*8-F8unj1yH(9xHRIpEIDJgJk^Ooua?4U1Uswn@g}^tGCBCQ1mFFDuCb(1q8umf z;2hQ;!S9|}#J9tt#eDT4B;(uCRg0Q;S6<@qYN7N5XgBNt)9#v`)418TI1NiIaS_yG z3mci`wi~y*2JX;QmtmQ7>WbsaPaCh0tL?{k>afv<+pBQ9W4h`ROI#GS$gaYNsBr7H z({kK{;Y`%`tBR}bH;h@mv)oQT-e|%H>vnkQU5g#D#M_71!Da(KT!&jts0-$LdkuD= zuKe^VN>!yw9E~M$Eb;n?oh?Eoan#Da*sIPO|9^XD)*Dxr?4iHH*?f)!R(yjozI#96ein_VN0yBiiv zH)^9fwKy-ryoo~eun%rnKAm3I5_74T8q>Jn#%sjN?z`1}lt?T@-0d|B$a8nY2D?3i zZE;aJ3B<7hx7MMz22lsQ>fl$~({?3^qjEXVy=58O>@L$7-09m9Y_yUsZ*i4yVzE}= z4N15*`>+s-qS5E z3ocBiBnre4nL(cO-a>s#u(HIVAs&Jw(yc<5ruiyaUs>@3L8dYg^8mYGr`2jPDno7+BRA=fhaf{Cf7t&S;+HQ1b1el1m@>Z4ZLI0MC;lwLNR+#+u4 zitnc9fe_}|8x)J9Nvu3^c(uG1dAZtm2hIZ@oaEBNLJzzMmY>6(#slxZWvJ#^vEp}B zDqIiZ@b+AX0euyeYJq3ciU@w}oI1Q;ss-vzTjDr_6Y~sK{>(o%#SzUBhqwF^627xayQn4Rj@v{q z#M5!x*dt(>w&*J(E-7W|FQRy2%AtLvC!hv4s%WrBaFP1 zXQ+MGuP?QBZ{Dj?l(snv5Jid;4XG2ASd@;t0=8940a=w@y%|ZZ4q=R6DFx(d;&`{e zjO$*hxfiRrE+ma!N6Eb45fZ0tc0HPac3I{hy;N1j%0`t;l?)r)VI~~Sg?Ygu>*@6* zjgxSqBzSs}F5j1hEJX;To98UWn>=T2Q*qvz}ON+bmZkf@y9f zyV3E)4QGH9Rm9uo+=;{53zA1KR^ooijjksMM6V zKUSi|<7Al*@>N#5p8DU3i+s%(%Io^b)tKUir3-NG;czDGPK1LA45k(ltlznwb`A|8 z6>|@RIqZ&McVZ;_OcAykJ_nP+KD#rvzn$iGEA+a0F`&di=B(UN>$ z55j=R<*mIF5=UKkxvXVf_YXQfpQ`tp@;+SHMa3p{QNqy-_Qr59wM^rP#pGyMa(pA9 z7-`INTl_m?d!_|w6ePj=oY3%I1mgm94DXNOcy8Z8a((Xrc{TDpoLf$nr(+|Iw7Ok+ zYFBQ0+pMp<(`79V%k+HS@TWf?Pts`7z{|05Ec+~plq6O>N?r;+@sHG}GsH1;R3GZc15Lg8g`R9(-dyKpnd9L2^d?5qp> z6Jaoio7e@y>&P6X!YDJTZEpnoL*a1j@G)ql^dhAbDW!+BbQHeXPO45)B2l79i6Zc5 z@G%jxQt&FvgU44fj@Cb}5FgIslWch5Q z9ZIjGbUO;_@v6*o*c~em2EuyR5;9#!C@{{9H1CBMC-~9RJYBG2dA*# z7xqTN{>0Rj&F=M--b!z&AGb!ZJ#>LM6zzcPDxF@*T3j;C9Fx>B&KvF}Rh)-Tq-?I0 zY$l%EL!rXF5N4^6<}M^)=hfC;mlYZ`17>8YQcPKm^!(f7~{1@GoE`SmaMzA}A zoss2H{a~Z{dcR4i=1t*+!3-W9!_G*8jl*`~*eUOHJzWPggjwMjrVSHE@YCqUp0&i* zULkfIkd?wDjhLj-xsGGcI)J&eZ(ay>C{%Y-4yN$! zA?(gzEyO0_^rDF!RM2T@fBWsBWyZU1_f~?d z5LpTPQ~37Ch$9vAfr+ZPw$vP%U#5RA3vTJ|pr_tHA#GfUI8OiZWvn8p|6n~RwP*4B zCOk)LrjyEBHE}k8lesWW;mH7gII`c}>RFzZRYz9Z(c!@q9u45Zp`E5Ih~s6(B9Q*P zFjZ&$DLi`DRF?PFEmc708W=k&XI;KbAwEnq%}Sq582@Xb?;*wl%x2XW-39Yt>q;fFvRyCb`__RC+8M#r92 zg%3y5$0>X_fG_r8>lns!^N^-;`dZOB1XQlq>S~uaR+KtU!Ygc#;PV~$>cB+z^cq|f zA7^m?5Ptc@7JHVmxJmiayJX!y5^0P%z>+j|b}8 z2{FAqD_}CU-SX2dBaA=31AlVobyx86aWFL_=&!fo!9MIB!DtTUMGe!=NNJP;1Ne5| zc3=_s@WyKTc03uGUE`B2czg(xnaw3V&nd;*iHa*~5{In3%&{2UEQdU|!T+QOIFmS5 zkvN{tl;7{eZ+76@eUmo4fIp8DP=%nfcuc>a&W$+U-!S87;#QP6hVaWRBaTOhFrL^Q zp6g-|rRLrl*YuXvM(qfy3Sl^y!Gi-!qVxV5e6YSWmUiFb^Cs_MUMOjyJRT@t?wJAe zVC={XG4-UnUvdHB04Pg)cE|9$U5F#-CvdxGhSK$}xuw6YNDG@MM|1dM7k=}^=FCy0 zqQG^LHkOd3ssh(YU8x3nlEc;j@RrHG--SPa&u-4X&BReEj8o6y)bqoU^5s4}I1~nH z&CUO!yJYnpVb(mIL%wH6k~e#nx&5O}=q7JBam)+&egIz{z-Le3%N=-p9FDQi>xKFD zqKdy2h-3BT4Z|t7-?W4@1H2v2#)*CAX3sv_i{CB+$wR7xaRyHY%GR;x!Bge&01hU0 zU*g=JgLTyZF7#&=ILQgz-GEzbb}RHo2M9NjqqoSvKMg^dw?{@A|L?KQk;em*Ku);n zzdg;mILv)RW1tL{@)bXjtl^aB+}y*%V|%T*<Zm&5ux|djP!x+rXQSPe)_{C%R#Ut1q z+8nvIq+t?A36zy_^m;Y_l$bqNBaVm1=D_2^#kkGh+eaMV5A2xmiyeEi!gTRPYQoDV zjr#X_i`VhxzTFt@C(7M*Pd5?P5@nmX9QL-Cs7)ndeCrKu*{ zBluzuJ`a7lI}9JZjC&q$H#`n6)pk064o*2Vp+*$P6F8dK-HyE}{L2sFW*4Mm zyY?Hv8w)6~J%-P>;nT^kNqy;=Ww*6>->ewDfJe|Q` z-i7!2wR>1^0IDnU)6D!de)R-?yA8kJF|}`APhxca)RQGFm|uxd#2AAJ&8Lfbvr*YQ z3d_h<&5d~;@{gz){od_c#H)T{r!T_EP0Pwl93TELTIn5HnCTg-(&eHZ@hT{D{A zy-N{3O#3AG{N{-^fn=R_T9^q14S^{(1)#s^AxQ}kZM>p-%<%4z0a<aB#?SY=N8N3 z`$J3d_x>i_+ca_ePwyCkytiRu_nkG{?K{z{MgOiOjA>zp*{6Xl_9hm1=fRPY*5iRK zy3*T@s^Rh;)#3UZGT9fz;Xq<23-j|Bg*+r*>;(_gTkwqF@>%?-C!fZY?b>&%o~VkweddklpxzhZvn95$Cm9@!Eih1)!qa05+Pk@CukWtI zyX(r$u5zpEi5!&b@W}EYM{N|U30{P2>RE^hdN8rq(G-rSCgSf+Z4n%Ybe4;H)=!7z zWVO%T{tG|}L{_0P9#;e>=9*rVX55W}nl&85lc#XA4>$U7yKf;0-|5?Zq9j@pQ6+&m zmV{gSK&DDC*ZBqU?vI6op<{m}>`Y;2X1*HZJcRt?WPP8x7M|BQ=|MhK^1u(>htr2>w|D2 ze@j{#2@fZ*BhVE{deG^?X5XZb_tx!Lxff!ZcBADHbL>Jt1{+Ws^7eEi%gnwzF_rG= z$T1iy!-+*BpJV;F2=~`O+gENmnQ)N;^Vm6NYPp(=lP0D*u(7c%JbY^~*&+ErBvDh8Q}DogCa=Q}#DKPsb&Z6Q;Q%^SaO?N^g_4 zP8?}ruSauJRi-IncC*yCgTYRor2~b$GWE7g=zlqH`_BniE6a?fmNLLg?N%u@!*2sIQeulJ3l{-g0xss{V85X5v8ajjb&)>w$ECFYCAudPt@XbWi;_59oN%1@ zaAj8r9Ph=Rtgut9**xTn3T;@Nwy<eK zc3dO1s;h0@UyTeBi!Rn)HUFca;w{Gi729oEuoMb&5kHHQh^eBn^Aw0)ybmiqTOo1Q z01Xqi6PcxZA=flP9Ad=LaY_;1*lX@1w9ttF}jCi>}jP`%hP+s)GyVSABnmIG%yZ=A)%uU!Rpc zTWLQ{K-haxq|8etRa?YnsJ4`#g`98Uybz~|BZ-VC#F?a(xX|}aBDAR+%8P1aAB(Mt zGCDtTV5iwLfoc4~S}_Gl1kIOf#RX6s)SF#TKejvj+VLa~@>s}yXk`Xn09B7m0kB5kDor{PdGlag*^CgIzilAhCLf}-aXUd2gWie=1^ z_gzo?vfL&XPR)efjf}iJu+jD8rJl7SJ+BV0TEB`oQIbgML`!%0GJ?c;Zggt>-XL)Z z*7jZ$c0UIjrGGVp;j6B*s{LZpZ4xh=SbA8Cyk(4k7Fk~uwYrMfyz2%j%ej(Rl)T|= z^;P?wDBW1;M%5ms^de6`7Rvf@*Q*eRf;bBAT`G=QJk4ZSLX1kLT!JiBlQ?__BC*Lb zEgfko6s3ez1kFku-B{_w1ZhLVF{)#lyJmOX8gbm{c;cv}R12arFWth)Yk|wGLrvo7 zC7u#p*aM0ZCb?tYbo&GB4udC>lH3d9+%Yd)vnLI8iL2x32b)55$7h~9(khryLlOrp ziDM)2I7;TFFv=Zi+3-BXLIq!gv_bQUp~#m(yY zHL2%)Ul0rADjd!uhIvHkYs6W5xfBGkJ`!cKS8_wkpzA_f2uIV{GNxaFN2C*Le77BkAP zAX~kMj`O_JFA*v2)Xv+f-Z+hz<>w<#GaqUe!AP7Q#|K$506Hismk~m+rkD0Ro}1o$ z*=L1glts)7$Gix&zHHVHxm~*A@jndj2Pt+ zd0DgZ)Lt$H9w<%6b&-<9W(67{&<4c-AqGuw~$4xgdqe+5a|dk2_I-JWHUt zl1e-qS61vPE$~FSSJeK~MOX#w3m^q%luUq$!!r)#F%86#bKRqXwP?}8U=l|jxM7Mg z!83Lgi~kH!2G~u3mN;6pXaRPKdxkPV8BsE!VCq0QP|qCYrQp(V|6xal!$@ zfS57sOdZ>#WXw>GfjzV(jutIiEKneffIVP9#*A&!n0u5=$Z!l0wo&e&7q#N-qVDcM0eMq7!aMT-`IX&=WZJCqDb$@y5kInR3vA_h1f zBOC^w4u2`0q%B&sc>ACWAMh06h=|8T4DcpY7;)qj6dVIj5RQUtX_aTCMT-{K4HiDk z2O;7R&lV-euAy9+9F4p07oc$C{OSV*tB5q)ji*Wgb^9L z2;0Cm@DyS8x@z5`MT^&pIl|Mx2Rjt(kTBv4BM!@0@v(Sd42=2Dx`X2}%KIpNgj=t# z?k!rhcuklBdz5SeJN&Ke*ME67vWRd*$pe%hfZ^5Du|O7F4UaIu@dLs`gl!&j#Q#2fy7~;&LzJK6aU2uz z4USKNE!vB3En2KLgc4y3_!PL05MkD7S&NMjFtfMT^&gc`!$81NVXZ zC_7Ak+yV5*i38@m#|{T%6x>I+k7XWMqa}_OEmj8>7H}6?tn>T8A?rVGp7?R%FmF=N zf7CI39-@4Pk^py5HVJ7m&-`62Aybu4)vF~Du97k@%&bjh(+c11{W1&uBA3VMJfw|g zaXAc80W@K-GR~gk6z`ueHC*pQI>`5@k^ivVs5r40B0DK~#X_Ym{G5@`#A%k_NmC zaX`VGePU)fegga;!aI@En=#y2d`dz#+p1Dxd0U+W4GEt+PH_=LUVkL<$psO<&tYZ7 zPA%!QSmMi$^YkKrHJRL07wH!xQ4)cU3zlW6K6uG>2;UWjq|32`C_IU?@*8h|fD>!K z6NtlH=s7)+BJ?RSuz7u)k(DzX& zKM6^&HBznGUOFZPa;$c}^QA$G*~BEQf0$lx1jT6RJu`zt~GW-Hvru$0=nb_&y}ng1LgE)3R-@KL{!T3EZ)d^$8pL*`->L2NO%X@bPdw~_dux>OZtpzJ`L-Pj%%__=V9IL}5mn57y{ttKe_MCnCJEFRZWHj;+3)ra;w zv9|YW3$^E<7kl#3E!*8Bafq@OTl*az2W)g2)>T6LBe9LM7wbY*DPkkdLj8g_^HQGl zvgH5nr~1p%r4Nd~@4xh=)|XLL7U;s*=joGpjjuYf-i;mWSKomV1`0gM@T)1SSQN;md5W6@+flYfzB z(K{;IUFeQsz&eox;xOZ2=7qxBB5ImAL~H;>6j3Nu$ULOw)e%Q8l7)nodm$^WKgvY~ z8Ynv~94BJ-4Kb;s3=6mM_6IniTM9ll!(3ik`tgY`$8wzgHp- zK9&L~HvZ?}U=8`k6GM+wE-NG*SvL z%reI~bysHN=!miw+k~AKj!7Qbk#v3KT=uC-uyJS?#FF?EuBVec4pZ@ID-S6jxj*sSU zZI-ycPnr9af2u`|IGouOJTT59hM6NTguH-8h$9?%Ih4HXDOD*G@aic_VVpV!v&be+ z!^9z&VRpUa$-FSiB960YaYVd81MQE*%+(Tk5@+_MG#5sxV>oZP{Q;4L_9u>6;jH~> z)Vy)jLo8-zaIr2l=UMI;rjAM4Q2T4`l8QJ)>BkbC z=SI&OAOJSC~=G!0OoU&PX3SXDFY9c^Wr%I(6fqNZgEikky%nMv0^I`5?1#y&6M8bMk$-O7@E=>!`=D6)?EME<~(I*2R{cd|F z`T9jpUeCk1h+}~#l-%Yq=2$YrF(Kj*;h&)VR3z9M)W#|n^Qc?+n>MItS2m7H-z=T& z1k|5KRTYAP)<`50JK;g)gb&iC*Fi&>wf0xfm9#%VT+LOds)GwoVNFUM!5UnZxp=FZ zcTKgwHs-GKAqrzJ)XHoc_4Wg?V>^%dK}x=e)PIJLen-jUD(LWeaWUffSUmqmxA+To z$QXp=)pL{%o}W^iIMKpb$w}kXWe#3#V8qoHOjS&M@-%E5gyq7i$SW4}EIeT&yUaS& zY!}tUSu|I;+V;!xaV*E8^66=;%+S87{eN3+DtO3J{5I z$B}%}rTkT-?z5u--|z(`KbO}?96+c*$zSU}5nq`_(h|8OPVYJNuBz)J5{VEsN*vX9 zvYaUOhi5%a;(2vARo}}hul~HQ_E(GLnPbo-YVGD!c~{o{AL)B(u)k|%mpDolnU=_o zIN1@;uWBVb?3)qkISa0m3~j#bh7o zHCdMyEmi~>!W0+)+krH`M)?Ni2MQjOF=q7Qm>L&Bqr~wK|CW@$Ap@ptu+5AwQNAPM z0m@$je?@R}Kw9Ex(c*=$WJyEd5suGs{2JvOGQJ^W$PeWFoPuV3bekm(5anYO$bgK$ z(VQs{iO5Nq0SCZO5I#it01FJX0rU~pvFvdzT3lDyrmIY-lEMo+C{GX`;&}i(AYmKj zDgX8So}jOahKb`03WNhnCU|y<_$|UcV*Uu>XTV1Y9|aPLXo;i6b%se72RL?69s`e2 z9su7`vV&tp#+V7y=LHsS0#{2M765q?o&x~>lRn0CfUt+-rzm^CPkwZ2EpM+hGRcTw({{|EOF-UmtqLFol) z!z2z}I3Y1@vQNL+B=i|SHeGi3?&=bqo_za9I^F?eBD*+Qde~y=f(Aq#lNqo{FARg@}aZJM4e))w5N8l*@8FJeJLuH0}7C!YWM=Q z5OKK^GBKh^vEx)Djb&!|LxdxQV?4(wLkdPH$E=^t6#pjR%_NTZm;xEw9C3>XM@&IN zmjt0t$qj@Jgg$lxvjJ=%+yFKeHbi7i#jh#a^P)Xf?Wt-v5RBPMgaobGPRt;?B$Ud2 zqUXOJWdWt_<5#(OnieQt7Ani|eXkqO>HpKhsRln?#D`UY)DR z+>4tl(F}CvgmHw90DC-RU`ojhWsESwF(D-YiNvJ{KI|?D)eY}TajC^q2=6`X61HQ> z1206SFA2I#-FsEHV;A48OWIP-Nq-kWQ(+RHg){9sr7!&${VPjjW9Q_Uh+}kN!