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 97e418dd9be78f6daebf174d1ebb1a9e2ebf0241..6ee2e1e3eabf9ef9e01ae9ed97f2a7a80bb942f8 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 @@ -44,9 +44,12 @@ import UiComponentLayoutCommonPixel from './UiComponentLayoutCommonPixelTest/UiC import UiComponentRowcolumnSidebarcontainerInterface from './UiComponentRowcolumnSidebarcontainerInterfaceTest/UiComponentRowcolumnSidebarcontainerInterface.test' import UiComponentTextCommonTextstyle from './UiComponentTextCommonTextstyleTest/UiComponentTextCommonTextstyle.test' import UiComponentTextModifier from './UiComponentTextModifierTest/UiComponentTextModifier.test' +import UIComponentTextCapi from './UIComponentTextCapiTest/UIComponentTextCapi.test' import UiComponentWordbreak from './UiComponentWordbreakTest/UiComponentWordbreak.test' import UIComponentCreateColor from './UIComponentCreateColorTest/UIComponentCreateColor.test' +import UIComponentTextTextinputInterface from './UIComponentTextTextinputInterfaceTest/UIComponentTextTextinputInterface.test' +import UIComponentTextTextinputPolymorphic from './UIComponentTextTextinputPolymorphicTest/UIComponentTextTextinputPolymorphic.test' export default function testsuite() { demoTest(); UIAttributeFontInterface001(); @@ -80,5 +83,8 @@ export default function testsuite() { UiComponentTextCommonTextstyle(); UiComponentTextModifier(); UIComponentCreateColor(); + UIComponentTextCapi(); + UIComponentTextTextinputInterface(); + UIComponentTextTextinputPolymorphic(); UiComponentWordbreak(); } \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCapiTest/UIComponentTextCapi.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCapiTest/UIComponentTextCapi.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..664675e0a2951522f0d72d02472d5f0f565bd77d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCapiTest/UIComponentTextCapi.test.ets @@ -0,0 +1,806 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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' +export default function UIComponentTextCapi() { + describe('UIComponentTextCapi', () => { + 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_CAPI_0010 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0010 + * @tc.desc Add Text, Set id + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0010 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi001") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0010 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0020 + * @tc.desc Set fontsize + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0020 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi002") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0020 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0030 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0030 + * @tc.desc Set value + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0030 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi003") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0030 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0040 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0040 + * @tc.desc Set fontcolor + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0040 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi004") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0040 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0050 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0050 + * @tc.desc Set fontstyle + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0050 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi005") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0050 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0060 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0060 + * @tc.desc Set fontweight.bolder + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0060 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi006") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0060 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0070 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0070 + * @tc.desc Set fontweight.lighter + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0070 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi007") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0070 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0080 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0080 + * @tc.desc Set fontweight.normal + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0080 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi008") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0080 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0090 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0090 + * @tc.desc Set fontweight.regular + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0090 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi009") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0090 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0100 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0100 + * @tc.desc Set fontweight.medium + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0100 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi010") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0100 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0110 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0110 + * @tc.desc Set fontweight.bold + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0110 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi011") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0110 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0120 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0120 + * @tc.desc Set fontweight.bolder + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0120 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi012") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0120 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0130 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0130 + * @tc.desc Set fontfamily + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0130 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi013") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0130 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0150 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0150 + * @tc.desc Set copyoption.inapp + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0150 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi015") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0150 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0160 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0160 + * @tc.desc Set copyoption.localdevice + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0160 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi016") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0160 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0170 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0170 + * @tc.desc Set copyoption.device + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0170 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi017") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0170 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0180 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0180 + * @tc.desc Set textlineheight 30 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0180 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi018") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0180 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0190 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0190 + * @tc.desc Set textlineheight -10 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0190 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi019") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0190 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0200 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0200 + * @tc.desc Set textlineheight,fontsize + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0200 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi020") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0200 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0210 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0210 + * @tc.desc Set textdecoration.none + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0210 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi021") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0210 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0220 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0220 + * @tc.desc Set textdecoration.underline + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0220 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi022") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0220 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0230 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0230 + * @tc.desc Set textdecoration.linethrough + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0230 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi023") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0230 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0240 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0240 + * @tc.desc Set textdecoration.overline + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0240 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi024") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0240 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0260 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0260 + * @tc.desc Set textcase.lowercase + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0260 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi026") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0260 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0270 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0270 + * @tc.desc Set textcase.uppercase + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0270 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi027") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0270 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0280 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0280 + * @tc.desc Set textcase.normal + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0280 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi028") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0280 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0300 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0300 + * @tc.desc Set textletterspacing 10 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0300 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi030") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0300 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0310 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0310 + * @tc.desc Set textletterspacing -5 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0310 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi031") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0310 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0320 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0320 + * @tc.desc Set textmaxlines 5 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0320 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi032") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0320 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0330 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0330 + * @tc.desc Set textmaxlines -1 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0330 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi033") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0330 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0340 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0340 + * @tc.desc Set textalign.start + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0340 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi034") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0340 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0350 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0350 + * @tc.desc Set textalign.center + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0350 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi035") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0350 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0360 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0360 + * @tc.desc Set textalign.end + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0360 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi036") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0360 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0370 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0370 + * @tc.desc Set textalign.justify + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0370 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi037") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0370 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0380 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0380 + * @tc.desc Set textalign.justify + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0380 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi038") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0380 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0390 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0390 + * @tc.desc Set textalign.justify + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0390 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi039") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0390 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0400 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0400 + * @tc.desc Set textalign.center, align.topstart + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0400 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi040") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0400 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0410 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0410 + * @tc.desc Set textalign.end, align.center + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0410 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi041") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0410 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0420 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0420 + * @tc.desc Set textalign.center, align.bottomend + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0420 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi042") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0420 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0430 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0430 + * @tc.desc Set textoverflow, textmaxlines + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0430 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi043") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0430 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0440 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0440 + * @tc.desc Set textoverflow, textmaxlines + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0440 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi044") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0440 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0450 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0450 + * @tc.desc Set textoverflow, textmaxlines + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0450 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi045") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0450 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0460 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0460 + * @tc.desc Set textoverflow, textmaxlines + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0460 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi046") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0460 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0480 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0480 + * @tc.desc Set textoverflow, textmaxlines, clip.false + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0480 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi048") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0480 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0490 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0490 + * @tc.desc Set baselineoffset 10 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0490 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi049") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0490 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0500 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0500 + * @tc.desc Set baselineoffset -5 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0500 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi050") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0500 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0510 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0510 + * @tc.desc Set baselineoffset 50% + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0510 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi051") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0510 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0520 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0520 + * @tc.desc Set textindent 10 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0520 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi052") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0520 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0530 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0530 + * @tc.desc Set textindent -10 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0530 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi053") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0530 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0540 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0540 + * @tc.desc Set shadow 0xFFFF0000 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0540 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi054") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0540 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_CAPI_0550 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_CAPI_0550 + * @tc.desc Set shadow 0xFF0000FF + */ + it('SUB_ACE_UI_COMPONENT_TEXT_CAPI_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0550 start.`); + Settings.createWindow("testability/pages/UIComponentTextCapi/UIComponentTextCapi055") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_CAPI_0550 finish.`); + done() + }) + + + + + }) +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextinputInterfaceTest/UIComponentTextTextinputInterface.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextinputInterfaceTest/UIComponentTextTextinputInterface.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..c0012a8bd21a5a42566742f769d7c94144e7dac9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextinputInterfaceTest/UIComponentTextTextinputInterface.test.ets @@ -0,0 +1,585 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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' +export default function UIComponentTextTextinputInterface() { + describe('UIComponentTextTextinputInterface', () => { + 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_TEXTINPUT_INTERFACE_0020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0020 + * @tc.desc Set placeholderColor.green + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0020 start.`); + // 创建 Driver 实例,指定页面路径 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface002") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0020 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0070 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0070 + * @tc.desc Set placeholderFont({size:-1,weight:FontWeight.Lighter,family: ,style:FontStyle.Normal}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0070 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface007") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0070 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0080 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0080 + * @tc.desc Set placeholderFont({size:1,weight:FontWeight.Normal ,family: ,style:FontStyle.Normal}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0080 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface008") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0080 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0090 + * @tc.desc Set placeholderFont({size:'-11',weight:FontWeight.Medium ,family: ,style:FontStyle.Italic}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0090 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface009") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0090 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0100 + * @tc.desc Set placeholderFont({size:'-1',weight:FontWeight.Regular,family: ,style:FontStyle.Normal}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0100 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface010") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0100 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0110 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0110 + * @tc.desc Set placeholderFont:placeholderFont({size:'0',weight:1,family: ,style:FontStyle.Italic}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0110 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface011") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0110 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0120 + * @tc.desc Set placeholderFont({size: 0,weight:FontWeight.Regular ,family: ,style:FontStyle.Normal}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0120 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface012") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0120 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0130 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0130 + * @tc.desc Set placeholderFont({size:'11',weight:FontWeight.Bolder ,family: ,style:FontStyle.Italic}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0130 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface013") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0130 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0140 + * @tc.desc Set placeholderFont({size:1,weight:-1,family: ,style:FontStyle.Italic}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0140 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface014") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0140 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0150 + * @tc.desc Set placeholderFont({size:1,weight:0,family: ,style:FontStyle.Italic}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0150 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface015") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0150 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0160 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0160 + * @tc.desc Set placeholderFont({size:1,weight:1,family: ,style:FontStyle.Italic}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0160 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface016") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0160 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0170 + * @tc.desc Set placeholderFont({size:'1',weight:FontWeight.Bold ,family: ,style:FontStyle.Italic}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0170 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface017") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0170 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0180 + * @tc.desc Set placeholderFont({size:1,weight:'-1',family: ,style:FontStyle.Italic}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0180 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface018") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0180 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0190 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0190 + * @tc.desc Set placeholderFont({size:1,weight:'-11',family: ,style:FontStyle.Italic}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0190 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface019") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0190 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0200 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0200 + * @tc.desc Set placeholderFont({size:1,weight:'0',family: ,style:FontStyle.Italic}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0200 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface020") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0200 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0210 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0210 + * @tc.desc Set placeholderFont({size:1,weight:'1',family: ,style:FontStyle.Italic}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0210 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface021") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0210 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0220 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0220 + * @tc.desc Set placeholderFont({size:1,weight:'11',family: ,style:FontStyle.Italic}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0220 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface022") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0220 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0280 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0280 + * @tc.desc Set TextInputStyle. Inline + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0280 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface028") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0280 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0330 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0330 + * @tc.desc Set TextAlign.Center + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0330 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface033") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0330 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0340 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0340 + * @tc.desc Set TextAlign.End + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0340 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface034") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0340 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0350 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0350 + * @tc.desc Set TextAlign.Start + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0350 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface035") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0350 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0410 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0410 + * @tc.desc Set TextInputStyle.Default + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0410 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface041") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0410 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0480 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0480 + * @tc.desc NoSet showPasswordIcon + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0480 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface048") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0480 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0490 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0490 + * @tc.desc Set TextAlign.End + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0490 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface049") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0490 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0560 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0560 + * @tc.desc Set TextContentStyle.default + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0560 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface056") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0560 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0570 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0570 + * @tc.desc Set TextContentStyle=Inline + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0570 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface057") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0570 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0580 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0580 + * @tc.desc Set InputType: Normal + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0580 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface058") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0580 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0590 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0590 + * @tc.desc NoSet fontFamily + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0590 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface059") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0590 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0600 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0600 + * @tc.desc Set InputType: Password + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0600 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface060") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0600 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0610 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0610 + * @tc.desc NoSet showPasswordIcon + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0610 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface061") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0610 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0620 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0620 + * @tc.desc Set InputType: PhoneNumber + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0620 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface062") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0620 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0630 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0630 + * @tc.desc Set InputType: Number + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0630 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface063") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0630 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0640 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0640 + * @tc.desc Set InputType: Email + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0640 start.`); + // 创建 Driver 窗口并设置页面 + Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface064") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0640 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0680 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0680 + * @tc.desc Set textselection(45,50) + */ + // it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0680', 0, async (done: Function) => { + // Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0680 start.`); + // // 创建 Driver 窗口并设置页面 + // Settings.createWindow("testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface068") + // await Utils.sleep(1000) + // windowSnap.snapShot() + // await Utils.sleep(1000) + // Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_INTERFACE_0680 finish.`); + // done() + // }) + + + + + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextinputPolymorphicTest/UIComponentTextTextinputPolymorphic.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextinputPolymorphicTest/UIComponentTextTextinputPolymorphic.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..670da230d48cddea4eb1296bf45b7ffb48ec2d9c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextinputPolymorphicTest/UIComponentTextTextinputPolymorphic.test.ets @@ -0,0 +1,157 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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' +export default function UIComponentTextTextinputPolymorphic() { + describe('UIComponentTextTextinputPolymorphic', () => { + 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_TEXTINPUT_POLYMORPHIC_0010 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0010 + * @tc.desc Set showUnderline + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0010 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic001") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0010 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0020 + * @tc.desc Set showUnderline(false) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0020 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic002") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0020 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0030 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0030 + * @tc.desc Set showUnderline(true) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0030 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic003") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0030 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0040 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0040 + * @tc.desc Set showUnderline(true) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0040 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic004") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0040 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0050 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0050 + * @tc.desc Set showUnderline(true) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0050 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic005") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0050 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0060 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0060 + * @tc.desc Set showError('Err') + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0060 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic006") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0060 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0070 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0070 + * @tc.desc Set passwordIcon({onIconSrc:this.PassWordSrc1,offIconSrc : this.PassWordSrc2}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0070 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic007") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0070 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0080 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0080 + * @tc.desc Set showUnit,value.MB + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0080 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic008") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTINPUT_POLYMORPHIC_0080 finish.`); + done() + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi001.ets new file mode 100644 index 0000000000000000000000000000000000000000..aceaf4cb25efcd981e9cd1706a3b44204e365dce --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi001.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 UIComponentTextCapi001 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi002.ets new file mode 100644 index 0000000000000000000000000000000000000000..53cb2635d2cf263719f764b712c7651db8b9baff --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi002.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 UIComponentTextCapi002 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .fontSize('-10fp') + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi003.ets new file mode 100644 index 0000000000000000000000000000000000000000..f7734561a261da7b0914f3504c22d285521771a9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi003.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 UIComponentTextCapi003 { + @State value: number[] = [20, 10] + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .fontSize(`${this.value.join(', ')}`) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi004.ets new file mode 100644 index 0000000000000000000000000000000000000000..3e5173ec70ea7f325800aa6435761995ef7f5c56 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi004.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 UIComponentTextCapi004 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .fontColor(0xFFFF0000) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi005.ets new file mode 100644 index 0000000000000000000000000000000000000000..75a4d48a2846384f7b4e7f27ca8cf569ec784a30 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi005.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 UIComponentTextCapi005 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .fontStyle(FontStyle.Italic) + + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi006.ets new file mode 100644 index 0000000000000000000000000000000000000000..6b8b09c26b201ba5b9fe225b6e0062ed9810e124 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi006.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 UIComponentTextCapi006 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .fontWeight(FontWeight.Bolder) + + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi007.ets new file mode 100644 index 0000000000000000000000000000000000000000..c330b8e127d49def50538e45af4fc8a64ca9ec1b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi007.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 UIComponentTextCapi007 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .fontWeight(FontWeight.Lighter) + + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi008.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi008.ets new file mode 100644 index 0000000000000000000000000000000000000000..4006bc753158cf2ab775ad5d92c016fa2aebb345 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi008.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 UIComponentTextCapi008 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .fontWeight(FontWeight.Normal) + + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi009.ets new file mode 100644 index 0000000000000000000000000000000000000000..5f703ef03b02f1fd4ba0cbf71a79e1b0aab75bd0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi009.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 UIComponentTextCapi009 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ id: 'xcomponent', type: XComponentType.COMPONENT, controller: this.xComponentController }) + { + Text('hello world') + .id('text') + .fontWeight(FontWeight.Regular) + + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi010.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi010.ets new file mode 100644 index 0000000000000000000000000000000000000000..ffdee3c69f995fa593cbe32b8e659f3fe7f1ad37 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi010.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 UIComponentTextCapi010 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .fontWeight(FontWeight.Medium) + + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi011.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi011.ets new file mode 100644 index 0000000000000000000000000000000000000000..d72d7abae6fb5d0272c0cd7a042c0a3462d09724 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi011.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 UIComponentTextCapi011 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .fontWeight(FontWeight.Bold) + + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi012.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi012.ets new file mode 100644 index 0000000000000000000000000000000000000000..d2072fd302528e5ed522145944d1752fcd270fb5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi012.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 UIComponentTextCapi012 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .fontWeight(FontWeight.Bolder) + + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi013.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi013.ets new file mode 100644 index 0000000000000000000000000000000000000000..2f8dfbab3cb433fdd2c62b58dec17985be415d1f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi013.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 UIComponentTextCapi013 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .fontFamily('HarmonyOS Sans') + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi015.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi015.ets new file mode 100644 index 0000000000000000000000000000000000000000..a17e208697d98a72749aaa55ee888a4257fbe2cd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi015.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 UIComponentTextCapi015 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .copyOption(CopyOptions.InApp) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi016.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi016.ets new file mode 100644 index 0000000000000000000000000000000000000000..ca71f1984d10604a976f64cb534c1925b69a66c6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi016.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 UIComponentTextCapi016 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .copyOption(CopyOptions.LocalDevice) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi017.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi017.ets new file mode 100644 index 0000000000000000000000000000000000000000..1cff6573677de3be0b45d8aef1a30684caba4e2c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi017.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 UIComponentTextCapi017 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .copyOption(CopyOptions.CROSS_DEVICE) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi018.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi018.ets new file mode 100644 index 0000000000000000000000000000000000000000..2cd583ace81003dbaff636d646d7e9144837df3c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi018.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 UIComponentTextCapi018 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .lineHeight(30) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi019.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi019.ets new file mode 100644 index 0000000000000000000000000000000000000000..60b98462674ea80523c99ef7b739ee6bb235ebc1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi019.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 UIComponentTextCapi019 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .lineHeight(-10) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi020.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi020.ets new file mode 100644 index 0000000000000000000000000000000000000000..b3bd26a5325ed37e70d724ed7b54a92bcde4dcaf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi020.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 UIComponentTextCapi020 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .lineHeight(10) + .fontSize(30) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi021.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi021.ets new file mode 100644 index 0000000000000000000000000000000000000000..10673e77c39409db4d53c703f70a5690cdb77f28 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi021.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 UIComponentTextCapi021 { + xComponentController: XComponentController = new XComponentController() + + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .decoration({ + type: TextDecorationType.None, + color: 0xFFFF0000 + }) + } + + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi022.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi022.ets new file mode 100644 index 0000000000000000000000000000000000000000..b71b1bb3c60b8ddc0c9500053f6825fb075d03be --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi022.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 UIComponentTextCapi022 { + xComponentController: XComponentController = new XComponentController() + + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .decoration({ + type: TextDecorationType.Underline, + color: 0xFFFF0000 + }) + } + + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi023.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi023.ets new file mode 100644 index 0000000000000000000000000000000000000000..613208168fe0eb54a46559005f78eada01cc156f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi023.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 UIComponentTextCapi023 { + xComponentController: XComponentController = new XComponentController() + + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .decoration({ + type: TextDecorationType.LineThrough, + color: 0xFFFFFF00 + }) + } + + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi024.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi024.ets new file mode 100644 index 0000000000000000000000000000000000000000..b438c2a3ce9c002f6eea8bb3849c424399122a66 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi024.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 UIComponentTextCapi024 { + xComponentController: XComponentController = new XComponentController() + + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .decoration({ + type: TextDecorationType.Overline, + color: 0xFF0000FF + }) + } + + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi026.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi026.ets new file mode 100644 index 0000000000000000000000000000000000000000..de95b8f5e14b97039b89786e195fecebce5b810c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi026.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 UIComponentTextCapi026 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .textCase(TextCase.LowerCase) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi027.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi027.ets new file mode 100644 index 0000000000000000000000000000000000000000..e4243d2476e9669f004140f945e4658c305d301f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi027.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 UIComponentTextCapi027 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .textCase(TextCase.UpperCase) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi028.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi028.ets new file mode 100644 index 0000000000000000000000000000000000000000..4c0b1328151208592f953819f8c026bb96e971ad --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi028.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 UIComponentTextCapi028 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .textCase(TextCase.Normal) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi030.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi030.ets new file mode 100644 index 0000000000000000000000000000000000000000..c9c2d8de36aad462a82fc5da858c1dbf6f79069d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi030.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 UIComponentTextCapi030 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .letterSpacing(10) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi031.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi031.ets new file mode 100644 index 0000000000000000000000000000000000000000..d3bed2ca94960f2857178b2277a6550382f03679 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi031.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 UIComponentTextCapi031 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .letterSpacing(-5) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi032.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi032.ets new file mode 100644 index 0000000000000000000000000000000000000000..e019f8f96e5b3f6f336a635d4c98666679ab8e93 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi032.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 UIComponentTextCapi032 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text( 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n') + .id('text') + .maxLines(5) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi033.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi033.ets new file mode 100644 index 0000000000000000000000000000000000000000..93860fdda3c88aef1e55fb4fa57ea728d616f8b4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi033.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 UIComponentTextCapi033 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text( 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n') + .id('text') + .maxLines(-1) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi034.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi034.ets new file mode 100644 index 0000000000000000000000000000000000000000..a8ae4a7db48570f1f4d726293a5fc36729008fa3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi034.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 UIComponentTextCapi034 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .textAlign(TextAlign.Start) + .width('50%') + .height('50%') + .borderWidth(3) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi035.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi035.ets new file mode 100644 index 0000000000000000000000000000000000000000..e2d95c8e93fa4583a2ded0b11c48538b09129eac --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi035.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 UIComponentTextCapi035 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .textAlign(TextAlign.Center) + .width('50%') + .height('50%') + .borderWidth(3) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi036.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi036.ets new file mode 100644 index 0000000000000000000000000000000000000000..49c8a7c21fcb97cebe26699bcff61dbcdf0986c9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi036.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 UIComponentTextCapi036 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .textAlign(TextAlign.End) + .width('50%') + .height('50%') + .borderWidth(3) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi037.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi037.ets new file mode 100644 index 0000000000000000000000000000000000000000..bfd18773d044e4dfa00e51e0fde047c9c8a50665 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi037.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 UIComponentTextCapi037 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world, hello world, hello world, hello world, hello world') + .id('text') + .textAlign(TextAlign.JUSTIFY) + .width('50%') + .height('50%') + .borderWidth(3) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi038.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi038.ets new file mode 100644 index 0000000000000000000000000000000000000000..4067b424b0661f2be8888e9b90dd32c52f48edd8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi038.ets @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentTextCapi038 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world, hello world, hello world, hello world, hello world') + .id('text') + .textAlign(TextAlign.JUSTIFY) + .width('50%') + .height('50%') + .maxLines(1) + .borderWidth(3) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi039.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi039.ets new file mode 100644 index 0000000000000000000000000000000000000000..cacbaa73b2dc87ff0eea9c3b930ac4dfe1efa2b9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi039.ets @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentTextCapi039 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world, hello world, hello world, hello world, hello world') + .id('text') + .textAlign(TextAlign.JUSTIFY) + .width('50%') + .height('50%') + .maxLines(5) + .borderWidth(3) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi040.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi040.ets new file mode 100644 index 0000000000000000000000000000000000000000..84a20de255df2e35b575e98ada1ef8e269bb2454 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi040.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 UIComponentTextCapi040 { + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) { + Text('hello world') + .id('text') + .textAlign(TextAlign.Center) + .align(Alignment.TopStart) + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi041.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi041.ets new file mode 100644 index 0000000000000000000000000000000000000000..63b40632be848bde0e8bd15b51df89dcbf06183c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi041.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 UIComponentTextCapi041 { + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) { + Text('hello world') + .id('text') + .textAlign(TextAlign.End) + .align(Alignment.Center) + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi042.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi042.ets new file mode 100644 index 0000000000000000000000000000000000000000..fda753a470c8979221cfbb788f83b2f7a574bd2b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi042.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 UIComponentTextCapi042 { + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) { + Text('hello world') + .id('text') + .textAlign(TextAlign.Center) + .align(Alignment.BottomEnd) + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi043.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi043.ets new file mode 100644 index 0000000000000000000000000000000000000000..79f63a0b13fe3d33d5a682afbf2e6329c9a425ad --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi043.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 UIComponentTextCapi043 { + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) { + Text( 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n') + .id('text') + .textOverflow({ overflow: TextOverflow.None }) + .maxLines(3) + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi044.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi044.ets new file mode 100644 index 0000000000000000000000000000000000000000..e832457b113bdbd31bd3073dc8505e14da497147 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi044.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 UIComponentTextCapi044 { + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) { + Text( 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n') + .id('text') + .textOverflow({ overflow: TextOverflow.Clip }) + .maxLines(3) + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi045.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi045.ets new file mode 100644 index 0000000000000000000000000000000000000000..09acfaad0b76ed57652032af35c7df20bd377c38 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi045.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 UIComponentTextCapi045 { + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) { + Text( 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n' + + 'hello world' + '\n') + .id('text') + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(3) + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi046.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi046.ets new file mode 100644 index 0000000000000000000000000000000000000000..afb034e8bd029cd4792139a6b6171e8f3ff4e237 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi046.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 UIComponentTextCapi046 { + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) { + Text( 'hello world, hello world, hello world, hello world, hello world,') + .id('text') + .textOverflow({ overflow: TextOverflow.MARQUEE }) + .maxLines(3) + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi048.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi048.ets new file mode 100644 index 0000000000000000000000000000000000000000..862b0aef0915fe01abab6360a1dc411da682e3aa --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi048.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 UIComponentTextCapi048 { + xComponentController: XComponentController = new XComponentController() + + build() { + Column() { + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) { + Text( 'hello world, hello world, hello world, hello world, hello world,') + .id('text') + .textOverflow({ overflow: TextOverflow.MARQUEE }) + .maxLines(3) + .width('90%') + .height('90%') + .borderWidth(1) + .clip(false) + } + .width(300) + .height(500) + .borderWidth(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi049.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi049.ets new file mode 100644 index 0000000000000000000000000000000000000000..f37cb56c013f9900f81b161ef9472b97ad475af8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi049.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 UIComponentTextCapi049 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .baselineOffset(10) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi050.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi050.ets new file mode 100644 index 0000000000000000000000000000000000000000..834ae441d25c9acc92188b47760bc7f19e9714c0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi050.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 UIComponentTextCapi050 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .baselineOffset(-5) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi051.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi051.ets new file mode 100644 index 0000000000000000000000000000000000000000..d59d9d028d13854f678cfcf137c85e0df136fe7f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi051.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 UIComponentTextCapi051 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .baselineOffset('50%') + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi052.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi052.ets new file mode 100644 index 0000000000000000000000000000000000000000..0b064bcba59b598a0441ea2028737fb51bbd6b78 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi052.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 UIComponentTextCapi052 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .textIndent(10) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi053.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi053.ets new file mode 100644 index 0000000000000000000000000000000000000000..4eb481c36bcc4f58a3f281293a83a8f1d0122739 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi053.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 UIComponentTextCapi053 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .textIndent(-10) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi054.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi054.ets new file mode 100644 index 0000000000000000000000000000000000000000..b87d5eef961993b1d02101e53bfa494ca5dc54c8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi054.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 UIComponentTextCapi054 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .shadow({ radius: 10, color: 0xFFFF0000, offsetX: 10, offsetY: 10}) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi055.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi055.ets new file mode 100644 index 0000000000000000000000000000000000000000..b67a251d0ffa549d80711e00ad18a76a2fe62a5f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCapi/UIComponentTextCapi055.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 UIComponentTextCapi055 { + xComponentController: XComponentController = new XComponentController() + build() { + Column(){ + XComponent({ + id: 'xcomponent', + type: XComponentType.COMPONENT, + controller: this.xComponentController + }) + { + Text('hello world') + .id('text') + .shadow({ radius: 5, color: 0xFF0000FF, offsetX: -10, offsetY: -10}) + } + .width('90%') + .height('90%') + .borderWidth(1) + } + .width(300) + .height(500) + .borderWidth(1) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface002.ets new file mode 100644 index 0000000000000000000000000000000000000000..4370c7893ad23437cddd00e438eec80760e0cf05 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface002.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 UIComponentTextTextinputInterface002 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderColor(0x008000) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface007.ets new file mode 100644 index 0000000000000000000000000000000000000000..f8518f93ee309e7de3a0c99a7f098a906606109f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface007.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 UIComponentTextTextinputInterface007 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:-1,weight:FontWeight.Lighter, + family:'', + style:FontStyle.Normal }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface008.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface008.ets new file mode 100644 index 0000000000000000000000000000000000000000..da2c668fdc5690b6a8426cd81a2046ffe6e433cf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface008.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 UIComponentTextTextinputInterface008 { + @State message: string = ''; + build() { + Column() { + TextInput({ + text: this.message, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:-1,weight:FontWeight.Lighter, + family:'', + style:FontStyle.Normal }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface009.ets new file mode 100644 index 0000000000000000000000000000000000000000..3cc500ebb3c618f4517111401ed965e3946a7dbc --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface009.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 UIComponentTextTextinputInterface009 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:'-11',weight:FontWeight.Medium, + family:'', + style:FontStyle.Italic }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface010.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface010.ets new file mode 100644 index 0000000000000000000000000000000000000000..368bd7f50a1430352ea91d3e9bba1cfc9b575e6b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface010.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 UIComponentTextTextinputInterface010 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:'-1',weight:FontWeight.Regular, + family:'', + style:FontStyle.Normal }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface011.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface011.ets new file mode 100644 index 0000000000000000000000000000000000000000..19f748da1339ea065d92d5d3e39131eb8a21609c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface011.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 UIComponentTextTextinputInterface011 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:'0',weight:1, + family:'', + style:FontStyle.Italic }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface012.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface012.ets new file mode 100644 index 0000000000000000000000000000000000000000..efccd73b71214f88f400d4565143ad55b17e00c0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface012.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 UIComponentTextTextinputInterface012 { + @State text: string = ''; + build() { + Column() { + // 文本框带图标 + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:0,weight:FontWeight.Regular, + family:'', + style:FontStyle.Normal }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface013.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface013.ets new file mode 100644 index 0000000000000000000000000000000000000000..df104851354376c5be3efd072c95e9f8a77666a8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface013.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 UIComponentTextTextinputInterface013 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:'11',weight:FontWeight.Bolder, + family:'', + style:FontStyle.Italic }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface014.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface014.ets new file mode 100644 index 0000000000000000000000000000000000000000..7f365ce1ee37d9caa5e71ae5ed3c91b2f660d101 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface014.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 UIComponentTextTextinputInterface014 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:1,weight:-1, + family:'', + style:FontStyle.Italic }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface015.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface015.ets new file mode 100644 index 0000000000000000000000000000000000000000..2d6b9fc2364b7818b36a9c8d4583667b7c915ea8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface015.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 UIComponentTextTextinputInterface015 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:1,weight:0, + family:'', + style:FontStyle.Italic }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface016.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface016.ets new file mode 100644 index 0000000000000000000000000000000000000000..2746bb70233eb42d827b0314541de32d4d1ef9ca --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface016.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 UIComponentTextTextinputInterface016 { + @State text: string = ''; + build() { + Column() { + // 文本框带图标 + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:1,weight:1, + family:'', + style:FontStyle.Italic }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface017.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface017.ets new file mode 100644 index 0000000000000000000000000000000000000000..6eb95d992d9e8561c4cb68da2627f14544daaf8a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface017.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 UIComponentTextTextinputInterface017 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:'1',weight:FontWeight.Bold, + family:'', + style:FontStyle.Italic }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface018.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface018.ets new file mode 100644 index 0000000000000000000000000000000000000000..3a3de67518b8460dfc8653c8a98d604238678ffc --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface018.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 UIComponentTextTextinputInterface018 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:1,weight:'-1', + family:'', + style:FontStyle.Italic }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface019.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface019.ets new file mode 100644 index 0000000000000000000000000000000000000000..5c10efbc9d3e0112a51587e0ed3beb923efef71b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface019.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 UIComponentTextTextinputInterface019 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:1,weight:'-11', + family:'', + style:FontStyle.Italic }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface020.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface020.ets new file mode 100644 index 0000000000000000000000000000000000000000..581fe4b44dfa292ecb1b3238428bd7245d056408 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface020.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 UIComponentTextTextinputInterface020 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:1,weight:'0', + family:'', + style:FontStyle.Italic }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface021.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface021.ets new file mode 100644 index 0000000000000000000000000000000000000000..fc430aa7f677c6c83ef73dbd3c8b1d75468e7954 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface021.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 UIComponentTextTextinputInterface021 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:1,weight:'1', + family:'', + style:FontStyle.Italic }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface022.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface022.ets new file mode 100644 index 0000000000000000000000000000000000000000..b66a87cab8da362b67e4d12b1b7edc8a866a54fb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface022.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 UIComponentTextTextinputInterface022 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderFont({ + size:1,weight:'11', + family:'', + style:FontStyle.Italic }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface028.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface028.ets new file mode 100644 index 0000000000000000000000000000000000000000..f24083168fb1e3826d16a2efee64c6150823f00f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface028.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 UIComponentTextTextinputInterface028 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .style(TextInputStyle.Inline) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface033.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface033.ets new file mode 100644 index 0000000000000000000000000000000000000000..7d562b87e55a1ed4f926d095a99afbc4b1c44923 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface033.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 UIComponentTextTextinputInterface033 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .textAlign(TextAlign.Center) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface034.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface034.ets new file mode 100644 index 0000000000000000000000000000000000000000..7ec0dd44efebfb94a3e744cfafcdad9581f08177 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface034.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 UIComponentTextTextinputInterface034 { + @State text: string = ''; // 文本框文本 + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .textAlign(TextAlign.End) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface035.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface035.ets new file mode 100644 index 0000000000000000000000000000000000000000..3c9bb5613796071356f3dd48c887bc9e116c23f2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface035.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 UIComponentTextTextinputInterface035 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .textAlign(TextAlign.Start) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface041.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface041.ets new file mode 100644 index 0000000000000000000000000000000000000000..6a145032d5b92e6d7c45e08c4bc20d011b8c942f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface041.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 UIComponentTextTextinputInterface041 { + @State text: string = ''; + build() { + Column() { + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .style(TextInputStyle.Default) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface048.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface048.ets new file mode 100644 index 0000000000000000000000000000000000000000..424c9205975e584ac0cb98c9bb24242e5b8763cf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface048.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 UIComponentTextTextinputInterface048 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .showPasswordIcon(undefined) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface049.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface049.ets new file mode 100644 index 0000000000000000000000000000000000000000..73fd866824fc566aa5f72efe847f8c5f714587ce --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface049.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 UIComponentTextTextinputInterface049 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .textAlign(TextAlign.End) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface056.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface056.ets new file mode 100644 index 0000000000000000000000000000000000000000..628ff392c18244705d0dd67612bc7dee322c28dc --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface056.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 UIComponentTextTextinputInterface056 { + @State text: string = '123456'; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .style(TextContentStyle.DEFAULT) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface057.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface057.ets new file mode 100644 index 0000000000000000000000000000000000000000..a6c90551a8a2e562d9243bcdf869a19a7daf5773 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface057.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 UIComponentTextTextinputInterface057 { + @State text: string = '123456'; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .style(TextContentStyle.INLINE) + .type(InputType.Password) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface058.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface058.ets new file mode 100644 index 0000000000000000000000000000000000000000..8f68985d8e76044acf1de6070a37ab655f6fea84 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface058.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 UIComponentTextTextinputInterface058 { + @State text: string = '123456'; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .type(InputType.Normal) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface059.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface059.ets new file mode 100644 index 0000000000000000000000000000000000000000..3e05bfeb7e3c3252fee1574c0c1bc888fe0c0f43 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface059.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 UIComponentTextTextinputInterface059 { + @State text: string = '123456'; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .fontFamily(undefined) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface060.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface060.ets new file mode 100644 index 0000000000000000000000000000000000000000..3267a2882856d4ce56a71e12c8d92633639c1db3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface060.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 UIComponentTextTextinputInterface060 { + @State text: string = '123 _&sa456'; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .type(InputType.Password) + .showPassword(true) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface061.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface061.ets new file mode 100644 index 0000000000000000000000000000000000000000..766b9cf926db4874102249c7a782aa32047166db --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface061.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 UIComponentTextTextinputInterface061 { + @State text: string = ''; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .showPasswordIcon(undefined) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface062.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface062.ets new file mode 100644 index 0000000000000000000000000000000000000000..ce1c5649ae7d1a652855256e691215623ee3bc9c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface062.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 UIComponentTextTextinputInterface062 { + @State text: string = '123 _&sa456'; + build() { + Column() { + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .type(InputType.PhoneNumber) + .showPassword(true) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface063.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface063.ets new file mode 100644 index 0000000000000000000000000000000000000000..5990f2b3af570192b86d9ac454a1d2d9a37dfee5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface063.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 UIComponentTextTextinputInterface063 { + @State text: string = '123 _&sa456'; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .type(InputType.Number) + .showPassword(true) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface064.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface064.ets new file mode 100644 index 0000000000000000000000000000000000000000..340960f51fd00f64a44d9611e0c7f7db5c9c7e37 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface064.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 UIComponentTextTextinputInterface064 { + @State text: string = '123 _&sa456'; + build() { + Column() { + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .type(InputType.Email) + .showPassword(true) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface068.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface068.ets new file mode 100644 index 0000000000000000000000000000000000000000..b4112a5edaee7e6aa367888bd0f4945c866f1378 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface068.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. + */ +import { DEFAULT } from '@ohos/hypium'; + +@Entry +@Component +struct UIComponentTextTextinputInterface068 { + @State text: string = '123 _&sa456'; + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: '这里是提示文本'}) + .placeholderColor(0x008000) + .placeholderFont({ + size:1,weight:FontWeight.Lighter, + family:'', + style:FontStyle.Normal }) + .showPassword(true) + .onTextSelectionChange((selectionStart: 45, selectionEnd: 50) => {}) + + .width('80%') + .height('50') + .margin(20) + } + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic001.ets new file mode 100644 index 0000000000000000000000000000000000000000..589339901f0b063481d54f3bd9a83a418befe363 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic001.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 UIComponentTextTextinputPolymorphic001 { + @State text: string = ''; + build() { + Column() { + TextInput({ + text: this.text, + placeholder: 'Enter your password...', + }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + .showUnderline(undefined) + } + } + } + diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic002.ets new file mode 100644 index 0000000000000000000000000000000000000000..87c4f6a54e99ce9afbba664c57971fed7dc4600d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic002.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 UIComponentTextTextinputPolymorphic002 { + @State text: string = ''; + build() { + Column() { + TextInput({ + text: this.text, + placeholder: 'Enter your password...', + }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + .showUnderline(false) + + } + } +} + diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic003.ets new file mode 100644 index 0000000000000000000000000000000000000000..01ba31d22a5d679c85806c4f2cc08adeeb3dceb1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic003.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 UIComponentTextTextinputPolymorphic003 { + @State text: string = ''; + build() { + Column() { + TextInput({ + text: this.text, + placeholder: 'Enter your password...', + }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + .showUnderline(true) + + } + } +} + diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic004.ets new file mode 100644 index 0000000000000000000000000000000000000000..8d8e356b0763a3a8f37e1dd05480e29560b644c4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic004.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 UIComponentTextTextinputPolymorphic004 { + @State text: string = ''; + build() { + Column() { + TextInput({ + text: this.text, + placeholder: 'Enter your password...', + }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + .showUnderline(true) + .showError('Err') + + } + } +} + diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic005.ets new file mode 100644 index 0000000000000000000000000000000000000000..1da8215508128000b296099482c1183f7facf509 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic005.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 UIComponentTextTextinputPolymorphic005 { + @State text: string = '0123456'; + build() { + Column() { + TextInput({ + text: this.text, + placeholder: 'Enter your password...', + }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + .showUnderline(true) + + } + } +} + diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic006.ets new file mode 100644 index 0000000000000000000000000000000000000000..315358a14f9b087b2a5717b870602e958f524cff --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic006.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 UIComponentTextTextinputPolymorphic006 { + @State text: string = ''; + build() { + Column() { + TextInput({ + text: this.text, + placeholder: 'Enter your password...', + }) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + .showError('Err') + + } + } +} + diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic007.ets new file mode 100644 index 0000000000000000000000000000000000000000..c67ac1c82ed4cf454caf6acfbac5b4030f6a61ab --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic007.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 UIComponentTextTextinputPolymorphic007 { + @State text: string = '123ab?_! A123'; + @State PassWordSrc1: Resource = $r('app.media.openeye') + @State PassWordSrc2: Resource = $r('app.media.closeeye') + @State passwordVisible: boolean = true; + + build() { + Column() { + + TextInput({ + text: this.text, + placeholder: 'Enter your password...', + }) + .type(InputType.Password) + .showPassword(true) + .passwordIcon({onIconSrc:this.PassWordSrc1, offIconSrc : this.PassWordSrc2}) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} + diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic008.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic008.ets new file mode 100644 index 0000000000000000000000000000000000000000..cce0f0e36e9217d138c52a109b18f508f46c5bea --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic008.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 UIComponentTextTextinputPolymorphic008 { + @State text: string = ''; + build() { + Column() { + + TextInput({ text: this.text, placeholder: '这是提示文本'}) + .placeholderColor(0x008000) + .width('80%') + .height('50') + .margin(20) + .fontSize(18) + .fontColor(Color.Black) + } + } +} 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 4211d54f528be3dc0a2eff23dc1461732732ead3..2e1f0188c8d1bca818b9e119d88e5efdd4d482cf 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 @@ -516,7 +516,7 @@ "testability/pages/UiTextShadow/UiTextShadow019", "testability/pages/UiTextShadow/UiTextShadow020", "testability/pages/UiTextShadow/UiTextShadow021", - "testability/pages/UiTextShadow/UiTextShadow022" + "testability/pages/UiTextShadow/UiTextShadow022", "testability/pages/UiComponentDividerStyle/UiComponentDividerStyle001", "testability/pages/UiComponentDividerStyle/UiComponentDividerStyle002", "testability/pages/UiComponentDividerStyle/UiComponentDividerStyle003", @@ -768,10 +768,101 @@ "testability/pages/UiComponentTextModifier/UiComponentTextModifier093", "testability/pages/UiComponentTextModifier/UiComponentTextModifier094", "testability/pages/UiComponentTextModifier/UiComponentTextModifier095", - "testability/pages/UiComponentTextModifier/UiComponentTextModifier096" "testability/pages/UIComponentCreateColor/UIComponentCreateColor005", "testability/pages/UIComponentCreateColor/UIComponentCreateColor010", "testability/pages/UIComponentCreateColor/UIComponentCreateColor014", + "testability/pages/UiComponentTextModifier/UiComponentTextModifier096", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi001", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi002", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi003", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi004", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi005", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi006", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi007", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi008", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi009", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi010", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi011", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi012", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi013", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi015", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi016", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi017", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi018", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi019", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi020", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi021", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi022", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi023", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi024", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi026", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi027", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi028", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi030", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi031", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi032", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi033", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi034", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi035", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi036", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi037", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi038", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi039", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi040", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi041", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi042", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi043", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi044", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi045", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi046", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi048", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi049", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi050", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi051", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi052", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi053", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi054", + "testability/pages/UIComponentTextCapi/UIComponentTextCapi055", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface002", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface007", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface008", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface009", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface010", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface011", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface012", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface013", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface014", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface015", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface016", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface017", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface018", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface019", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface020", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface021", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface022", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface028", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface033", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface034", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface041", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface048", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface049", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface056", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface057", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface058", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface059", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface060", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface061", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface062", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface063", + "testability/pages/UIComponentTextTextinputInterface/UIComponentTextTextinputInterface064", + "testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic001", + "testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic002", + "testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic003", + "testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic004", + "testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic005", + "testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic006", + "testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic007", + "testability/pages/UIComponentTextTextinputPolymorphic/UIComponentTextTextinputPolymorphic008" "testability/pages/UiComponentWordbreak/UiComponentWordbreak001", "testability/pages/UiComponentWordbreak/UiComponentWordbreak002", "testability/pages/UiComponentWordbreak/UiComponentWordbreak003",