From b133b18e5b30fca38e112d2faa496a810c71278e Mon Sep 17 00:00:00 2001 From: yuxiangxin Date: Mon, 12 Aug 2024 14:49:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yuxiangxin --- ...tAttributeStringModifyingStyle001.test.ets | 59 ++ ...tAttributeStringModifyingStyle002.test.ets | 59 ++ ...tAttributeStringModifyingStyle003.test.ets | 59 ++ ...tAttributeStringModifyingStyle004.test.ets | 59 ++ ...tAttributeStringModifyingStyle005.test.ets | 59 ++ ...tAttributeStringModifyingStyle006.test.ets | 59 ++ ...ributeStringModifyingStyleText001.test.ets | 59 ++ ...ributeStringModifyingStyleText002.test.ets | 59 ++ ...ributeStringModifyingStyleText003.test.ets | 59 ++ ...ributeStringModifyingStyleText004.test.ets | 59 ++ ...ributeStringModifyingStyleText005.test.ets | 59 ++ ...ntAttributeStringModifyingText001.test.ets | 59 ++ ...ntAttributeStringModifyingText002.test.ets | 59 ++ ...ntAttributeStringModifyingText003.test.ets | 59 ++ ...ntAttributeStringModifyingText004.test.ets | 59 ++ ...ntAttributeStringModifyingText005.test.ets | 59 ++ ...ntAttributeStringModifyingText006.test.ets | 59 ++ ...ntAttributeStringModifyingText007.test.ets | 59 ++ ...ntAttributeStringModifyingText008.test.ets | 59 ++ ...ntAttributeStringModifyingText009.test.ets | 59 ++ ...ntAttributeStringModifyingText010.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest001.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest002.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest003.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest004.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest005.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest006.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest007.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest008.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest009.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest010.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest011.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest012.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest013.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest014.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest015.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest016.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest017.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest018.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest019.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest020.test.ets | 59 ++ ...ComponentLayoutCommonPixelTest021.test.ets | 59 ++ ...tAttributeStringConstructsTest001.test.ets | 59 ++ ...tAttributeStringConstructsTest002.test.ets | 59 ++ ...tAttributeStringConstructsTest003.test.ets | 59 ++ ...tAttributeStringConstructsTest004.test.ets | 59 ++ ...tAttributeStringConstructsTest005.test.ets | 59 ++ ...tAttributeStringConstructsTest006.test.ets | 59 ++ ...tAttributeStringConstructsTest007.test.ets | 59 ++ ...tAttributeStringConstructsTest008.test.ets | 59 ++ ...tAttributeStringConstructsTest009.test.ets | 59 ++ ...tAttributeStringConstructsTest010.test.ets | 59 ++ ...tAttributeStringConstructsTest011.test.ets | 59 ++ ...tAttributeStringConstructsTest012.test.ets | 59 ++ ...tAttributeStringConstructsTest013.test.ets | 59 ++ ...tAttributeStringConstructsTest014.test.ets | 59 ++ ...tAttributeStringConstructsTest015.test.ets | 63 +++ ...tAttributeStringConstructsTest016.test.ets | 59 ++ ...tAttributeStringConstructsTest017.test.ets | 59 ++ ...tAttributeStringConstructsTest018.test.ets | 59 ++ ...tAttributeStringConstructsTest019.test.ets | 59 ++ ...tAttributeStringConstructsTest020.test.ets | 59 ++ ...tAttributeStringConstructsTest021.test.ets | 59 ++ ...tAttributeStringConstructsTest022.test.ets | 59 ++ ...tAttributeStringConstructsTest023.test.ets | 59 ++ ...tAttributeStringConstructsTest024.test.ets | 59 ++ ...tAttributeStringConstructsTest025.test.ets | 59 ++ ...tAttributeStringConstructsTest026.test.ets | 58 ++ ...tAttributeStringConstructsTest027.test.ets | 59 ++ ...tAttributeStringConstructsTest028.test.ets | 59 ++ ...tAttributeStringConstructsTest029.test.ets | 59 ++ ...mponentTextAttributeStringTest001.test.ets | 59 ++ ...mponentTextAttributeStringTest002.test.ets | 59 ++ ...mponentTextAttributeStringTest003.test.ets | 59 ++ ...mponentTextAttributeStringTest004.test.ets | 59 ++ ...mponentTextAttributeStringTest005.test.ets | 59 ++ ...mponentTextAttributeStringTest006.test.ets | 59 ++ ...mponentTextAttributeStringTest007.test.ets | 59 ++ ...mponentTextAttributeStringTest008.test.ets | 59 ++ ...mponentTextAttributeStringTest009.test.ets | 59 ++ ...mponentTextAttributeStringTest010.test.ets | 59 ++ ...mponentTextAttributeStringTest011.test.ets | 59 ++ ...mponentTextAttributeStringTest012.test.ets | 59 ++ ...mponentTextAttributeStringTest013.test.ets | 59 ++ ...mponentTextAttributeStringTest014.test.ets | 59 ++ ...mponentTextAttributeStringTest015.test.ets | 59 ++ ...mponentTextAttributeStringTest016.test.ets | 59 ++ ...mponentTextAttributeStringTest017.test.ets | 59 ++ ...mponentTextAttributeStringTest018.test.ets | 59 ++ ...mponentTextAttributeStringTest019.test.ets | 59 ++ ...mponentTextAttributeStringTest020.test.ets | 59 ++ ...mponentTextAttributeStringTest021.test.ets | 59 ++ ...mponentTextAttributeStringTest022.test.ets | 59 ++ ...mponentTextAttributeStringTest023.test.ets | 59 ++ ...mponentTextAttributeStringTest024.test.ets | 59 ++ ...mponentTextAttributeStringTest025.test.ets | 59 ++ ...mponentTextAttributeStringTest026.test.ets | 59 ++ ...mponentTextAttributeStringTest027.test.ets | 59 ++ ...mponentTextAttributeStringTest028.test.ets | 59 ++ ...mponentTextAttributeStringTest029.test.ets | 59 ++ ...mponentTextAttributeStringTest030.test.ets | 59 ++ ...mponentTextAttributeStringTest031.test.ets | 59 ++ ...mponentTextAttributeStringTest032.test.ets | 59 ++ ...mponentTextAttributeStringTest033.test.ets | 59 ++ ...mponentTextAttributeStringTest034.test.ets | 59 ++ ...mponentTextAttributeStringTest035.test.ets | 59 ++ ...mponentTextAttributeStringTest036.test.ets | 59 ++ ...mponentTextAttributeStringTest037.test.ets | 59 ++ ...mponentTextAttributeStringTest038.test.ets | 59 ++ ...mponentTextAttributeStringTest039.test.ets | 59 ++ ...mponentTextAttributeStringTest040.test.ets | 59 ++ ...mponentTextAttributeStringTest041.test.ets | 59 ++ ...mponentTextAttributeStringTest042.test.ets | 59 ++ ...mponentTextAttributeStringTest043.test.ets | 59 ++ ...mponentTextAttributeStringTest044.test.ets | 59 ++ ...mponentTextAttributeStringTest045.test.ets | 59 ++ ...mponentTextAttributeStringTest046.test.ets | 59 ++ ...mponentTextAttributeStringTest047.test.ets | 59 ++ ...mponentTextAttributeStringTest048.test.ets | 59 ++ ...mponentTextAttributeStringTest049.test.ets | 59 ++ ...mponentTextAttributeStringTest050.test.ets | 59 ++ ...mponentTextAttributeStringTest051.test.ets | 59 ++ ...mponentTextAttributeStringTest052.test.ets | 59 ++ ...mponentTextAttributeStringTest053.test.ets | 59 ++ ...mponentTextAttributeStringTest054.test.ets | 59 ++ ...mponentTextAttributeStringTest055.test.ets | 59 ++ ...mponentTextAttributeStringTest056.test.ets | 59 ++ ...mponentTextAttributeStringTest057.test.ets | 59 ++ ...mponentTextAttributeStringTest058.test.ets | 59 ++ ...mponentTextAttributeStringTest059.test.ets | 59 ++ ...mponentTextAttributeStringTest060.test.ets | 59 ++ .../entry/src/ohosTest/ets/test/List.test.ets | 529 +++++++++++++++++- .../UiTextBrightenTest001.test.ets | 59 ++ .../UiTextBrightenTest002.test.ets | 59 ++ .../UiTextBrightenTest003.test.ets | 59 ++ .../UiTextBrightenTest004.test.ets | 59 ++ .../UiTextBrightenTest005.test.ets | 59 ++ .../UiTextBrightenTest006.test.ets | 59 ++ .../UiTextBrightenTest007.test.ets | 59 ++ .../UiTextBrightenTest008.test.ets | 59 ++ .../UiTextBrightenTest009.test.ets | 59 ++ .../UiTextBrightenTest010.test.ets | 59 ++ .../UiTextBrightenTest011.test.ets | 59 ++ .../UiTextBrightenTest012.test.ets | 59 ++ .../UiTextBrightenTest013.test.ets | 59 ++ .../UiTextBrightenTest014.test.ets | 59 ++ .../UiTextBrightenTest015.test.ets | 59 ++ .../UiTextBrightenTest016.test.ets | 59 ++ .../UiTextBrightenTest017.test.ets | 59 ++ .../UiTextBrightenTest018.test.ets | 59 ++ .../UiTextBrightenTest019.test.ets | 59 ++ .../UiTextBrightenTest020.test.ets | 59 ++ .../UiTextBrightenTest021.test.ets | 59 ++ .../UiTextBrightenTest022.test.ets | 59 ++ .../UiTextBrightenTest023.test.ets | 59 ++ .../UiTextBrightenTest024.test.ets | 59 ++ .../UiTextBrightenTest025.test.ets | 59 ++ .../UiTextBrightenTest026.test.ets | 59 ++ .../UiTextBrightenTest027.test.ets | 59 ++ .../UiTextBrightenTest028.test.ets | 59 ++ .../UiTextBrightenTest029.test.ets | 59 ++ .../UiTextBrightenTest030.test.ets | 59 ++ .../UiTextBrightenTest031.test.ets | 59 ++ .../UiTextBrightenTest032.test.ets | 59 ++ .../UiTextBrightenTest033.test.ets | 59 ++ .../UiTextBrightenTest034.test.ets | 59 ++ .../UiTextBrightenTest035.test.ets | 59 ++ .../UiTextBrightenTest036.test.ets | 59 ++ .../UiTextBrightenTest037.test.ets | 59 ++ .../UiTextBrightenTest038.test.ets | 59 ++ .../UiTextBrightenTest039.test.ets | 59 ++ .../UiTextBrightenTest040.test.ets | 59 ++ .../UiTextBrightenTest041.test.ets | 59 ++ .../UiTextBrightenTest042.test.ets | 59 ++ .../UiTextBrightenTest043.test.ets | 59 ++ .../UiTextBrightenTest044.test.ets | 59 ++ .../UiTextBrightenTest045.test.ets | 59 ++ .../UiTextBrightenTest046.test.ets | 59 ++ .../UiTextBrightenTest047.test.ets | 59 ++ .../UiTextBrightenTest048.test.ets | 59 ++ .../UiTextBrightenTest049.test.ets | 59 ++ .../UiTextBrightenTest050.test.ets | 59 ++ .../UiTextBrightenTest051.test.ets | 59 ++ .../UiTextBrightenTest052.test.ets | 59 ++ .../UiTextBrightenTest053.test.ets | 59 ++ .../UiTextBrightenTest054.test.ets | 59 ++ .../UiTextBrightenTest055.test.ets | 59 ++ .../UiTextBrightenTest056.test.ets | 59 ++ .../UiTextBrightenTest057.test.ets | 59 ++ .../UiTextBrightenTest058.test.ets | 59 ++ .../UiTextBrightenTest059.test.ets | 59 ++ .../UiTextBrightenTest060.test.ets | 59 ++ .../UiTextBrightenTest061.test.ets | 59 ++ .../UiTextBrightenTest062.test.ets | 59 ++ .../UiTextBrightenTest063.test.ets | 59 ++ .../UiTextBrightenTest064.test.ets | 59 ++ .../UiTextBrightenTest065.test.ets | 59 ++ .../UiTextBrightenTest066.test.ets | 59 ++ .../UiTextBrightenTest067.test.ets | 59 ++ .../UiTextBrightenTest068.test.ets | 59 ++ .../UiTextBrightenTest069.test.ets | 59 ++ .../UiTextBrightenTest070.test.ets | 59 ++ .../UiTextBrightenTest071.test.ets | 59 ++ .../UiTextBrightenTest072.test.ets | 59 ++ .../UiTextBrightenTest073.test.ets | 59 ++ .../UiTextBrightenTest074.test.ets | 59 ++ .../UiTextBrightenTest075.test.ets | 59 ++ .../UiTextBrightenTest076.test.ets | 59 ++ .../UiTextBrightenTest077.test.ets | 59 ++ .../UiTextBrightenTest078.test.ets | 59 ++ .../UiTextBrightenTest079.test.ets | 59 ++ .../UiTextBrightenTest080.test.ets | 59 ++ .../UiTextBrightenTest081.test.ets | 59 ++ .../UiTextBrightenTest082.test.ets | 59 ++ .../UiTextBrightenTest083.test.ets | 59 ++ .../UiTextBrightenTest084.test.ets | 59 ++ .../UiTextBrightenTest085.test.ets | 59 ++ .../UiTextBrightenTest086.test.ets | 59 ++ .../UiTextBrightenTest087.test.ets | 59 ++ .../UiTextBrightenTest088.test.ets | 59 ++ .../UiTextBrightenTest089.test.ets | 59 ++ .../UiTextBrightenTest090.test.ets | 59 ++ .../UiTextBrightenTest091.test.ets | 59 ++ .../UiTextBrightenTest092.test.ets | 59 ++ .../UiTextBrightenTest093.test.ets | 59 ++ .../UiTextBrightenTest094.test.ets | 59 ++ .../UiTextBrightenTest095.test.ets | 59 ++ .../UiTextBrightenTest096.test.ets | 59 ++ .../UiTextBrightenTest097.test.ets | 59 ++ .../UiTextBrightenTest098.test.ets | 59 ++ .../UiTextBrightenTest099.test.ets | 59 ++ .../UiTextBrightenTest100.test.ets | 59 ++ .../UiTextBrightenTest101.test.ets | 59 ++ .../UiTextBrightenTest102.test.ets | 59 ++ .../UiTextBrightenTest103.test.ets | 59 ++ .../UiTextBrightenTest104.test.ets | 59 ++ .../UiTextBrightenTest105.test.ets | 59 ++ .../UiTextBrightenTest106.test.ets | 59 ++ .../UiTextBrightenTest107.test.ets | 59 ++ .../UiTextBrightenTest108.test.ets | 59 ++ .../UiTextBrightenTest109.test.ets | 59 ++ .../UiTextBrightenTest110.test.ets | 59 ++ .../UiTextBrightenTest111.test.ets | 59 ++ .../UiTextBrightenTest112.test.ets | 59 ++ .../UiTextShadowTest001.test.ets | 59 ++ .../UiTextShadowTest002.test.ets | 59 ++ .../UiTextShadowTest003.test.ets | 59 ++ .../UiTextShadowTest004.test.ets | 59 ++ .../UiTextShadowTest005.test.ets | 59 ++ .../UiTextShadowTest006.test.ets | 59 ++ .../UiTextShadowTest007.test.ets | 59 ++ .../UiTextShadowTest008.test.ets | 59 ++ .../UiTextShadowTest009.test.ets | 59 ++ .../UiTextShadowTest010.test.ets | 59 ++ .../UiTextShadowTest011.test.ets | 59 ++ .../UiTextShadowTest012.test.ets | 59 ++ .../UiTextShadowTest013.test.ets | 59 ++ .../UiTextShadowTest014.test.ets | 59 ++ .../UiTextShadowTest015.test.ets | 59 ++ .../UiTextShadowTest016.test.ets | 59 ++ .../UiTextShadowTest017.test.ets | 59 ++ .../UiTextShadowTest018.test.ets | 59 ++ .../UiTextShadowTest019.test.ets | 59 ++ .../UiTextShadowTest020.test.ets | 59 ++ ...ponentAttributeStringModifyingStyle001.ets | 50 ++ ...ponentAttributeStringModifyingStyle002.ets | 56 ++ ...ponentAttributeStringModifyingStyle003.ets | 49 ++ ...ponentAttributeStringModifyingStyle004.ets | 45 ++ ...ponentAttributeStringModifyingStyle005.ets | 55 ++ ...ponentAttributeStringModifyingStyle006.ets | 66 +++ ...ntAttributeStringModifyingStyleText001.ets | 49 ++ ...ntAttributeStringModifyingStyleText002.ets | 57 ++ ...ntAttributeStringModifyingStyleText003.ets | 50 ++ ...ntAttributeStringModifyingStyleText004.ets | 49 ++ ...ntAttributeStringModifyingStyleText005.ets | 51 ++ ...mponentAttributeStringModifyingText001.ets | 43 ++ ...mponentAttributeStringModifyingText002.ets | 46 ++ ...mponentAttributeStringModifyingText003.ets | 48 ++ ...mponentAttributeStringModifyingText004.ets | 46 ++ ...mponentAttributeStringModifyingText005.ets | 48 ++ ...mponentAttributeStringModifyingText006.ets | 47 ++ ...mponentAttributeStringModifyingText007.ets | 48 ++ ...mponentAttributeStringModifyingText008.ets | 46 ++ ...mponentAttributeStringModifyingText009.ets | 48 ++ ...mponentAttributeStringModifyingText010.ets | 48 ++ .../ComponentLayoutCommonPixel001.ets | 38 ++ .../ComponentLayoutCommonPixel002.ets | 38 ++ .../ComponentLayoutCommonPixel003.ets | 39 ++ .../ComponentLayoutCommonPixel004.ets | 39 ++ .../ComponentLayoutCommonPixel005.ets | 40 ++ .../ComponentLayoutCommonPixel006.ets | 40 ++ .../ComponentLayoutCommonPixel007.ets | 40 ++ .../ComponentLayoutCommonPixel008.ets | 40 ++ .../ComponentLayoutCommonPixel009.ets | 41 ++ .../ComponentLayoutCommonPixel010.ets | 41 ++ .../ComponentLayoutCommonPixel011.ets | 41 ++ .../ComponentLayoutCommonPixel012.ets | 41 ++ .../ComponentLayoutCommonPixel013.ets | 43 ++ .../ComponentLayoutCommonPixel014.ets | 49 ++ .../ComponentLayoutCommonPixel015.ets | 49 ++ .../ComponentLayoutCommonPixel016.ets | 49 ++ .../ComponentLayoutCommonPixel017.ets | 52 ++ .../ComponentLayoutCommonPixel018.ets | 52 ++ .../ComponentLayoutCommonPixel019.ets | 52 ++ .../ComponentLayoutCommonPixel020.ets | 51 ++ .../ComponentLayoutCommonPixel021.ets | 33 ++ .../ComponentTextAttributeString001.ets | 43 ++ .../ComponentTextAttributeString002.ets | 43 ++ .../ComponentTextAttributeString003.ets | 43 ++ .../ComponentTextAttributeString004.ets | 43 ++ .../ComponentTextAttributeString005.ets | 43 ++ .../ComponentTextAttributeString006.ets | 43 ++ .../ComponentTextAttributeString007.ets | 43 ++ .../ComponentTextAttributeString008.ets | 43 ++ .../ComponentTextAttributeString009.ets | 43 ++ .../ComponentTextAttributeString010.ets | 43 ++ .../ComponentTextAttributeString011.ets | 43 ++ .../ComponentTextAttributeString012.ets | 43 ++ .../ComponentTextAttributeString013.ets | 43 ++ .../ComponentTextAttributeString014.ets | 43 ++ .../ComponentTextAttributeString015.ets | 44 ++ .../ComponentTextAttributeString016.ets | 43 ++ .../ComponentTextAttributeString017.ets | 42 ++ .../ComponentTextAttributeString018.ets | 43 ++ .../ComponentTextAttributeString019.ets | 43 ++ .../ComponentTextAttributeString020.ets | 43 ++ .../ComponentTextAttributeString021.ets | 43 ++ .../ComponentTextAttributeString022.ets | 43 ++ .../ComponentTextAttributeString023.ets | 43 ++ .../ComponentTextAttributeString024.ets | 43 ++ .../ComponentTextAttributeString025.ets | 43 ++ .../ComponentTextAttributeString026.ets | 43 ++ .../ComponentTextAttributeString027.ets | 43 ++ .../ComponentTextAttributeString028.ets | 43 ++ .../ComponentTextAttributeString029.ets | 43 ++ .../ComponentTextAttributeString030.ets | 43 ++ .../ComponentTextAttributeString031.ets | 43 ++ .../ComponentTextAttributeString032.ets | 43 ++ .../ComponentTextAttributeString033.ets | 43 ++ .../ComponentTextAttributeString034.ets | 43 ++ .../ComponentTextAttributeString035.ets | 43 ++ .../ComponentTextAttributeString036.ets | 43 ++ .../ComponentTextAttributeString037.ets | 43 ++ .../ComponentTextAttributeString038.ets | 43 ++ .../ComponentTextAttributeString039.ets | 43 ++ .../ComponentTextAttributeString040.ets | 43 ++ .../ComponentTextAttributeString041.ets | 43 ++ .../ComponentTextAttributeString042.ets | 43 ++ .../ComponentTextAttributeString043.ets | 43 ++ .../ComponentTextAttributeString044.ets | 46 ++ .../ComponentTextAttributeString045.ets | 50 ++ .../ComponentTextAttributeString046.ets | 54 ++ .../ComponentTextAttributeString047.ets | 54 ++ .../ComponentTextAttributeString048.ets | 54 ++ .../ComponentTextAttributeString049.ets | 99 ++++ .../ComponentTextAttributeString050.ets | 99 ++++ .../ComponentTextAttributeString051.ets | 53 ++ .../ComponentTextAttributeString052.ets | 53 ++ .../ComponentTextAttributeString053.ets | 53 ++ .../ComponentTextAttributeString054.ets | 59 ++ .../ComponentTextAttributeString055.ets | 58 ++ .../ComponentTextAttributeString056.ets | 59 ++ .../ComponentTextAttributeString057.ets | 57 ++ .../ComponentTextAttributeString058.ets | 51 ++ .../ComponentTextAttributeString059.ets | 52 ++ .../ComponentTextAttributeString060.ets | 54 ++ ...ponentTextAttributeStringConstructs001.ets | 42 ++ ...ponentTextAttributeStringConstructs002.ets | 42 ++ ...ponentTextAttributeStringConstructs003.ets | 43 ++ ...ponentTextAttributeStringConstructs004.ets | 43 ++ ...ponentTextAttributeStringConstructs005.ets | 42 ++ ...ponentTextAttributeStringConstructs006.ets | 41 ++ ...ponentTextAttributeStringConstructs007.ets | 42 ++ ...ponentTextAttributeStringConstructs008.ets | 40 ++ ...ponentTextAttributeStringConstructs009.ets | 42 ++ ...ponentTextAttributeStringConstructs010.ets | 41 ++ ...ponentTextAttributeStringConstructs011.ets | 41 ++ ...ponentTextAttributeStringConstructs012.ets | 42 ++ ...ponentTextAttributeStringConstructs013.ets | 42 ++ ...ponentTextAttributeStringConstructs014.ets | 44 ++ ...ponentTextAttributeStringConstructs015.ets | 43 ++ ...ponentTextAttributeStringConstructs016.ets | 44 ++ ...ponentTextAttributeStringConstructs017.ets | 44 ++ ...ponentTextAttributeStringConstructs018.ets | 44 ++ ...ponentTextAttributeStringConstructs019.ets | 44 ++ ...ponentTextAttributeStringConstructs020.ets | 43 ++ ...ponentTextAttributeStringConstructs021.ets | 47 ++ ...ponentTextAttributeStringConstructs022.ets | 51 ++ ...ponentTextAttributeStringConstructs023.ets | 42 ++ ...ponentTextAttributeStringConstructs024.ets | 51 ++ ...ponentTextAttributeStringConstructs025.ets | 50 ++ ...ponentTextAttributeStringConstructs026.ets | 42 ++ ...ponentTextAttributeStringConstructs027.ets | 51 ++ ...ponentTextAttributeStringConstructs028.ets | 77 +++ ...ponentTextAttributeStringConstructs029.ets | 54 ++ .../UiTextBrighten/UiTextBrighten001.ets | 41 ++ .../UiTextBrighten/UiTextBrighten002.ets | 44 ++ .../UiTextBrighten/UiTextBrighten003.ets | 41 ++ .../UiTextBrighten/UiTextBrighten004.ets | 45 ++ .../UiTextBrighten/UiTextBrighten005.ets | 45 ++ .../UiTextBrighten/UiTextBrighten006.ets | 58 ++ .../UiTextBrighten/UiTextBrighten007.ets | 45 ++ .../UiTextBrighten/UiTextBrighten008.ets | 45 ++ .../UiTextBrighten/UiTextBrighten009.ets | 45 ++ .../UiTextBrighten/UiTextBrighten010.ets | 58 ++ .../UiTextBrighten/UiTextBrighten011.ets | 45 ++ .../UiTextBrighten/UiTextBrighten012.ets | 57 ++ .../UiTextBrighten/UiTextBrighten013.ets | 57 ++ .../UiTextBrighten/UiTextBrighten014.ets | 45 ++ .../UiTextBrighten/UiTextBrighten015.ets | 45 ++ .../UiTextBrighten/UiTextBrighten016.ets | 43 ++ .../UiTextBrighten/UiTextBrighten017.ets | 43 ++ .../UiTextBrighten/UiTextBrighten018.ets | 111 ++++ .../UiTextBrighten/UiTextBrighten019.ets | 92 +++ .../UiTextBrighten/UiTextBrighten020.ets | 57 ++ .../UiTextBrighten/UiTextBrighten021.ets | 43 ++ .../UiTextBrighten/UiTextBrighten022.ets | 44 ++ .../UiTextBrighten/UiTextBrighten023.ets | 42 ++ .../UiTextBrighten/UiTextBrighten024.ets | 42 ++ .../UiTextBrighten/UiTextBrighten025.ets | 46 ++ .../UiTextBrighten/UiTextBrighten026.ets | 40 ++ .../UiTextBrighten/UiTextBrighten027.ets | 43 ++ .../UiTextBrighten/UiTextBrighten028.ets | 40 ++ .../UiTextBrighten/UiTextBrighten029.ets | 43 ++ .../UiTextBrighten/UiTextBrighten030.ets | 43 ++ .../UiTextBrighten/UiTextBrighten031.ets | 56 ++ .../UiTextBrighten/UiTextBrighten032.ets | 43 ++ .../UiTextBrighten/UiTextBrighten033.ets | 43 ++ .../UiTextBrighten/UiTextBrighten034.ets | 43 ++ .../UiTextBrighten/UiTextBrighten035.ets | 56 ++ .../UiTextBrighten/UiTextBrighten036.ets | 47 ++ .../UiTextBrighten/UiTextBrighten037.ets | 43 ++ .../UiTextBrighten/UiTextBrighten038.ets | 56 ++ .../UiTextBrighten/UiTextBrighten039.ets | 45 ++ .../UiTextBrighten/UiTextBrighten040.ets | 49 ++ .../UiTextBrighten/UiTextBrighten041.ets | 90 +++ .../UiTextBrighten/UiTextBrighten042.ets | 40 ++ .../UiTextBrighten/UiTextBrighten043.ets | 40 ++ .../UiTextBrighten/UiTextBrighten044.ets | 40 ++ .../UiTextBrighten/UiTextBrighten045.ets | 40 ++ .../UiTextBrighten/UiTextBrighten046.ets | 40 ++ .../UiTextBrighten/UiTextBrighten047.ets | 40 ++ .../UiTextBrighten/UiTextBrighten048.ets | 94 ++++ .../UiTextBrighten/UiTextBrighten049.ets | 89 +++ .../UiTextBrighten/UiTextBrighten050.ets | 89 +++ .../UiTextBrighten/UiTextBrighten051.ets | 63 +++ .../UiTextBrighten/UiTextBrighten052.ets | 40 ++ .../UiTextBrighten/UiTextBrighten053.ets | 42 ++ .../UiTextBrighten/UiTextBrighten054.ets | 42 ++ .../UiTextBrighten/UiTextBrighten055.ets | 42 ++ .../UiTextBrighten/UiTextBrighten056.ets | 36 ++ .../UiTextBrighten/UiTextBrighten057.ets | 39 ++ .../UiTextBrighten/UiTextBrighten058.ets | 36 ++ .../UiTextBrighten/UiTextBrighten059.ets | 93 +++ .../UiTextBrighten/UiTextBrighten060.ets | 41 ++ .../UiTextBrighten/UiTextBrighten061.ets | 41 ++ .../UiTextBrighten/UiTextBrighten062.ets | 51 ++ .../UiTextBrighten/UiTextBrighten063.ets | 42 ++ .../UiTextBrighten/UiTextBrighten064.ets | 42 ++ .../UiTextBrighten/UiTextBrighten065.ets | 42 ++ .../UiTextBrighten/UiTextBrighten066.ets | 52 ++ .../UiTextBrighten/UiTextBrighten067.ets | 42 ++ .../UiTextBrighten/UiTextBrighten068.ets | 42 ++ .../UiTextBrighten/UiTextBrighten069.ets | 52 ++ .../UiTextBrighten/UiTextBrighten070.ets | 48 ++ .../UiTextBrighten/UiTextBrighten071.ets | 51 ++ .../UiTextBrighten/UiTextBrighten072.ets | 51 ++ .../UiTextBrighten/UiTextBrighten073.ets | 91 +++ .../UiTextBrighten/UiTextBrighten074.ets | 43 ++ .../UiTextBrighten/UiTextBrighten075.ets | 43 ++ .../UiTextBrighten/UiTextBrighten076.ets | 43 ++ .../UiTextBrighten/UiTextBrighten077.ets | 70 +++ .../UiTextBrighten/UiTextBrighten078.ets | 44 ++ .../UiTextBrighten/UiTextBrighten079.ets | 43 ++ .../UiTextBrighten/UiTextBrighten080.ets | 43 ++ .../UiTextBrighten/UiTextBrighten081.ets | 43 ++ .../UiTextBrighten/UiTextBrighten082.ets | 46 ++ .../UiTextBrighten/UiTextBrighten083.ets | 49 ++ .../UiTextBrighten/UiTextBrighten084.ets | 46 ++ .../UiTextBrighten/UiTextBrighten085.ets | 109 ++++ .../UiTextBrighten/UiTextBrighten086.ets | 49 ++ .../UiTextBrighten/UiTextBrighten087.ets | 49 ++ .../UiTextBrighten/UiTextBrighten088.ets | 71 +++ .../UiTextBrighten/UiTextBrighten089.ets | 49 ++ .../UiTextBrighten/UiTextBrighten090.ets | 49 ++ .../UiTextBrighten/UiTextBrighten091.ets | 49 ++ .../UiTextBrighten/UiTextBrighten092.ets | 69 +++ .../UiTextBrighten/UiTextBrighten093.ets | 47 ++ .../UiTextBrighten/UiTextBrighten094.ets | 47 ++ .../UiTextBrighten/UiTextBrighten095.ets | 69 +++ .../UiTextBrighten/UiTextBrighten096.ets | 64 +++ .../UiTextBrighten/UiTextBrighten097.ets | 69 +++ .../UiTextBrighten/UiTextBrighten098.ets | 54 ++ .../UiTextBrighten/UiTextBrighten099.ets | 52 ++ .../UiTextBrighten/UiTextBrighten100.ets | 52 ++ .../UiTextBrighten/UiTextBrighten101.ets | 52 ++ .../UiTextBrighten/UiTextBrighten102.ets | 80 +++ .../UiTextBrighten/UiTextBrighten103.ets | 69 +++ .../UiTextBrighten/UiTextBrighten104.ets | 66 +++ .../UiTextBrighten/UiTextBrighten105.ets | 95 ++++ .../UiTextBrighten/UiTextBrighten106.ets | 51 ++ .../UiTextBrighten/UiTextBrighten107.ets | 51 ++ .../UiTextBrighten/UiTextBrighten108.ets | 78 +++ .../UiTextBrighten/UiTextBrighten109.ets | 52 ++ .../UiTextBrighten/UiTextBrighten110.ets | 84 +++ .../UiTextBrighten/UiTextBrighten111.ets | 77 +++ .../UiTextBrighten/UiTextBrighten112.ets | 77 +++ .../resources/base/profile/test_pages.json | 265 ++++++++- 508 files changed, 28418 insertions(+), 2 deletions(-) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle001.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle002.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle003.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle004.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle005.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle006.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText001.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText002.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText003.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText004.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText005.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText001.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText002.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText003.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText004.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText005.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText006.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText007.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText008.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText009.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText010.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest001.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest002.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest003.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest004.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest005.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest006.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest007.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest008.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest009.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest010.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest011.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest012.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest013.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest014.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest015.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest016.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest017.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest018.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest019.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest020.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest021.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest001.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest002.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest003.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest004.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest005.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest006.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest007.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest008.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest009.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest010.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest011.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest012.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest013.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest014.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest015.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest016.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest017.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest018.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest019.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest020.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest021.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest022.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest023.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest024.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest025.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest026.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest027.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest028.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest029.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest001.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest002.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest003.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest004.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest005.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest006.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest007.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest008.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest009.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest010.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest011.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest012.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest013.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest014.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest015.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest016.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest017.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest018.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest019.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest020.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest021.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest022.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest023.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest024.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest025.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest026.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest027.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest028.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest029.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest030.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest031.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest032.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest033.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest034.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest035.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest036.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest037.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest038.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest039.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest040.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest041.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest042.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest043.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest044.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest045.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest046.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest047.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest048.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest049.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest050.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest051.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest052.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest053.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest054.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest055.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest056.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest057.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest058.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest059.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest060.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest001.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest002.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest003.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest004.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest005.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest006.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest007.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest008.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest009.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest010.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest011.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest012.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest013.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest014.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest015.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest016.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest017.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest018.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest019.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest020.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest021.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest022.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest023.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest024.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest025.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest026.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest027.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest028.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest029.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest030.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest031.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest032.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest033.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest034.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest035.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest036.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest037.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest038.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest039.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest040.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest041.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest042.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest043.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest044.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest045.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest046.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest047.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest048.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest049.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest050.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest051.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest052.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest053.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest054.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest055.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest056.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest057.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest058.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest059.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest060.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest061.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest062.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest063.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest064.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest065.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest066.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest067.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest068.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest069.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest070.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest071.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest072.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest073.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest074.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest075.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest076.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest077.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest078.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest079.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest080.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest081.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest082.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest083.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest084.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest085.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest086.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest087.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest088.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest089.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest090.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest091.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest092.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest093.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest094.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest095.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest096.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest097.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest098.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest099.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest100.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest101.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest102.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest103.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest104.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest105.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest106.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest107.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest108.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest109.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest110.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest111.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest112.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest001.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest002.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest003.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest004.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest005.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest006.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest007.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest008.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest009.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest010.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest011.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest012.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest013.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest014.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest015.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest016.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest017.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest018.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest019.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest020.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle001.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle002.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle003.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle004.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle005.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle006.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText001.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText002.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText003.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText004.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText005.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText001.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText002.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText003.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText004.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText005.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText006.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText007.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText008.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText009.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText010.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel001.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel002.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel003.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel004.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel005.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel006.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel007.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel008.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel009.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel010.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel011.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel012.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel013.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel014.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel015.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel016.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel017.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel018.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel019.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel020.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel021.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString001.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString002.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString003.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString004.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString005.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString006.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString007.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString008.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString009.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString010.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString011.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString012.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString013.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString014.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString015.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString016.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString017.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString018.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString019.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString020.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString021.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString022.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString023.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString024.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString025.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString026.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString027.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString028.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString029.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString030.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString031.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString032.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString033.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString034.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString035.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString036.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString037.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString038.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString039.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString040.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString041.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString042.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString043.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString044.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString045.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString046.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString047.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString048.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString049.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString050.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString051.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString052.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString053.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString054.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString055.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString056.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString057.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString058.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString059.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString060.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs001.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs002.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs003.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs004.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs005.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs006.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs007.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs008.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs009.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs010.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs011.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs012.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs013.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs014.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs015.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs016.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs017.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs018.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs019.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs020.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs021.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs022.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs023.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs024.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs025.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs026.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs027.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs028.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs029.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten001.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten002.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten003.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten004.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten005.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten006.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten007.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten008.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten009.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten010.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten011.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten012.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten013.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten014.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten015.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten016.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten017.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten018.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten019.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten020.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten021.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten022.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten023.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten024.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten025.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten026.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten027.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten028.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten029.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten030.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten031.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten032.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten033.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten034.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten035.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten036.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten037.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten038.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten039.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten040.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten041.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten042.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten043.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten044.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten045.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten046.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten047.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten048.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten049.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten050.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten051.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten052.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten053.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten054.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten055.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten056.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten057.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten058.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten059.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten060.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten061.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten062.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten063.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten064.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten065.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten066.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten067.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten068.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten069.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten070.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten071.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten072.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten073.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten074.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten075.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten076.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten077.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten078.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten079.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten080.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten081.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten082.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten083.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten084.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten085.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten086.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten087.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten088.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten089.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten090.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten091.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten092.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten093.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten094.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten095.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten096.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten097.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten098.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten099.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten100.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten101.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten102.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten103.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten104.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten105.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten106.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten107.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten108.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten109.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten110.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten111.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten112.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle001.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle001.test.ets new file mode 100644 index 000000000..67e6aa5fa --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle001.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingStyle001() { + + describe('ComponentAttributeStringModifyingStyle001', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0010 + * @tc.name STRING_MODIFYING_STYLE + * @tc.desc test string modify style + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0010 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle001") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0010 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle002.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle002.test.ets new file mode 100644 index 000000000..9eb553026 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle002.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingStyle002() { + + describe('ComponentAttributeStringModifyingStyle002', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0020 + * @tc.name STRING_MODIFYING_STYLE + * @tc.desc test string modify style + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0020 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle002") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0020 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle003.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle003.test.ets new file mode 100644 index 000000000..48a5c5782 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle003.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingStyle003() { + + describe('ComponentAttributeStringModifyingStyle003', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0080 + * @tc.name STRING_MODIFYING_STYLE + * @tc.desc test string modify style + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0080 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle003") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0080 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle004.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle004.test.ets new file mode 100644 index 000000000..f643ae83d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle004.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingStyle004() { + + describe('ComponentAttributeStringModifyingStyle004', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0290 + * @tc.name STRING_MODIFYING_STYLE + * @tc.desc test string modify style + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0290 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle004") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0290 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle005.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle005.test.ets new file mode 100644 index 000000000..93fa515ac --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle005.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingStyle005() { + + describe('ComponentAttributeStringModifyingStyle005', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0300 + * @tc.name STRING_MODIFYING_STYLE + * @tc.desc test string modify style + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0300 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle005") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0300 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle006.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle006.test.ets new file mode 100644 index 000000000..7703c5132 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle006.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingStyle006() { + + describe('ComponentAttributeStringModifyingStyle006', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0310 + * @tc.name STRING_MODIFYING_STYLE + * @tc.desc test string modify style + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0310 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle006") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0310 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText001.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText001.test.ets new file mode 100644 index 000000000..38c257b12 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText001.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingStyleText001() { + + describe('ComponentAttributeStringModifyingStyleText001', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0010 + * @tc.name STRING_MODIFYING_STYLE_TEXT + * @tc.desc test string modify style text + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0010 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText001") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0010 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText002.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText002.test.ets new file mode 100644 index 000000000..935a0dce7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText002.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingStyleText002() { + + describe('ComponentAttributeStringModifyingStyleText002', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0020 + * @tc.name STRING_MODIFYING_STYLE_TEXT + * @tc.desc test string modify style text + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0020 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText002") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0020 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText003.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText003.test.ets new file mode 100644 index 000000000..635fdbbcb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText003.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingStyleText003() { + + describe('ComponentAttributeStringModifyingStyleText003', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0080 + * @tc.name STRING_MODIFYING_STYLE_TEXT + * @tc.desc test string modify style text + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0080 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText003") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0080 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText004.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText004.test.ets new file mode 100644 index 000000000..8cb29184b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText004.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingStyleText004() { + + describe('ComponentAttributeStringModifyingStyleText004', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0120 + * @tc.name STRING_MODIFYING_STYLE_TEXT + * @tc.desc test string modify style text + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0120 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText004") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0120 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText005.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText005.test.ets new file mode 100644 index 000000000..31a0dbb58 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText005.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingStyleText005() { + + describe('ComponentAttributeStringModifyingStyleText005', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0130 + * @tc.name STRING_MODIFYING_STYLE_TEXT + * @tc.desc test string modify style text + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0130 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText005") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0130 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText001.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText001.test.ets new file mode 100644 index 000000000..859830b59 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText001.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingText001() { + + describe('ComponentAttributeStringModifyingText001', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0010 + * @tc.name STRING_MODIFYING_STYLE_TEXT + * @tc.desc test string modify style text + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0010 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText001") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0010 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText002.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText002.test.ets new file mode 100644 index 000000000..1a25f51d3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText002.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingText002() { + + describe('ComponentAttributeStringModifyingText002', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0020 + * @tc.name STRING_MODIFYING_STYLE_TEXT + * @tc.desc test string modify style text + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0020 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText002") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0020 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText003.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText003.test.ets new file mode 100644 index 000000000..8cb77e080 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText003.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingText003() { + + describe('ComponentAttributeStringModifyingText003', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0070 + * @tc.name STRING_MODIFYING_STYLE_TEXT + * @tc.desc test string modify style text + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0070 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText003") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0070 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText004.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText004.test.ets new file mode 100644 index 000000000..b15e4a33c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText004.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingText004() { + + describe('ComponentAttributeStringModifyingText004', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0080 + * @tc.name STRING_MODIFYING_STYLE_TEXT + * @tc.desc test string modify style text + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0080 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText004") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0080 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText005.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText005.test.ets new file mode 100644 index 000000000..c4de7e306 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText005.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingText005() { + + describe('ComponentAttributeStringModifyingText005', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0090 + * @tc.name STRING_MODIFYING_STYLE_TEXT + * @tc.desc test string modify style text + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0090 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText005") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0090 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText006.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText006.test.ets new file mode 100644 index 000000000..6666904d7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText006.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingText006() { + + describe('ComponentAttributeStringModifyingText006', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0100 + * @tc.name STRING_MODIFYING_STYLE_TEXT + * @tc.desc test string modify style text + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0100 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText006") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0100 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText007.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText007.test.ets new file mode 100644 index 000000000..f55834a06 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText007.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingText007() { + + describe('ComponentAttributeStringModifyingText007', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0130 + * @tc.name STRING_MODIFYING_STYLE_TEXT + * @tc.desc test string modify style text + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0130 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText007") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0130 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText008.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText008.test.ets new file mode 100644 index 000000000..b107c3047 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText008.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingText008() { + + describe('ComponentAttributeStringModifyingText008', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0140 + * @tc.name STRING_MODIFYING_STYLE_TEXT + * @tc.desc test string modify style text + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0140 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText008") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0140 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText009.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText009.test.ets new file mode 100644 index 000000000..8ae979ab9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText009.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingText009() { + + describe('ComponentAttributeStringModifyingText009', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0200 + * @tc.name STRING_MODIFYING_STYLE_TEXT + * @tc.desc test string modify style text + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0200 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText009") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0200 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText010.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText010.test.ets new file mode 100644 index 000000000..5372629bb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText010.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentAttributeStringModifyingText010() { + + describe('ComponentAttributeStringModifyingText010', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0210 + * @tc.name STRING_MODIFYING_STYLE_TEXT + * @tc.desc test string modify style text + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0210 start.`); + Settings.createWindow("testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText010") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_TEXT_0210 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest001.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest001.test.ets new file mode 100644 index 000000000..bdf393915 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest001.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest001() { + + describe('ComponentLayoutCommonPixelTest001', () => { + 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_LAYOUT_COMMON_PIXEL_0710 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0710 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel001") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0710 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest002.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest002.test.ets new file mode 100644 index 000000000..d93e8bb55 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest002.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest002() { + + describe('ComponentLayoutCommonPixelTest002', () => { + 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_LAYOUT_COMMON_PIXEL_0720 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0720 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel002") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0720 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest003.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest003.test.ets new file mode 100644 index 000000000..f62c4621c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest003.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest003() { + + describe('ComponentLayoutCommonPixelTest003', () => { + 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_LAYOUT_COMMON_PIXEL_0740 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0740 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel003") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0740 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest004.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest004.test.ets new file mode 100644 index 000000000..3fba70eb8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest004.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest004() { + + describe('ComponentLayoutCommonPixelTest004', () => { + 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_LAYOUT_COMMON_PIXEL_0750 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0750', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0750 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel004") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0750 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest005.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest005.test.ets new file mode 100644 index 000000000..ceb5f7241 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest005.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest005() { + + describe('ComponentLayoutCommonPixelTest005', () => { + 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_LAYOUT_COMMON_PIXEL_0760 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0760', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0760 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel005") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0760 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest006.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest006.test.ets new file mode 100644 index 000000000..241ca7ee8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest006.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest006() { + + describe('ComponentLayoutCommonPixelTest006', () => { + 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_LAYOUT_COMMON_PIXEL_0790 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0790 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel006") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0790 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest007.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest007.test.ets new file mode 100644 index 000000000..61b26a6f5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest007.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest007() { + + describe('ComponentLayoutCommonPixelTest007', () => { + 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_LAYOUT_COMMON_PIXEL_0800 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0800 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel007") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0800 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest008.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest008.test.ets new file mode 100644 index 000000000..14a9c7318 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest008.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest008() { + + describe('ComponentLayoutCommonPixelTest008', () => { + 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_LAYOUT_COMMON_PIXEL_0810 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0810', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0810 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel008") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0810 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest009.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest009.test.ets new file mode 100644 index 000000000..ca41f0678 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest009.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest009() { + + describe('ComponentLayoutCommonPixelTest009', () => { + 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_LAYOUT_COMMON_PIXEL_0820 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0820', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0820 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel009") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0820 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest010.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest010.test.ets new file mode 100644 index 000000000..03a1f28dc --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest010.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest010() { + + describe('ComponentLayoutCommonPixelTest010', () => { + 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_LAYOUT_COMMON_PIXEL_0830 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0830', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0830 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel010") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0830 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest011.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest011.test.ets new file mode 100644 index 000000000..3ba147fcf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest011.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest011() { + + describe('ComponentLayoutCommonPixelTest011', () => { + 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_LAYOUT_COMMON_PIXEL_0840 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0840', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0840 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel011") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0840 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest012.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest012.test.ets new file mode 100644 index 000000000..86d82a08d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest012.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest012() { + + describe('ComponentLayoutCommonPixelTest012', () => { + 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_LAYOUT_COMMON_PIXEL_0870 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0870', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0870 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel012") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0870 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest013.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest013.test.ets new file mode 100644 index 000000000..c8858d72d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest013.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest013() { + + describe('ComponentLayoutCommonPixelTest013', () => { + 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_LAYOUT_COMMON_PIXEL_0890 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0890', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0890 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel013") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_0890 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest014.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest014.test.ets new file mode 100644 index 000000000..6421a279b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest014.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest014() { + + describe('ComponentLayoutCommonPixelTest014', () => { + 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_LAYOUT_COMMON_PIXEL_1020 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1020 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel014") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1020 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest015.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest015.test.ets new file mode 100644 index 000000000..68587a446 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest015.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest015() { + + describe('ComponentLayoutCommonPixelTest015', () => { + 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_LAYOUT_COMMON_PIXEL_1030 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1030 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel015") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1030 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest016.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest016.test.ets new file mode 100644 index 000000000..13e19e87b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest016.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest016() { + + describe('ComponentLayoutCommonPixelTest016', () => { + 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_LAYOUT_COMMON_PIXEL_1040 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1040 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel016") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1040 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest017.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest017.test.ets new file mode 100644 index 000000000..8ee6791c8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest017.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest017() { + + describe('ComponentLayoutCommonPixelTest017', () => { + 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_LAYOUT_COMMON_PIXEL_1050 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1050 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel017") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1050 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest018.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest018.test.ets new file mode 100644 index 000000000..fed255174 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest018.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest018() { + + describe('ComponentLayoutCommonPixelTest018', () => { + 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_LAYOUT_COMMON_PIXEL_1060 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1060 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel018") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1060 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest019.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest019.test.ets new file mode 100644 index 000000000..bd96132e6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest019.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest019() { + + describe('ComponentLayoutCommonPixelTest019', () => { + 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_LAYOUT_COMMON_PIXEL_1070 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1070 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel019") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1070 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest020.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest020.test.ets new file mode 100644 index 000000000..c15c35717 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest020.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest020() { + + describe('ComponentLayoutCommonPixelTest020', () => { + 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_LAYOUT_COMMON_PIXEL_1140 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1140 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel020") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1140 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest021.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest021.test.ets new file mode 100644 index 000000000..db4489618 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest021.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentLayoutCommonPixelTest021() { + + describe('ComponentLayoutCommonPixelTest021', () => { + 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_LAYOUT_COMMON_PIXEL_1150 + * @tc.name LAYOUT_COMMON_PIXEL + * @tc.desc test layout common pixel + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1150 start.`); + Settings.createWindow("testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel021") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COMMON_PIXEL_1150 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest001.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest001.test.ets new file mode 100644 index 000000000..58c056aac --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest001.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs001() { + + describe('ComponentTextAttributeStringConstructs001', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0010 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0010 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs001") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0010 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest002.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest002.test.ets new file mode 100644 index 000000000..e01329f08 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest002.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs002() { + + describe('ComponentTextAttributeStringConstructs002', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0020 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0020 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs002") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0020 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest003.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest003.test.ets new file mode 100644 index 000000000..27ccb24f1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest003.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs003() { + + describe('ComponentTextAttributeStringConstructs003', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0030 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0030 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs003") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0030 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest004.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest004.test.ets new file mode 100644 index 000000000..476b09b56 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest004.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs004() { + + describe('ComponentTextAttributeStringConstructs004', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0040 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0040 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs004") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0040 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest005.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest005.test.ets new file mode 100644 index 000000000..4083d461c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest005.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs005() { + + describe('ComponentTextAttributeStringConstructs005', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0050 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0050 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs005") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0050 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest006.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest006.test.ets new file mode 100644 index 000000000..aaade9024 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest006.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs006() { + + describe('ComponentTextAttributeStringConstructs006', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0060 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0060 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs006") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0060 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest007.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest007.test.ets new file mode 100644 index 000000000..f86c8de23 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest007.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs007() { + + describe('ComponentTextAttributeStringConstructs007', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0070 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0070 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs007") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0070 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest008.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest008.test.ets new file mode 100644 index 000000000..4377649d7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest008.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs008() { + + describe('ComponentTextAttributeStringConstructs008', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0080 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0080 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs008") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0080 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest009.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest009.test.ets new file mode 100644 index 000000000..73bb63e7d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest009.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs009() { + + describe('ComponentTextAttributeStringConstructs009', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0090 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0090 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs009") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0090 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest010.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest010.test.ets new file mode 100644 index 000000000..74fbaea9b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest010.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs010() { + + describe('ComponentTextAttributeStringConstructs010', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0100 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0100 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs010") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0100 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest011.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest011.test.ets new file mode 100644 index 000000000..e32894ca6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest011.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs011() { + + describe('ComponentTextAttributeStringConstructs011', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0110 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0110 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs011") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0110 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest012.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest012.test.ets new file mode 100644 index 000000000..896c5fefd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest012.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs012() { + + describe('ComponentTextAttributeStringConstructs012', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0120 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0120 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs012") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0120 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest013.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest013.test.ets new file mode 100644 index 000000000..9cf51ea04 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest013.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs013() { + + describe('ComponentTextAttributeStringConstructs013', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0370 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0370 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs013") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0370 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest014.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest014.test.ets new file mode 100644 index 000000000..faf41f99d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest014.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs014() { + + describe('ComponentTextAttributeStringConstructs014', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0380 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0380 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs014") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0380 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest015.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest015.test.ets new file mode 100644 index 000000000..046871433 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest015.test.ets @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import router from '@system.router'; +import { BusinessError } from '@ohos.base'; +import window from '@ohos.window' + + +export default function ComponentTextAttributeStringConstructs015() { + + describe('ComponentTextAttributeStringConstructs015', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0390 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0390 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs015") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0390 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest016.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest016.test.ets new file mode 100644 index 000000000..d33023683 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest016.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs016() { + + describe('ComponentTextAttributeStringConstructs016', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0400 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0400 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs016") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0400 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest017.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest017.test.ets new file mode 100644 index 000000000..cd744d80d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest017.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs017() { + + describe('ComponentTextAttributeStringConstructs017', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0410 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0410 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs017") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0410 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest018.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest018.test.ets new file mode 100644 index 000000000..7d216c0c9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest018.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs018() { + + describe('ComponentTextAttributeStringConstructs018', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0420 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0420 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs018") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0420 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest019.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest019.test.ets new file mode 100644 index 000000000..7b9a45d94 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest019.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs019() { + + describe('ComponentTextAttributeStringConstructs019', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0430 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0430 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs019") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0430 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest020.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest020.test.ets new file mode 100644 index 000000000..761b020d1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest020.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs020() { + + describe('ComponentTextAttributeStringConstructs020', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0440 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0440 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs020") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0440 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest021.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest021.test.ets new file mode 100644 index 000000000..2fb1a4225 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest021.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs021() { + + describe('ComponentTextAttributeStringConstructs021', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0450 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0450 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs021") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0450 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest022.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest022.test.ets new file mode 100644 index 000000000..ac9ec5f79 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest022.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs022() { + + describe('ComponentTextAttributeStringConstructs022', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0470 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0470 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs022") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0470 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest023.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest023.test.ets new file mode 100644 index 000000000..6766aa765 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest023.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs023() { + + describe('ComponentTextAttributeStringConstructs023', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0480 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0480 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs023") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0480 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest024.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest024.test.ets new file mode 100644 index 000000000..19e8e01e2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest024.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs024() { + + describe('ComponentTextAttributeStringConstructs024', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0490 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0490 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs024") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0490 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest025.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest025.test.ets new file mode 100644 index 000000000..51af42dc1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest025.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs025() { + + describe('ComponentTextAttributeStringConstructs025', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0500 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0500 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs025") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0500 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest026.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest026.test.ets new file mode 100644 index 000000000..3b6a0a94b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest026.test.ets @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs026() { + + describe('ComponentTextAttributeStringConstructs026', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0510 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0510 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs026") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0510 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest027.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest027.test.ets new file mode 100644 index 000000000..2e0a41fa7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest027.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs027() { + + describe('ComponentTextAttributeStringConstructs027', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0530 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0530 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs027") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0530 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest028.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest028.test.ets new file mode 100644 index 000000000..67725632d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest028.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs028() { + + describe('ComponentTextAttributeStringConstructs028', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0540 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0540 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs028") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0540 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest029.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest029.test.ets new file mode 100644 index 000000000..618517f76 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest029.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringConstructs029() { + + describe('ComponentTextAttributeStringConstructs029', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0550 + * @tc.name STRING_CONSTRUCTS + * @tc.desc test string constructs + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0550 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs029") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0550 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest001.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest001.test.ets new file mode 100644 index 000000000..f8eb3f73f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest001.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest001() { + + describe('ComponentTextAttributeStringTest001', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0010 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0010 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString001") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0010 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest002.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest002.test.ets new file mode 100644 index 000000000..bcf8678e4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest002.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest002() { + + describe('ComponentTextAttributeStringTest002', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0020 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0020 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString002") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0020 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest003.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest003.test.ets new file mode 100644 index 000000000..dbc2b4e10 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest003.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest003() { + + describe('ComponentTextAttributeStringTest003', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0030 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0030 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString003") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0030 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest004.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest004.test.ets new file mode 100644 index 000000000..b37a0a8ac --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest004.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest004() { + + describe('ComponentTextAttributeStringTest004', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0040 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0040 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString004") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0040 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest005.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest005.test.ets new file mode 100644 index 000000000..df523fcbf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest005.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest005() { + + describe('ComponentTextAttributeStringTest005', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0050 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0050 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString005") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0050 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest006.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest006.test.ets new file mode 100644 index 000000000..d1ee1e9f2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest006.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest006() { + + describe('ComponentTextAttributeStringTest006', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0060 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0060 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString006") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0060 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest007.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest007.test.ets new file mode 100644 index 000000000..4c47697af --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest007.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest007() { + + describe('ComponentTextAttributeStringTest007', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0070 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0070 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString007") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0070 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest008.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest008.test.ets new file mode 100644 index 000000000..346c7d17c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest008.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest008() { + + describe('ComponentTextAttributeStringTest008', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0080 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0080 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString008") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0080 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest009.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest009.test.ets new file mode 100644 index 000000000..241609ac8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest009.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest009() { + + describe('ComponentTextAttributeStringTest009', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0090 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0090 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString009") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0090 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest010.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest010.test.ets new file mode 100644 index 000000000..352bcfad4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest010.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest010() { + + describe('ComponentTextAttributeStringTest010', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0100 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0100 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString010") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0100 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest011.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest011.test.ets new file mode 100644 index 000000000..269535f23 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest011.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest011() { + + describe('ComponentTextAttributeStringTest011', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0110 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0110 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString011") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0110 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest012.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest012.test.ets new file mode 100644 index 000000000..427a17476 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest012.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest012() { + + describe('ComponentTextAttributeStringTest012', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0120 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0120 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString012") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0120 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest013.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest013.test.ets new file mode 100644 index 000000000..ebc7d3b44 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest013.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest013() { + + describe('ComponentTextAttributeStringTest013', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0130 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0130 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString013") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0130 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest014.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest014.test.ets new file mode 100644 index 000000000..4aa9d3c37 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest014.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest014() { + + describe('ComponentTextAttributeStringTest014', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0140 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0140 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString014") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0140 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest015.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest015.test.ets new file mode 100644 index 000000000..21fec4e69 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest015.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest015() { + + describe('ComponentTextAttributeStringTest015', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0150 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0150 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString015") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0150 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest016.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest016.test.ets new file mode 100644 index 000000000..f5582155c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest016.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest016() { + + describe('ComponentTextAttributeStringTest016', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0160 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0160 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString016") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0160 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest017.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest017.test.ets new file mode 100644 index 000000000..b60545e23 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest017.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest017() { + + describe('ComponentTextAttributeStringTest017', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0170 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0170 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString017") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0170 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest018.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest018.test.ets new file mode 100644 index 000000000..af56833c1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest018.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest018() { + + describe('ComponentTextAttributeStringTest018', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0180 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0180 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString018") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0180 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest019.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest019.test.ets new file mode 100644 index 000000000..0816c8a24 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest019.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest019() { + + describe('ComponentTextAttributeStringTest019', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0190 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0190 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString019") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0190 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest020.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest020.test.ets new file mode 100644 index 000000000..8305f9486 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest020.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest020() { + + describe('ComponentTextAttributeStringTest020', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0200 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0200 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString020") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0200 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest021.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest021.test.ets new file mode 100644 index 000000000..4497a865a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest021.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest021() { + + describe('ComponentTextAttributeStringTest021', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0210 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0210 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString021") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0210 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest022.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest022.test.ets new file mode 100644 index 000000000..6d1930d83 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest022.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest022() { + + describe('ComponentTextAttributeStringTest022', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0220 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0220 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString022") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0220 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest023.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest023.test.ets new file mode 100644 index 000000000..0514d84f2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest023.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest023() { + + describe('ComponentTextAttributeStringTest023', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0230 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0230 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString023") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0230 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest024.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest024.test.ets new file mode 100644 index 000000000..639b1334e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest024.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest024() { + + describe('ComponentTextAttributeStringTest024', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0240 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0240 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString024") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0240 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest025.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest025.test.ets new file mode 100644 index 000000000..c63465ef2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest025.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest025() { + + describe('ComponentTextAttributeStringTest025', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0250 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0250 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString025") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0250 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest026.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest026.test.ets new file mode 100644 index 000000000..8a2f42743 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest026.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest026() { + + describe('ComponentTextAttributeStringTest026', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0260 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0260 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString026") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0260 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest027.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest027.test.ets new file mode 100644 index 000000000..ef214f847 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest027.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest027() { + + describe('ComponentTextAttributeStringTest027', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0270 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0270 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString027") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0270 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest028.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest028.test.ets new file mode 100644 index 000000000..d54bdb85c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest028.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest028() { + + describe('ComponentTextAttributeStringTest028', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0280 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0280 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString028") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0280 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest029.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest029.test.ets new file mode 100644 index 000000000..c509cd897 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest029.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest029() { + + describe('ComponentTextAttributeStringTest029', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0290 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0290 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString029") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0290 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest030.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest030.test.ets new file mode 100644 index 000000000..ab4eda32b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest030.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest030() { + + describe('ComponentTextAttributeStringTest030', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0300 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0300 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString030") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0300 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest031.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest031.test.ets new file mode 100644 index 000000000..b4bf29113 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest031.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest031() { + + describe('ComponentTextAttributeStringTest031', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0310 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0310 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString031") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0310 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest032.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest032.test.ets new file mode 100644 index 000000000..6bfefc23d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest032.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest032() { + + describe('ComponentTextAttributeStringTest032', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0320 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0320 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString032") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0320 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest033.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest033.test.ets new file mode 100644 index 000000000..076946e9a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest033.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest033() { + + describe('ComponentTextAttributeStringTest033', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0330 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0330 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString033") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0330 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest034.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest034.test.ets new file mode 100644 index 000000000..975e3c56f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest034.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest034() { + + describe('ComponentTextAttributeStringTest034', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0340 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0340 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString034") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0340 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest035.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest035.test.ets new file mode 100644 index 000000000..7bd882dd1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest035.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest035() { + + describe('ComponentTextAttributeStringTest035', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0350 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0350 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString035") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0350 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest036.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest036.test.ets new file mode 100644 index 000000000..53bff207f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest036.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest036() { + + describe('ComponentTextAttributeStringTest036', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0360 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0360 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString036") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0360 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest037.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest037.test.ets new file mode 100644 index 000000000..801e4cee2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest037.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest037() { + + describe('ComponentTextAttributeStringTest037', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0370 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0370 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString037") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0370 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest038.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest038.test.ets new file mode 100644 index 000000000..8a3549ade --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest038.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest038() { + + describe('ComponentTextAttributeStringTest038', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0380 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0380 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString038") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0380 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest039.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest039.test.ets new file mode 100644 index 000000000..004db73f2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest039.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest039() { + + describe('ComponentTextAttributeStringTest039', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0390 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0390 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString039") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0390 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest040.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest040.test.ets new file mode 100644 index 000000000..431049f7c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest040.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest040() { + + describe('ComponentTextAttributeStringTest040', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0400 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0400 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString040") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0400 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest041.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest041.test.ets new file mode 100644 index 000000000..fd271576c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest041.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest041() { + + describe('ComponentTextAttributeStringTest041', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0410 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0410 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString041") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0410 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest042.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest042.test.ets new file mode 100644 index 000000000..876a8773a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest042.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest042() { + + describe('ComponentTextAttributeStringTest042', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0420 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0420 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString042") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0420 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest043.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest043.test.ets new file mode 100644 index 000000000..b73b98cb6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest043.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest043() { + + describe('ComponentTextAttributeStringTest043', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0430 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0430 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString043") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0430 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest044.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest044.test.ets new file mode 100644 index 000000000..2609573b0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest044.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest044() { + + describe('ComponentTextAttributeStringTest044', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0440 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0440 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString044") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0440 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest045.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest045.test.ets new file mode 100644 index 000000000..12029bc95 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest045.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest045() { + + describe('ComponentTextAttributeStringTest045', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0450 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0450 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString045") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0450 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest046.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest046.test.ets new file mode 100644 index 000000000..783ed0528 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest046.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest046() { + + describe('ComponentTextAttributeStringTest046', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0460 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0460 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString046") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0460 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest047.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest047.test.ets new file mode 100644 index 000000000..f6c0793be --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest047.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest047() { + + describe('ComponentTextAttributeStringTest047', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0470 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0470 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString047") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0470 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest048.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest048.test.ets new file mode 100644 index 000000000..a30ecb6f2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest048.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest048() { + + describe('ComponentTextAttributeStringTest048', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0480 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0480 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString048") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0480 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest049.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest049.test.ets new file mode 100644 index 000000000..0969d6381 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest049.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest049() { + + describe('ComponentTextAttributeStringTest049', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0490 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0490 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString049") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0490 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest050.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest050.test.ets new file mode 100644 index 000000000..fe2292b1a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest050.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest050() { + + describe('ComponentTextAttributeStringTest050', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0500 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0500 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString050") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0500 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest051.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest051.test.ets new file mode 100644 index 000000000..d3052760d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest051.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest051() { + + describe('ComponentTextAttributeStringTest051', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0510 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0510 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString051") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0510 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest052.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest052.test.ets new file mode 100644 index 000000000..61f7c54f1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest052.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest052() { + + describe('ComponentTextAttributeStringTest052', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0520 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0520 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString052") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0520 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest053.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest053.test.ets new file mode 100644 index 000000000..189da262d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest053.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest053() { + + describe('ComponentTextAttributeStringTest053', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0530 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0530 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString053") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0530 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest054.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest054.test.ets new file mode 100644 index 000000000..be56b0c49 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest054.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest054() { + + describe('ComponentTextAttributeStringTest054', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0540 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0540 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString054") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0540 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest055.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest055.test.ets new file mode 100644 index 000000000..9a02324e9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest055.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest055() { + + describe('ComponentTextAttributeStringTest055', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0550 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0550 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString055") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0550 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest056.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest056.test.ets new file mode 100644 index 000000000..3a9b2b065 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest056.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest056() { + + describe('ComponentTextAttributeStringTest056', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0560 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0560 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString056") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0560 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest057.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest057.test.ets new file mode 100644 index 000000000..ff0fe96c7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest057.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest057() { + + describe('ComponentTextAttributeStringTest057', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0570 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0570 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString057") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0570 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest058.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest058.test.ets new file mode 100644 index 000000000..cefce30f7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest058.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest058() { + + describe('ComponentTextAttributeStringTest058', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0580 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0580 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString058") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0580 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest059.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest059.test.ets new file mode 100644 index 000000000..d3751c94f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest059.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest059() { + + describe('ComponentTextAttributeStringTest059', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0590 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0590 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString059") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0590 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest060.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest060.test.ets new file mode 100644 index 000000000..746e14683 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/ComponentTextAttributeStringTest/ComponentTextAttributeStringTest060.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ComponentTextAttributeStringTest060() { + + describe('ComponentTextAttributeStringTest060', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0600 + * @tc.name STRING + * @tc.desc test string + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0600 start.`); + Settings.createWindow("testability/pages/ComponentTextAttributeString/ComponentTextAttributeString060") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_0600 finish.`); + done() + }) + }) +} 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 2646f9a82..902916b74 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 @@ -31,6 +31,270 @@ import UiComponentTextCommonTextstyle from './UiComponentTextCommonTextstyleTest import UiComponentTextTextareaInterface from './UiComponentTextTextareaInterfaceTest/UiComponentTextTextareaInterface.test' import UIAttributePositionSizeLayoutTest from './UIAttributePositionSizeLayoutTest/UIAttributePositionSizeLayoutTest.test' import UIAttributePositionInterfaceTest from './UIAttributePositionInterfaceTest/UIAttributePositionInterfaceTest.test' + +import ComponentAttributeStringModifyingStyle001 from './ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle001.test' +import ComponentAttributeStringModifyingStyle002 from './ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle002.test' +import ComponentAttributeStringModifyingStyle003 from './ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle003.test' +import ComponentAttributeStringModifyingStyle004 from './ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle004.test' +import ComponentAttributeStringModifyingStyle005 from './ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle005.test' +import ComponentAttributeStringModifyingStyle006 from './ComponentAttributeStringModifyingStyleTest/ComponentAttributeStringModifyingStyle006.test' +import ComponentAttributeStringModifyingStyleText001 from './ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText001.test' +import ComponentAttributeStringModifyingStyleText002 from './ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText002.test' +import ComponentAttributeStringModifyingStyleText003 from './ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText003.test' +import ComponentAttributeStringModifyingStyleText004 from './ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText004.test' +import ComponentAttributeStringModifyingStyleText005 from './ComponentAttributeStringModifyingStyleTextTest/ComponentAttributeStringModifyingStyleText005.test' +import ComponentAttributeStringModifyingText001 from './ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText001.test' +import ComponentAttributeStringModifyingText002 from './ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText002.test' +import ComponentAttributeStringModifyingText003 from './ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText003.test' +import ComponentAttributeStringModifyingText004 from './ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText004.test' +import ComponentAttributeStringModifyingText005 from './ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText005.test' +import ComponentAttributeStringModifyingText006 from './ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText006.test' +import ComponentAttributeStringModifyingText007 from './ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText007.test' +import ComponentAttributeStringModifyingText008 from './ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText008.test' +import ComponentAttributeStringModifyingText009 from './ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText009.test' +import ComponentAttributeStringModifyingText010 from './ComponentAttributeStringModifyingTextTest/ComponentAttributeStringModifyingText010.test' +import ComponentTextAttributeString001 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest001.test' +import ComponentTextAttributeString002 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest002.test' +import ComponentTextAttributeString003 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest003.test' +import ComponentTextAttributeString004 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest004.test' +import ComponentTextAttributeString005 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest005.test' +import ComponentTextAttributeString006 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest006.test' +import ComponentTextAttributeString007 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest007.test' +import ComponentTextAttributeString008 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest008.test' +import ComponentTextAttributeString009 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest009.test' +import ComponentTextAttributeString010 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest010.test' +import ComponentTextAttributeString011 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest011.test' +import ComponentTextAttributeString012 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest012.test' +import ComponentTextAttributeString013 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest013.test' +import ComponentTextAttributeString014 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest014.test' +import ComponentTextAttributeString015 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest015.test' +import ComponentTextAttributeString016 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest016.test' +import ComponentTextAttributeString017 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest017.test' +import ComponentTextAttributeString018 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest018.test' +import ComponentTextAttributeString019 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest019.test' +import ComponentTextAttributeString020 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest020.test' +import ComponentTextAttributeString021 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest021.test' +import ComponentTextAttributeString022 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest022.test' +import ComponentTextAttributeString023 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest023.test' +import ComponentTextAttributeString024 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest024.test' +import ComponentTextAttributeString025 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest025.test' +import ComponentTextAttributeString026 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest026.test' +import ComponentTextAttributeString027 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest027.test' +import ComponentTextAttributeString028 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest028.test' +import ComponentTextAttributeString029 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest029.test' +import ComponentTextAttributeString030 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest030.test' +import ComponentTextAttributeString031 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest031.test' +import ComponentTextAttributeString032 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest032.test' +import ComponentTextAttributeString033 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest033.test' +import ComponentTextAttributeString034 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest034.test' +import ComponentTextAttributeString035 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest035.test' +import ComponentTextAttributeString036 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest036.test' +import ComponentTextAttributeString037 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest037.test' +import ComponentTextAttributeString038 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest038.test' +import ComponentTextAttributeString039 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest039.test' +import ComponentTextAttributeString040 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest040.test' +import ComponentTextAttributeString041 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest041.test' +import ComponentTextAttributeString042 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest042.test' +import ComponentTextAttributeString043 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest043.test' +import ComponentTextAttributeString044 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest044.test' +import ComponentTextAttributeString045 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest045.test' +import ComponentTextAttributeString046 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest046.test' +import ComponentTextAttributeString047 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest047.test' +import ComponentTextAttributeString048 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest048.test' +import ComponentTextAttributeString049 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest049.test' +import ComponentTextAttributeString050 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest050.test' +import ComponentTextAttributeString051 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest051.test' +import ComponentTextAttributeString052 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest052.test' +import ComponentTextAttributeString053 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest053.test' +import ComponentTextAttributeString054 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest054.test' +import ComponentTextAttributeString055 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest055.test' +import ComponentTextAttributeString056 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest056.test' +import ComponentTextAttributeString057 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest057.test' +import ComponentTextAttributeString058 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest058.test' +import ComponentTextAttributeString059 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest059.test' +import ComponentTextAttributeString060 from './ComponentTextAttributeStringTest/ComponentTextAttributeStringTest060.test' +import ComponentTextAttributeStringConstructs001 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest001.test' +import ComponentTextAttributeStringConstructs002 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest002.test' +import ComponentTextAttributeStringConstructs003 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest003.test' +import ComponentTextAttributeStringConstructs004 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest004.test' +import ComponentTextAttributeStringConstructs005 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest005.test' +import ComponentTextAttributeStringConstructs006 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest006.test' +import ComponentTextAttributeStringConstructs007 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest007.test' +import ComponentTextAttributeStringConstructs008 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest008.test' +import ComponentTextAttributeStringConstructs009 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest009.test' +import ComponentTextAttributeStringConstructs010 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest010.test' +import ComponentTextAttributeStringConstructs011 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest011.test' +import ComponentTextAttributeStringConstructs012 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest012.test' +import ComponentTextAttributeStringConstructs013 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest013.test' +import ComponentTextAttributeStringConstructs014 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest014.test' +import ComponentTextAttributeStringConstructs015 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest015.test' +import ComponentTextAttributeStringConstructs016 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest016.test' +import ComponentTextAttributeStringConstructs017 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest017.test' +import ComponentTextAttributeStringConstructs018 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest018.test' +import ComponentTextAttributeStringConstructs019 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest019.test' +import ComponentTextAttributeStringConstructs020 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest020.test' +import ComponentTextAttributeStringConstructs021 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest021.test' +import ComponentTextAttributeStringConstructs022 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest022.test' +import ComponentTextAttributeStringConstructs023 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest023.test' +import ComponentTextAttributeStringConstructs024 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest024.test' +import ComponentTextAttributeStringConstructs025 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest025.test' +import ComponentTextAttributeStringConstructs026 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest026.test' +import ComponentTextAttributeStringConstructs027 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest027.test' +import ComponentTextAttributeStringConstructs028 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest028.test' +import ComponentTextAttributeStringConstructs029 from './ComponentTextAttributeStringConstructsTest/ComponentTextAttributeStringConstructsTest029.test' +import ComponentLayoutCommonPixelTest001 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest001.test' +import ComponentLayoutCommonPixelTest002 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest002.test' +import ComponentLayoutCommonPixelTest003 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest003.test' +import ComponentLayoutCommonPixelTest004 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest004.test' +import ComponentLayoutCommonPixelTest005 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest005.test' +import ComponentLayoutCommonPixelTest006 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest006.test' +import ComponentLayoutCommonPixelTest007 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest007.test' +import ComponentLayoutCommonPixelTest008 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest008.test' +import ComponentLayoutCommonPixelTest009 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest009.test' +import ComponentLayoutCommonPixelTest010 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest010.test' +import ComponentLayoutCommonPixelTest011 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest011.test' +import ComponentLayoutCommonPixelTest012 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest012.test' +import ComponentLayoutCommonPixelTest013 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest013.test' +import ComponentLayoutCommonPixelTest014 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest014.test' +import ComponentLayoutCommonPixelTest015 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest015.test' +import ComponentLayoutCommonPixelTest016 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest016.test' +import ComponentLayoutCommonPixelTest017 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest017.test' +import ComponentLayoutCommonPixelTest018 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest018.test' +import ComponentLayoutCommonPixelTest019 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest019.test' +import ComponentLayoutCommonPixelTest020 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest020.test' +import ComponentLayoutCommonPixelTest021 from './ComponentLayoutCommonPixelTest/ComponentLayoutCommonPixelTest021.test' +import UiTextBrightenTest001 from './UiTextBrightenTest/UiTextBrightenTest001.test' +import UiTextBrightenTest002 from './UiTextBrightenTest/UiTextBrightenTest002.test' +import UiTextBrightenTest003 from './UiTextBrightenTest/UiTextBrightenTest003.test' +import UiTextBrightenTest004 from './UiTextBrightenTest/UiTextBrightenTest004.test' +import UiTextBrightenTest005 from './UiTextBrightenTest/UiTextBrightenTest005.test' +import UiTextBrightenTest006 from './UiTextBrightenTest/UiTextBrightenTest006.test' +import UiTextBrightenTest007 from './UiTextBrightenTest/UiTextBrightenTest007.test' +import UiTextBrightenTest008 from './UiTextBrightenTest/UiTextBrightenTest008.test' +import UiTextBrightenTest009 from './UiTextBrightenTest/UiTextBrightenTest009.test' +import UiTextBrightenTest010 from './UiTextBrightenTest/UiTextBrightenTest010.test' +import UiTextBrightenTest011 from './UiTextBrightenTest/UiTextBrightenTest011.test' +import UiTextBrightenTest012 from './UiTextBrightenTest/UiTextBrightenTest012.test' +import UiTextBrightenTest013 from './UiTextBrightenTest/UiTextBrightenTest013.test' +import UiTextBrightenTest014 from './UiTextBrightenTest/UiTextBrightenTest014.test' +import UiTextBrightenTest015 from './UiTextBrightenTest/UiTextBrightenTest015.test' +import UiTextBrightenTest016 from './UiTextBrightenTest/UiTextBrightenTest016.test' +import UiTextBrightenTest017 from './UiTextBrightenTest/UiTextBrightenTest017.test' +import UiTextBrightenTest018 from './UiTextBrightenTest/UiTextBrightenTest018.test' +import UiTextBrightenTest019 from './UiTextBrightenTest/UiTextBrightenTest019.test' +import UiTextBrightenTest020 from './UiTextBrightenTest/UiTextBrightenTest020.test' +import UiTextBrightenTest021 from './UiTextBrightenTest/UiTextBrightenTest021.test' +import UiTextBrightenTest022 from './UiTextBrightenTest/UiTextBrightenTest022.test' +import UiTextBrightenTest023 from './UiTextBrightenTest/UiTextBrightenTest023.test' +import UiTextBrightenTest024 from './UiTextBrightenTest/UiTextBrightenTest024.test' +import UiTextBrightenTest025 from './UiTextBrightenTest/UiTextBrightenTest025.test' +import UiTextBrightenTest026 from './UiTextBrightenTest/UiTextBrightenTest026.test' +import UiTextBrightenTest027 from './UiTextBrightenTest/UiTextBrightenTest027.test' +import UiTextBrightenTest028 from './UiTextBrightenTest/UiTextBrightenTest028.test' +import UiTextBrightenTest029 from './UiTextBrightenTest/UiTextBrightenTest029.test' +import UiTextBrightenTest030 from './UiTextBrightenTest/UiTextBrightenTest030.test' +import UiTextBrightenTest031 from './UiTextBrightenTest/UiTextBrightenTest031.test' +import UiTextBrightenTest032 from './UiTextBrightenTest/UiTextBrightenTest032.test' +import UiTextBrightenTest033 from './UiTextBrightenTest/UiTextBrightenTest033.test' +import UiTextBrightenTest034 from './UiTextBrightenTest/UiTextBrightenTest034.test' +import UiTextBrightenTest035 from './UiTextBrightenTest/UiTextBrightenTest035.test' +import UiTextBrightenTest036 from './UiTextBrightenTest/UiTextBrightenTest036.test' +import UiTextBrightenTest037 from './UiTextBrightenTest/UiTextBrightenTest037.test' +import UiTextBrightenTest038 from './UiTextBrightenTest/UiTextBrightenTest038.test' +import UiTextBrightenTest039 from './UiTextBrightenTest/UiTextBrightenTest039.test' +import UiTextBrightenTest040 from './UiTextBrightenTest/UiTextBrightenTest040.test' +import UiTextBrightenTest041 from './UiTextBrightenTest/UiTextBrightenTest041.test' +import UiTextBrightenTest042 from './UiTextBrightenTest/UiTextBrightenTest042.test' +import UiTextBrightenTest043 from './UiTextBrightenTest/UiTextBrightenTest043.test' +import UiTextBrightenTest044 from './UiTextBrightenTest/UiTextBrightenTest044.test' +import UiTextBrightenTest045 from './UiTextBrightenTest/UiTextBrightenTest045.test' +import UiTextBrightenTest046 from './UiTextBrightenTest/UiTextBrightenTest046.test' +import UiTextBrightenTest047 from './UiTextBrightenTest/UiTextBrightenTest047.test' +import UiTextBrightenTest048 from './UiTextBrightenTest/UiTextBrightenTest048.test' +import UiTextBrightenTest049 from './UiTextBrightenTest/UiTextBrightenTest049.test' +import UiTextBrightenTest050 from './UiTextBrightenTest/UiTextBrightenTest050.test' +import UiTextBrightenTest051 from './UiTextBrightenTest/UiTextBrightenTest051.test' +import UiTextBrightenTest052 from './UiTextBrightenTest/UiTextBrightenTest052.test' +import UiTextBrightenTest053 from './UiTextBrightenTest/UiTextBrightenTest053.test' +import UiTextBrightenTest054 from './UiTextBrightenTest/UiTextBrightenTest054.test' +import UiTextBrightenTest055 from './UiTextBrightenTest/UiTextBrightenTest055.test' +import UiTextBrightenTest056 from './UiTextBrightenTest/UiTextBrightenTest056.test' +import UiTextBrightenTest057 from './UiTextBrightenTest/UiTextBrightenTest057.test' +import UiTextBrightenTest058 from './UiTextBrightenTest/UiTextBrightenTest058.test' +import UiTextBrightenTest059 from './UiTextBrightenTest/UiTextBrightenTest059.test' +import UiTextBrightenTest060 from './UiTextBrightenTest/UiTextBrightenTest060.test' +import UiTextBrightenTest061 from './UiTextBrightenTest/UiTextBrightenTest061.test' +import UiTextBrightenTest062 from './UiTextBrightenTest/UiTextBrightenTest062.test' +import UiTextBrightenTest063 from './UiTextBrightenTest/UiTextBrightenTest063.test' +import UiTextBrightenTest064 from './UiTextBrightenTest/UiTextBrightenTest064.test' +import UiTextBrightenTest065 from './UiTextBrightenTest/UiTextBrightenTest065.test' +import UiTextBrightenTest066 from './UiTextBrightenTest/UiTextBrightenTest066.test' +import UiTextBrightenTest067 from './UiTextBrightenTest/UiTextBrightenTest067.test' +import UiTextBrightenTest068 from './UiTextBrightenTest/UiTextBrightenTest068.test' +import UiTextBrightenTest069 from './UiTextBrightenTest/UiTextBrightenTest069.test' +import UiTextBrightenTest070 from './UiTextBrightenTest/UiTextBrightenTest070.test' +import UiTextBrightenTest071 from './UiTextBrightenTest/UiTextBrightenTest071.test' +import UiTextBrightenTest072 from './UiTextBrightenTest/UiTextBrightenTest072.test' +import UiTextBrightenTest073 from './UiTextBrightenTest/UiTextBrightenTest073.test' +import UiTextBrightenTest074 from './UiTextBrightenTest/UiTextBrightenTest074.test' +import UiTextBrightenTest075 from './UiTextBrightenTest/UiTextBrightenTest075.test' +import UiTextBrightenTest076 from './UiTextBrightenTest/UiTextBrightenTest076.test' +import UiTextBrightenTest077 from './UiTextBrightenTest/UiTextBrightenTest077.test' +import UiTextBrightenTest078 from './UiTextBrightenTest/UiTextBrightenTest078.test' +import UiTextBrightenTest079 from './UiTextBrightenTest/UiTextBrightenTest079.test' +import UiTextBrightenTest080 from './UiTextBrightenTest/UiTextBrightenTest080.test' +import UiTextBrightenTest081 from './UiTextBrightenTest/UiTextBrightenTest081.test' +import UiTextBrightenTest082 from './UiTextBrightenTest/UiTextBrightenTest082.test' +import UiTextBrightenTest083 from './UiTextBrightenTest/UiTextBrightenTest083.test' +import UiTextBrightenTest084 from './UiTextBrightenTest/UiTextBrightenTest084.test' +import UiTextBrightenTest085 from './UiTextBrightenTest/UiTextBrightenTest085.test' +import UiTextBrightenTest086 from './UiTextBrightenTest/UiTextBrightenTest086.test' +import UiTextBrightenTest087 from './UiTextBrightenTest/UiTextBrightenTest087.test' +import UiTextBrightenTest088 from './UiTextBrightenTest/UiTextBrightenTest088.test' +import UiTextBrightenTest089 from './UiTextBrightenTest/UiTextBrightenTest089.test' +import UiTextBrightenTest090 from './UiTextBrightenTest/UiTextBrightenTest090.test' +import UiTextBrightenTest091 from './UiTextBrightenTest/UiTextBrightenTest091.test' +import UiTextBrightenTest092 from './UiTextBrightenTest/UiTextBrightenTest092.test' +import UiTextBrightenTest093 from './UiTextBrightenTest/UiTextBrightenTest093.test' +import UiTextBrightenTest094 from './UiTextBrightenTest/UiTextBrightenTest094.test' +import UiTextBrightenTest095 from './UiTextBrightenTest/UiTextBrightenTest095.test' +import UiTextBrightenTest096 from './UiTextBrightenTest/UiTextBrightenTest096.test' +import UiTextBrightenTest097 from './UiTextBrightenTest/UiTextBrightenTest097.test' +import UiTextBrightenTest098 from './UiTextBrightenTest/UiTextBrightenTest098.test' +import UiTextBrightenTest099 from './UiTextBrightenTest/UiTextBrightenTest099.test' +import UiTextBrightenTest100 from './UiTextBrightenTest/UiTextBrightenTest100.test' +import UiTextBrightenTest101 from './UiTextBrightenTest/UiTextBrightenTest101.test' +import UiTextBrightenTest102 from './UiTextBrightenTest/UiTextBrightenTest102.test' +import UiTextBrightenTest103 from './UiTextBrightenTest/UiTextBrightenTest103.test' +import UiTextBrightenTest104 from './UiTextBrightenTest/UiTextBrightenTest104.test' +import UiTextBrightenTest105 from './UiTextBrightenTest/UiTextBrightenTest105.test' +import UiTextBrightenTest106 from './UiTextBrightenTest/UiTextBrightenTest106.test' +import UiTextBrightenTest107 from './UiTextBrightenTest/UiTextBrightenTest107.test' +import UiTextBrightenTest108 from './UiTextBrightenTest/UiTextBrightenTest108.test' +import UiTextBrightenTest109 from './UiTextBrightenTest/UiTextBrightenTest109.test' +import UiTextBrightenTest110 from './UiTextBrightenTest/UiTextBrightenTest110.test' +import UiTextBrightenTest111 from './UiTextBrightenTest/UiTextBrightenTest111.test' +import UiTextBrightenTest112 from './UiTextBrightenTest/UiTextBrightenTest112.test' +import UiTextShadowTest001 from './UiTextShadowTest/UiTextShadowTest001.test' +import UiTextShadowTest002 from './UiTextShadowTest/UiTextShadowTest002.test' +import UiTextShadowTest003 from './UiTextShadowTest/UiTextShadowTest003.test' +import UiTextShadowTest004 from './UiTextShadowTest/UiTextShadowTest004.test' +import UiTextShadowTest005 from './UiTextShadowTest/UiTextShadowTest005.test' +import UiTextShadowTest006 from './UiTextShadowTest/UiTextShadowTest006.test' +import UiTextShadowTest007 from './UiTextShadowTest/UiTextShadowTest007.test' +import UiTextShadowTest008 from './UiTextShadowTest/UiTextShadowTest008.test' +import UiTextShadowTest009 from './UiTextShadowTest/UiTextShadowTest009.test' +import UiTextShadowTest010 from './UiTextShadowTest/UiTextShadowTest010.test' +import UiTextShadowTest011 from './UiTextShadowTest/UiTextShadowTest011.test' +import UiTextShadowTest012 from './UiTextShadowTest/UiTextShadowTest012.test' +import UiTextShadowTest013 from './UiTextShadowTest/UiTextShadowTest013.test' +import UiTextShadowTest014 from './UiTextShadowTest/UiTextShadowTest014.test' +import UiTextShadowTest015 from './UiTextShadowTest/UiTextShadowTest015.test' +import UiTextShadowTest016 from './UiTextShadowTest/UiTextShadowTest016.test' +import UiTextShadowTest017 from './UiTextShadowTest/UiTextShadowTest017.test' +import UiTextShadowTest018 from './UiTextShadowTest/UiTextShadowTest018.test' +import UiTextShadowTest019 from './UiTextShadowTest/UiTextShadowTest019.test' +import UiTextShadowTest020 from './UiTextShadowTest/UiTextShadowTest020.test' export default function testsuite() { demoTest(); UIAttributeFontInterface001(); @@ -49,5 +313,268 @@ export default function testsuite() { UiComponentTextCommonTextstyle(); UiComponentTextTextareaInterface(); UIAttributePositionSizeLayoutTest(); - UIAttributePositionInterfaceTest(); + ComponentAttributeStringModifyingStyle001(); + ComponentAttributeStringModifyingStyle002(); + ComponentAttributeStringModifyingStyle003(); + ComponentAttributeStringModifyingStyle004(); + ComponentAttributeStringModifyingStyle005(); + ComponentAttributeStringModifyingStyle006(); + ComponentAttributeStringModifyingStyleText001(); + ComponentAttributeStringModifyingStyleText002(); + ComponentAttributeStringModifyingStyleText003(); + ComponentAttributeStringModifyingStyleText004(); + ComponentAttributeStringModifyingStyleText005(); + ComponentAttributeStringModifyingText001(); + ComponentAttributeStringModifyingText002(); + ComponentAttributeStringModifyingText003(); + ComponentAttributeStringModifyingText004(); + ComponentAttributeStringModifyingText005(); + ComponentAttributeStringModifyingText006(); + ComponentAttributeStringModifyingText007(); + ComponentAttributeStringModifyingText008(); + ComponentAttributeStringModifyingText009(); + ComponentAttributeStringModifyingText010(); + ComponentTextAttributeString001(); + ComponentTextAttributeString002(); + ComponentTextAttributeString003(); + ComponentTextAttributeString004(); + ComponentTextAttributeString005(); + ComponentTextAttributeString006(); + ComponentTextAttributeString007(); + ComponentTextAttributeString008(); + ComponentTextAttributeString009(); + ComponentTextAttributeString010(); + ComponentTextAttributeString011(); + ComponentTextAttributeString012(); + ComponentTextAttributeString013(); + ComponentTextAttributeString014(); + ComponentTextAttributeString015(); + ComponentTextAttributeString016(); + ComponentTextAttributeString017(); + ComponentTextAttributeString018(); + ComponentTextAttributeString019(); + ComponentTextAttributeString020(); + ComponentTextAttributeString021(); + ComponentTextAttributeString022(); + ComponentTextAttributeString023(); + ComponentTextAttributeString024(); + ComponentTextAttributeString025(); + ComponentTextAttributeString026(); + ComponentTextAttributeString027(); + ComponentTextAttributeString028(); + ComponentTextAttributeString029(); + ComponentTextAttributeString030(); + ComponentTextAttributeString031(); + ComponentTextAttributeString032(); + ComponentTextAttributeString033(); + ComponentTextAttributeString034(); + ComponentTextAttributeString035(); + ComponentTextAttributeString036(); + ComponentTextAttributeString037(); + ComponentTextAttributeString038(); + ComponentTextAttributeString039(); + ComponentTextAttributeString040(); + ComponentTextAttributeString041(); + ComponentTextAttributeString042(); + ComponentTextAttributeString043(); + ComponentTextAttributeString044(); + ComponentTextAttributeString045(); + ComponentTextAttributeString046(); + ComponentTextAttributeString047(); + ComponentTextAttributeString048(); + ComponentTextAttributeString049(); + ComponentTextAttributeString050(); + ComponentTextAttributeString051(); + ComponentTextAttributeString052(); + ComponentTextAttributeString053(); + ComponentTextAttributeString054(); + ComponentTextAttributeString055(); + ComponentTextAttributeString056(); + ComponentTextAttributeString057(); + ComponentTextAttributeString058(); + ComponentTextAttributeString059(); + ComponentTextAttributeString060(); + ComponentTextAttributeStringConstructs001(); + ComponentTextAttributeStringConstructs002(); + ComponentTextAttributeStringConstructs003(); + ComponentTextAttributeStringConstructs004(); + ComponentTextAttributeStringConstructs005(); + ComponentTextAttributeStringConstructs006(); + ComponentTextAttributeStringConstructs007(); + ComponentTextAttributeStringConstructs008(); + ComponentTextAttributeStringConstructs009(); + ComponentTextAttributeStringConstructs010(); + ComponentTextAttributeStringConstructs011(); + ComponentTextAttributeStringConstructs012(); + ComponentTextAttributeStringConstructs013(); + ComponentTextAttributeStringConstructs014(); + ComponentTextAttributeStringConstructs015(); + ComponentTextAttributeStringConstructs016(); + ComponentTextAttributeStringConstructs017(); + ComponentTextAttributeStringConstructs018(); + ComponentTextAttributeStringConstructs019(); + ComponentTextAttributeStringConstructs020(); + ComponentTextAttributeStringConstructs021(); + ComponentTextAttributeStringConstructs022(); + ComponentTextAttributeStringConstructs023(); + ComponentTextAttributeStringConstructs024(); + ComponentTextAttributeStringConstructs025(); + ComponentTextAttributeStringConstructs026(); + ComponentTextAttributeStringConstructs027(); + ComponentTextAttributeStringConstructs028(); + ComponentTextAttributeStringConstructs029(); + ComponentLayoutCommonPixelTest001(); + ComponentLayoutCommonPixelTest002(); + ComponentLayoutCommonPixelTest003(); + ComponentLayoutCommonPixelTest004(); + ComponentLayoutCommonPixelTest005(); + ComponentLayoutCommonPixelTest006(); + ComponentLayoutCommonPixelTest007(); + ComponentLayoutCommonPixelTest008(); + ComponentLayoutCommonPixelTest009(); + ComponentLayoutCommonPixelTest010(); + ComponentLayoutCommonPixelTest011(); + ComponentLayoutCommonPixelTest012(); + ComponentLayoutCommonPixelTest013(); + ComponentLayoutCommonPixelTest014(); + ComponentLayoutCommonPixelTest015(); + ComponentLayoutCommonPixelTest016(); + ComponentLayoutCommonPixelTest017(); + ComponentLayoutCommonPixelTest018(); + ComponentLayoutCommonPixelTest019(); + ComponentLayoutCommonPixelTest020(); + ComponentLayoutCommonPixelTest021(); + UiTextBrightenTest001(); + UiTextBrightenTest002(); + UiTextBrightenTest003(); + UiTextBrightenTest004(); + UiTextBrightenTest005(); + UiTextBrightenTest006(); + UiTextBrightenTest007(); + UiTextBrightenTest008(); + UiTextBrightenTest009(); + UiTextBrightenTest010(); + UiTextBrightenTest011(); + UiTextBrightenTest012(); + UiTextBrightenTest013(); + UiTextBrightenTest014(); + UiTextBrightenTest015(); + UiTextBrightenTest016(); + UiTextBrightenTest017(); + UiTextBrightenTest018(); + UiTextBrightenTest019(); + UiTextBrightenTest020(); + UiTextBrightenTest021(); + UiTextBrightenTest022(); + UiTextBrightenTest023(); + UiTextBrightenTest024(); + UiTextBrightenTest025(); + UiTextBrightenTest026(); + UiTextBrightenTest027(); + UiTextBrightenTest028(); + UiTextBrightenTest029(); + UiTextBrightenTest030(); + UiTextBrightenTest031(); + UiTextBrightenTest032(); + UiTextBrightenTest033(); + UiTextBrightenTest034(); + UiTextBrightenTest035(); + UiTextBrightenTest036(); + UiTextBrightenTest037(); + UiTextBrightenTest038(); + UiTextBrightenTest039(); + UiTextBrightenTest040(); + UiTextBrightenTest041(); + UiTextBrightenTest042(); + UiTextBrightenTest043(); + UiTextBrightenTest044(); + UiTextBrightenTest045(); + UiTextBrightenTest046(); + UiTextBrightenTest047(); + UiTextBrightenTest048(); + UiTextBrightenTest049(); + UiTextBrightenTest050(); + UiTextBrightenTest051(); + UiTextBrightenTest052(); + UiTextBrightenTest053(); + UiTextBrightenTest054(); + UiTextBrightenTest055(); + UiTextBrightenTest056(); + UiTextBrightenTest057(); + UiTextBrightenTest058(); + UiTextBrightenTest059(); + UiTextBrightenTest060(); + UiTextBrightenTest060(); + UiTextBrightenTest061(); + UiTextBrightenTest062(); + UiTextBrightenTest063(); + UiTextBrightenTest064(); + UiTextBrightenTest065(); + UiTextBrightenTest066(); + UiTextBrightenTest067(); + UiTextBrightenTest068(); + UiTextBrightenTest069(); + UiTextBrightenTest070(); + UiTextBrightenTest071(); + UiTextBrightenTest072(); + UiTextBrightenTest073(); + UiTextBrightenTest074(); + UiTextBrightenTest075(); + UiTextBrightenTest076(); + UiTextBrightenTest077(); + UiTextBrightenTest078(); + UiTextBrightenTest079(); + UiTextBrightenTest080(); + UiTextBrightenTest081(); + UiTextBrightenTest082(); + UiTextBrightenTest083(); + UiTextBrightenTest084(); + UiTextBrightenTest085(); + UiTextBrightenTest086(); + UiTextBrightenTest087(); + UiTextBrightenTest088(); + UiTextBrightenTest089(); + UiTextBrightenTest090(); + UiTextBrightenTest091(); + UiTextBrightenTest092(); + UiTextBrightenTest093(); + UiTextBrightenTest094(); + UiTextBrightenTest095(); + UiTextBrightenTest096(); + UiTextBrightenTest097(); + UiTextBrightenTest098(); + UiTextBrightenTest099(); + UiTextBrightenTest100(); + UiTextBrightenTest101(); + UiTextBrightenTest102(); + UiTextBrightenTest103(); + UiTextBrightenTest104(); + UiTextBrightenTest105(); + UiTextBrightenTest106(); + UiTextBrightenTest107(); + UiTextBrightenTest108(); + UiTextBrightenTest109(); + UiTextBrightenTest110(); + UiTextBrightenTest111(); + UiTextBrightenTest112(); + UiTextShadowTest001(); + UiTextShadowTest002(); + UiTextShadowTest003(); + UiTextShadowTest004(); + UiTextShadowTest005(); + UiTextShadowTest006(); + UiTextShadowTest007(); + UiTextShadowTest008(); + UiTextShadowTest009(); + UiTextShadowTest010(); + UiTextShadowTest011(); + UiTextShadowTest012(); + UiTextShadowTest013(); + UiTextShadowTest014(); + UiTextShadowTest015(); + UiTextShadowTest016(); + UiTextShadowTest017(); + UiTextShadowTest018(); + UiTextShadowTest019(); + UiTextShadowTest020(); } \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest001.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest001.test.ets new file mode 100644 index 000000000..fa9f1ad70 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest001.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest001() { + + describe('UiTextBrightenTest001', () => { + 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_TEXTBRIGHTEN_0010 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0010 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten001") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0010 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest002.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest002.test.ets new file mode 100644 index 000000000..ba074741c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest002.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest002() { + + describe('UiTextBrightenTest002', () => { + 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_TEXTBRIGHTEN_0020 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0020 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten002") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0020 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest003.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest003.test.ets new file mode 100644 index 000000000..f6f617d58 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest003.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest003() { + + describe('UiTextBrightenTest003', () => { + 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_TEXTBRIGHTEN_0030 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0030 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten003") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0030 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest004.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest004.test.ets new file mode 100644 index 000000000..ad2b3e612 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest004.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest004() { + + describe('UiTextBrightenTest004', () => { + 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_TEXTBRIGHTEN_0040 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0040 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten004") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0040 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest005.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest005.test.ets new file mode 100644 index 000000000..e0e2e26ab --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest005.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest005() { + + describe('UiTextBrightenTest005', () => { + 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_TEXTBRIGHTEN_0050 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0050 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten005") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0050 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest006.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest006.test.ets new file mode 100644 index 000000000..189c11741 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest006.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest006() { + + describe('UiTextBrightenTest006', () => { + 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_TEXTBRIGHTEN_0060 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0060 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten006") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0060 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest007.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest007.test.ets new file mode 100644 index 000000000..8fb160c70 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest007.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest007() { + + describe('UiTextBrightenTest007', () => { + 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_TEXTBRIGHTEN_0070 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0070 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten007") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0070 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest008.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest008.test.ets new file mode 100644 index 000000000..7239b3150 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest008.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest008() { + + describe('UiTextBrightenTest008', () => { + 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_TEXTBRIGHTEN_0080 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0080 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten008") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0080 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest009.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest009.test.ets new file mode 100644 index 000000000..c46c51c5e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest009.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest009() { + + describe('UiTextBrightenTest009', () => { + 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_TEXTBRIGHTEN_0090 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0090 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten009") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0090 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest010.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest010.test.ets new file mode 100644 index 000000000..0dd750d47 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest010.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest010() { + + describe('UiTextBrightenTest010', () => { + 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_TEXTBRIGHTEN_0100 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0100 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten010") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0100 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest011.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest011.test.ets new file mode 100644 index 000000000..b389bd153 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest011.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest011() { + + describe('UiTextBrightenTest011', () => { + 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_TEXTBRIGHTEN_0120 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0120 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten011") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0120 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest012.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest012.test.ets new file mode 100644 index 000000000..8749d4d8a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest012.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest012() { + + describe('UiTextBrightenTest012', () => { + 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_TEXTBRIGHTEN_0130 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0130 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten012") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0130 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest013.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest013.test.ets new file mode 100644 index 000000000..80230b2bd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest013.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest013() { + + describe('UiTextBrightenTest013', () => { + 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_TEXTBRIGHTEN_0140 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0140 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten013") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0140 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest014.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest014.test.ets new file mode 100644 index 000000000..57a27c75f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest014.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest014() { + + describe('UiTextBrightenTest014', () => { + 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_TEXTBRIGHTEN_0150 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0150 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten014") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0150 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest015.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest015.test.ets new file mode 100644 index 000000000..bd3984cdf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest015.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest015() { + + describe('UiTextBrightenTest015', () => { + 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_TEXTBRIGHTEN_0160 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0160 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten015") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0160 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest016.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest016.test.ets new file mode 100644 index 000000000..708a1ab65 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest016.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest016() { + + describe('UiTextBrightenTest016', () => { + 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_TEXTBRIGHTEN_0170 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0170 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten016") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0170 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest017.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest017.test.ets new file mode 100644 index 000000000..9d91ef538 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest017.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest017() { + + describe('UiTextBrightenTest017', () => { + 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_TEXTBRIGHTEN_0180 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0180 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten017") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0180 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest018.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest018.test.ets new file mode 100644 index 000000000..db9fc1366 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest018.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest018() { + + describe('UiTextBrightenTest018', () => { + 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_TEXTBRIGHTEN_0190 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0190 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten018") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0190 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest019.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest019.test.ets new file mode 100644 index 000000000..0ce902fb3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest019.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest019() { + + describe('UiTextBrightenTest019', () => { + 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_TEXTBRIGHTEN_0200 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0200 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten019") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0200 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest020.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest020.test.ets new file mode 100644 index 000000000..f76d98de7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest020.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest020() { + + describe('UiTextBrightenTest020', () => { + 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_TEXTBRIGHTEN_0210 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0210 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten020") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0210 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest021.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest021.test.ets new file mode 100644 index 000000000..978c184c1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest021.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest021() { + + describe('UiTextBrightenTest021', () => { + 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_TEXTBRIGHTEN_0110 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0110 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten021") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0110 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest022.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest022.test.ets new file mode 100644 index 000000000..e53887d6f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest022.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest022() { + + describe('UiTextBrightenTest022', () => { + 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_TEXTBRIGHTEN_0220 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0220 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten022") + await Utils.sleep(4000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0220 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest023.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest023.test.ets new file mode 100644 index 000000000..11b90ae68 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest023.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest023() { + + describe('UiTextBrightenTest023', () => { + 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_TEXTBRIGHTEN_0230 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0230 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten023") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0230 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest024.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest024.test.ets new file mode 100644 index 000000000..90067aae2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest024.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest024() { + + describe('UiTextBrightenTest024', () => { + 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_TEXTBRIGHTEN_0240 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0240 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten024") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0240 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest025.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest025.test.ets new file mode 100644 index 000000000..87b27f737 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest025.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest025() { + + describe('UiTextBrightenTest025', () => { + 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_TEXTBRIGHTEN_0250 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0250 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten025") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0250 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest026.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest026.test.ets new file mode 100644 index 000000000..a9519668b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest026.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest026() { + + describe('UiTextBrightenTest026', () => { + 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_TEXTBRIGHTEN_0260 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0260 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten026") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0260 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest027.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest027.test.ets new file mode 100644 index 000000000..7a1e920b5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest027.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest027() { + + describe('UiTextBrightenTest027', () => { + 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_TEXTBRIGHTEN_0270 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0270 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten027") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0270 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest028.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest028.test.ets new file mode 100644 index 000000000..7cd60d65e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest028.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest028() { + + describe('UiTextBrightenTest028', () => { + 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_TEXTBRIGHTEN_0280 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0280 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten028") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0280 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest029.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest029.test.ets new file mode 100644 index 000000000..41bfd6b50 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest029.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest029() { + + describe('UiTextBrightenTest029', () => { + 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_TEXTBRIGHTEN_0290 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0290 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten029") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0290 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest030.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest030.test.ets new file mode 100644 index 000000000..a6584dbb9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest030.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest030() { + + describe('UiTextBrightenTest030', () => { + 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_TEXTBRIGHTEN_0300 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0300 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten030") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0300 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest031.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest031.test.ets new file mode 100644 index 000000000..1fc88ed40 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest031.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest031() { + + describe('UiTextBrightenTest031', () => { + 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_TEXTBRIGHTEN_0310 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0310 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten031") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0310 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest032.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest032.test.ets new file mode 100644 index 000000000..02390952d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest032.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest032() { + + describe('UiTextBrightenTest032', () => { + 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_TEXTBRIGHTEN_0320 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0320 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten032") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0320 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest033.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest033.test.ets new file mode 100644 index 000000000..308544f72 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest033.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest033() { + + describe('UiTextBrightenTest033', () => { + 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_TEXTBRIGHTEN_0330 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0330 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten033") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0330 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest034.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest034.test.ets new file mode 100644 index 000000000..6c3f91493 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest034.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest034() { + + describe('UiTextBrightenTest034', () => { + 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_TEXTBRIGHTEN_0340 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0340 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten034") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0340 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest035.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest035.test.ets new file mode 100644 index 000000000..618bc3b08 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest035.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest035() { + + describe('UiTextBrightenTest035', () => { + 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_TEXTBRIGHTEN_0350 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0350 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten035") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0350 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest036.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest036.test.ets new file mode 100644 index 000000000..42aa0d9de --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest036.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest036() { + + describe('UiTextBrightenTest036', () => { + 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_TEXTBRIGHTEN_0360 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0360 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten036") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0360 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest037.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest037.test.ets new file mode 100644 index 000000000..0ee5e5658 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest037.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest037() { + + describe('UiTextBrightenTest037', () => { + 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_TEXTBRIGHTEN_0370 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0370 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten037") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0370 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest038.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest038.test.ets new file mode 100644 index 000000000..357fcb342 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest038.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest038() { + + describe('UiTextBrightenTest038', () => { + 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_TEXTBRIGHTEN_0380 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0380 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten038") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0380 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest039.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest039.test.ets new file mode 100644 index 000000000..1244a14d5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest039.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest039() { + + describe('UiTextBrightenTest039', () => { + 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_TEXTBRIGHTEN_0390 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0390 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten039") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0390 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest040.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest040.test.ets new file mode 100644 index 000000000..d43034ddc --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest040.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest040() { + + describe('UiTextBrightenTest040', () => { + 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_TEXTBRIGHTEN_0400 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0400 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten040") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0400 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest041.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest041.test.ets new file mode 100644 index 000000000..85faa32f0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest041.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest041() { + + describe('UiTextBrightenTest041', () => { + 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_TEXTBRIGHTEN_0410 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0410 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten041") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0410 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest042.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest042.test.ets new file mode 100644 index 000000000..a78d23c69 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest042.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest042() { + + describe('UiTextBrightenTest042', () => { + 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_TEXTBRIGHTEN_0420 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0420 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten042") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0420 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest043.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest043.test.ets new file mode 100644 index 000000000..510835f1e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest043.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest043() { + + describe('UiTextBrightenTest043', () => { + 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_TEXTBRIGHTEN_0430 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0430 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten043") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0430 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest044.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest044.test.ets new file mode 100644 index 000000000..473319288 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest044.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest044() { + + describe('UiTextBrightenTest044', () => { + 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_TEXTBRIGHTEN_0440 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0440 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten044") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0440 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest045.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest045.test.ets new file mode 100644 index 000000000..14e90ed57 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest045.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest045() { + + describe('UiTextBrightenTest045', () => { + 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_TEXTBRIGHTEN_0450 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0450 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten045") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0450 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest046.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest046.test.ets new file mode 100644 index 000000000..76ca31832 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest046.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest046() { + + describe('UiTextBrightenTest046', () => { + 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_TEXTBRIGHTEN_0460 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0460 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten046") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0460 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest047.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest047.test.ets new file mode 100644 index 000000000..aa8cfbc16 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest047.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest047() { + + describe('UiTextBrightenTest047', () => { + 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_TEXTBRIGHTEN_0470 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0470 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten047") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0470 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest048.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest048.test.ets new file mode 100644 index 000000000..c63e568cf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest048.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest048() { + + describe('UiTextBrightenTest048', () => { + 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_TEXTBRIGHTEN_0480 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0480 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten048") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0480 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest049.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest049.test.ets new file mode 100644 index 000000000..c51eaa122 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest049.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest049() { + + describe('UiTextBrightenTest049', () => { + 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_TEXTBRIGHTEN_0490 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0490 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten049") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0490 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest050.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest050.test.ets new file mode 100644 index 000000000..541dc43b0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest050.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest050() { + + describe('UiTextBrightenTest050', () => { + 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_TEXTBRIGHTEN_0500 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0500 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten050") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0500 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest051.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest051.test.ets new file mode 100644 index 000000000..4055eb2ef --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest051.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest051() { + + describe('UiTextBrightenTest051', () => { + 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_TEXTBRIGHTEN_0510 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0510 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten051") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0510 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest052.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest052.test.ets new file mode 100644 index 000000000..187a60733 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest052.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest052() { + + describe('UiTextBrightenTest052', () => { + 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_TEXTBRIGHTEN_0520 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0520 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten052") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0520 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest053.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest053.test.ets new file mode 100644 index 000000000..3f40fdf13 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest053.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest053() { + + describe('UiTextBrightenTest053', () => { + 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_TEXTBRIGHTEN_0530 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0530 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten053") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0530 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest054.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest054.test.ets new file mode 100644 index 000000000..b5fb64d72 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest054.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest054() { + + describe('UiTextBrightenTest054', () => { + 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_TEXTBRIGHTEN_0540 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0540 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten054") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0540 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest055.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest055.test.ets new file mode 100644 index 000000000..6ccca486c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest055.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest055() { + + describe('UiTextBrightenTest055', () => { + 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_TEXTBRIGHTEN_0550 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0550 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten055") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0550 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest056.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest056.test.ets new file mode 100644 index 000000000..eac3b9851 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest056.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest056() { + + describe('UiTextBrightenTest056', () => { + 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_TEXTBRIGHTEN_0560 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0560 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten056") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0560 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest057.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest057.test.ets new file mode 100644 index 000000000..28388abad --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest057.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest057() { + + describe('UiTextBrightenTest057', () => { + 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_TEXTBRIGHTEN_0570 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0570 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten057") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0570 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest058.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest058.test.ets new file mode 100644 index 000000000..93bb1bab0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest058.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest058() { + + describe('UiTextBrightenTest058', () => { + 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_TEXTBRIGHTEN_0580 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0580 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten058") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0580 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest059.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest059.test.ets new file mode 100644 index 000000000..66736da5f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest059.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest059() { + + describe('UiTextBrightenTest059', () => { + 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_TEXTBRIGHTEN_0590 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0590 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten059") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0590 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest060.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest060.test.ets new file mode 100644 index 000000000..4074e3ead --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest060.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest060() { + + describe('UiTextBrightenTest060', () => { + 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_TEXTBRIGHTEN_0600 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0600 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten060") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0600 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest061.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest061.test.ets new file mode 100644 index 000000000..4dec6502e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest061.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest061() { + + describe('UiTextBrightenTest061', () => { + 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_TEXTBRIGHTEN_0610 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0610 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten061") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0610 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest062.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest062.test.ets new file mode 100644 index 000000000..dcc76ae17 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest062.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest062() { + + describe('UiTextBrightenTest062', () => { + 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_TEXTBRIGHTEN_0620 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0620 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten062") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0620 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest063.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest063.test.ets new file mode 100644 index 000000000..ccc50f459 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest063.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest063() { + + describe('UiTextBrightenTest063', () => { + 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_TEXTBRIGHTEN_0630 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0630 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten063") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0630 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest064.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest064.test.ets new file mode 100644 index 000000000..e64b01304 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest064.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest064() { + + describe('UiTextBrightenTest064', () => { + 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_TEXTBRIGHTEN_0640 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0640 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten064") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0640 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest065.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest065.test.ets new file mode 100644 index 000000000..17cd33ff2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest065.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest065() { + + describe('UiTextBrightenTest065', () => { + 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_TEXTBRIGHTEN_0650 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0650', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0650 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten065") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0650 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest066.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest066.test.ets new file mode 100644 index 000000000..c0539a92b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest066.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest066() { + + describe('UiTextBrightenTest066', () => { + 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_TEXTBRIGHTEN_0660 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0660', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0660 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten066") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0660 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest067.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest067.test.ets new file mode 100644 index 000000000..f5868b499 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest067.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest067() { + + describe('UiTextBrightenTest067', () => { + 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_TEXTBRIGHTEN_0670 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0670 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten067") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0670 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest068.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest068.test.ets new file mode 100644 index 000000000..3c5f4b46d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest068.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest068() { + + describe('UiTextBrightenTest068', () => { + 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_TEXTBRIGHTEN_0680 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0680 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten068") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0680 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest069.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest069.test.ets new file mode 100644 index 000000000..91b10697e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest069.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest069() { + + describe('UiTextBrightenTest069', () => { + 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_TEXTBRIGHTEN_0690 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0690 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten069") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0690 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest070.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest070.test.ets new file mode 100644 index 000000000..bf4214524 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest070.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest070() { + + describe('UiTextBrightenTest070', () => { + 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_TEXTBRIGHTEN_0700 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0700 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten070") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0700 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest071.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest071.test.ets new file mode 100644 index 000000000..df8712644 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest071.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest071() { + + describe('UiTextBrightenTest071', () => { + 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_TEXTBRIGHTEN_0710 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0710 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten071") + await Utils.sleep(6000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0710 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest072.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest072.test.ets new file mode 100644 index 000000000..343408e35 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest072.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest072() { + + describe('UiTextBrightenTest072', () => { + 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_TEXTBRIGHTEN_0720 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0720 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten072") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0720 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest073.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest073.test.ets new file mode 100644 index 000000000..3ae0510cf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest073.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest073() { + + describe('UiTextBrightenTest073', () => { + 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_TEXTBRIGHTEN_0730 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0730', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0730 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten073") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0730 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest074.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest074.test.ets new file mode 100644 index 000000000..13b8334fc --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest074.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest074() { + + describe('UiTextBrightenTest074', () => { + 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_TEXTBRIGHTEN_0740 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0740 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten074") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0740 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest075.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest075.test.ets new file mode 100644 index 000000000..20eff43f4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest075.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest075() { + + describe('UiTextBrightenTest075', () => { + 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_TEXTBRIGHTEN_0750 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0750', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0750 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten075") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0750 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest076.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest076.test.ets new file mode 100644 index 000000000..f274da0d5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest076.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest076() { + + describe('UiTextBrightenTest076', () => { + 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_TEXTBRIGHTEN_0760 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0760', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0760 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten076") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0760 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest077.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest077.test.ets new file mode 100644 index 000000000..f62005ab8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest077.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest077() { + + describe('UiTextBrightenTest077', () => { + 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_TEXTBRIGHTEN_0770 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0770', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0770 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten077") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0770 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest078.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest078.test.ets new file mode 100644 index 000000000..9caf30a29 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest078.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest078() { + + describe('UiTextBrightenTest078', () => { + 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_TEXTBRIGHTEN_0780 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0780', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0780 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten078") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0780 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest079.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest079.test.ets new file mode 100644 index 000000000..89d3054fe --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest079.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest079() { + + describe('UiTextBrightenTest079', () => { + 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_TEXTBRIGHTEN_0790 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0790 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten079") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0790 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest080.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest080.test.ets new file mode 100644 index 000000000..f40a073fe --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest080.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest080() { + + describe('UiTextBrightenTest080', () => { + 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_TEXTBRIGHTEN_0800 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0800 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten080") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0800 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest081.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest081.test.ets new file mode 100644 index 000000000..90970f3d1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest081.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest081() { + + describe('UiTextBrightenTest081', () => { + 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_TEXTBRIGHTEN_0810 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0810', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0810 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten081") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0810 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest082.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest082.test.ets new file mode 100644 index 000000000..0f4a65324 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest082.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest082() { + + describe('UiTextBrightenTest082', () => { + 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_TEXTBRIGHTEN_0820 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0820', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0820 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten082") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0820 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest083.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest083.test.ets new file mode 100644 index 000000000..48ed37d5e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest083.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest083() { + + describe('UiTextBrightenTest083', () => { + 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_TEXTBRIGHTEN_0830 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0830', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0830 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten083") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0830 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest084.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest084.test.ets new file mode 100644 index 000000000..e466a3994 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest084.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest084() { + + describe('UiTextBrightenTest084', () => { + 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_TEXTBRIGHTEN_0840 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0840', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0840 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten084") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0840 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest085.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest085.test.ets new file mode 100644 index 000000000..aef4f2b8a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest085.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest085() { + + describe('UiTextBrightenTest085', () => { + 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_TEXTBRIGHTEN_0850 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0850', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0850 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten085") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0850 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest086.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest086.test.ets new file mode 100644 index 000000000..12006b71c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest086.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest086() { + + describe('UiTextBrightenTest086', () => { + 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_TEXTBRIGHTEN_0860 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0860', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0860 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten086") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0860 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest087.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest087.test.ets new file mode 100644 index 000000000..707e7725c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest087.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest087() { + + describe('UiTextBrightenTest087', () => { + 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_TEXTBRIGHTEN_0870 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0870', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0870 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten087") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0870 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest088.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest088.test.ets new file mode 100644 index 000000000..eb1411995 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest088.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest088() { + + describe('UiTextBrightenTest088', () => { + 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_TEXTBRIGHTEN_0880 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0880', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0880 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten088") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0880 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest089.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest089.test.ets new file mode 100644 index 000000000..e835b68d2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest089.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest089() { + + describe('UiTextBrightenTest089', () => { + 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_TEXTBRIGHTEN_0890 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0890', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0890 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten089") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0890 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest090.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest090.test.ets new file mode 100644 index 000000000..055a00edb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest090.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest090() { + + describe('UiTextBrightenTest090', () => { + 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_TEXTBRIGHTEN_0900 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0900', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0900 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten090") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0900 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest091.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest091.test.ets new file mode 100644 index 000000000..2e7bbc192 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest091.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest091() { + + describe('UiTextBrightenTest091', () => { + 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_TEXTBRIGHTEN_0910 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0910', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0910 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten091") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0910 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest092.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest092.test.ets new file mode 100644 index 000000000..1fdefc311 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest092.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest092() { + + describe('UiTextBrightenTest092', () => { + 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_TEXTBRIGHTEN_0920 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0920', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0920 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten092") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0920 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest093.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest093.test.ets new file mode 100644 index 000000000..9bcfc2da9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest093.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest093() { + + describe('UiTextBrightenTest093', () => { + 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_TEXTBRIGHTEN_0930 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_093', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0930 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten093") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0930 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest094.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest094.test.ets new file mode 100644 index 000000000..bd095ce0c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest094.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest094() { + + describe('UiTextBrightenTest094', () => { + 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_TEXTBRIGHTEN_0940 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0940', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0940 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten094") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0940 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest095.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest095.test.ets new file mode 100644 index 000000000..3f4cf0215 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest095.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest095() { + + describe('UiTextBrightenTest095', () => { + 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_TEXTBRIGHTEN_0950 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0950', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0950 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten095") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0950 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest096.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest096.test.ets new file mode 100644 index 000000000..29f1ecb3f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest096.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest096() { + + describe('UiTextBrightenTest096', () => { + 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_TEXTBRIGHTEN_0960 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0960', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0960 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten096") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0960 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest097.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest097.test.ets new file mode 100644 index 000000000..608fe008d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest097.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest097() { + + describe('UiTextBrightenTest097', () => { + 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_TEXTBRIGHTEN_0970 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0970', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0970 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten097") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0970 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest098.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest098.test.ets new file mode 100644 index 000000000..0278ee5f2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest098.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest098() { + + describe('UiTextBrightenTest098', () => { + 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_TEXTBRIGHTEN_0980 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0980', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0980 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten098") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0980 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest099.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest099.test.ets new file mode 100644 index 000000000..aec276984 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest099.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest099() { + + describe('UiTextBrightenTest099', () => { + 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_TEXTBRIGHTEN_0990 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_0990', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0990 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten099") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_0990 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest100.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest100.test.ets new file mode 100644 index 000000000..df89930d9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest100.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest100() { + + describe('UiTextBrightenTest100', () => { + 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_TEXTBRIGHTEN_1000 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_1000', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1000 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten100") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1000 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest101.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest101.test.ets new file mode 100644 index 000000000..10d99182d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest101.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest101() { + + describe('UiTextBrightenTest101', () => { + 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_TEXTBRIGHTEN_1010 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_1010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1010 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten101") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1010 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest102.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest102.test.ets new file mode 100644 index 000000000..f7dd7531d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest102.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest102() { + + describe('UiTextBrightenTest102', () => { + 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_TEXTBRIGHTEN_1020 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_1020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1020 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten102") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1020 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest103.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest103.test.ets new file mode 100644 index 000000000..78d4538d9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest103.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest103() { + + describe('UiTextBrightenTest103', () => { + 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_TEXTBRIGHTEN_1030 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_1030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1030 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten103") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1030 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest104.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest104.test.ets new file mode 100644 index 000000000..56eef97bc --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest104.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest104() { + + describe('UiTextBrightenTest104', () => { + 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_TEXTBRIGHTEN_1040 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_1040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1040 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten104") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1040 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest105.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest105.test.ets new file mode 100644 index 000000000..57f3a9a9e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest105.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest105() { + + describe('UiTextBrightenTest105', () => { + 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_TEXTBRIGHTEN_1050 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_1050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1050 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten105") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1050 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest106.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest106.test.ets new file mode 100644 index 000000000..e52656bad --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest106.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest106() { + + describe('UiTextBrightenTest106', () => { + 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_TEXTBRIGHTEN_1060 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_1060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1060 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten106") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1060 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest107.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest107.test.ets new file mode 100644 index 000000000..639ed8109 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest107.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest107() { + + describe('UiTextBrightenTest107', () => { + 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_TEXTBRIGHTEN_1070 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_1070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1070 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten107") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1070 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest108.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest108.test.ets new file mode 100644 index 000000000..5d82a029b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest108.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest108() { + + describe('UiTextBrightenTest108', () => { + 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_TEXTBRIGHTEN_1080 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_1080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1080 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten108") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1080 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest109.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest109.test.ets new file mode 100644 index 000000000..b7bae69e1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest109.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest109() { + + describe('UiTextBrightenTest109', () => { + 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_TEXTBRIGHTEN_1090 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_1090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1090 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten109") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1090 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest110.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest110.test.ets new file mode 100644 index 000000000..99a3850e1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest110.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest110() { + + describe('UiTextBrightenTest110', () => { + 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_TEXTBRIGHTEN_1100 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_1100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1100 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten110") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1100 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest111.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest111.test.ets new file mode 100644 index 000000000..bf7a85173 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest111.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest111() { + + describe('UiTextBrightenTest111', () => { + 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_TEXTBRIGHTEN_1110 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_1110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1110 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten111") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1110 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest112.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest112.test.ets new file mode 100644 index 000000000..ba07f8a93 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextBrightenTest/UiTextBrightenTest112.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextBrightenTest112() { + + describe('UiTextBrightenTest112', () => { + 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_TEXTBRIGHTEN_1120 + * @tc.name TEXT-BRIGHTEN + * @tc.desc test text brighten + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTBRIGHTEN_1120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1120 start.`); + Settings.createWindow("testability/pages/UiTextBrighten/UiTextBrighten112") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTBRIGHTEN_1120 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest001.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest001.test.ets new file mode 100644 index 000000000..18ddcebeb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest001.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest001() { + + describe('UiTextShadowTest001', () => { + 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_TEXTSHADOW_0010 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0010 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow001") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0010 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest002.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest002.test.ets new file mode 100644 index 000000000..3622aa86f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest002.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest002() { + + describe('UiTextShadowTest002', () => { + 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_TEXTSHADOW_0020 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0020 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow002") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0020 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest003.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest003.test.ets new file mode 100644 index 000000000..aedba127a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest003.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest003() { + + describe('UiTextShadowTest003', () => { + 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_TEXTSHADOW_0030 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0030 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow003") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0030 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest004.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest004.test.ets new file mode 100644 index 000000000..d83efb53b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest004.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest004() { + + describe('UiTextShadowTest004', () => { + 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_TEXTSHADOW_0040 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0040 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow004") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0040 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest005.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest005.test.ets new file mode 100644 index 000000000..031883b4f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest005.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest005() { + + describe('UiTextShadowTest005', () => { + 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_TEXTSHADOW_0050 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0050 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow005") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0050 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest006.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest006.test.ets new file mode 100644 index 000000000..bd9fc3795 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest006.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest006() { + + describe('UiTextShadowTest006', () => { + 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_TEXTSHADOW_0060 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0060 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow006") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0060 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest007.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest007.test.ets new file mode 100644 index 000000000..eac56154a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest007.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest007() { + + describe('UiTextShadowTest007', () => { + 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_TEXTSHADOW_0070 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0070 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow007") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0070 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest008.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest008.test.ets new file mode 100644 index 000000000..17e401d4a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest008.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest008() { + + describe('UiTextShadowTest008', () => { + 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_TEXTSHADOW_0080 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0080 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow008") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0080 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest009.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest009.test.ets new file mode 100644 index 000000000..2480fe6bd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest009.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest009() { + + describe('UiTextShadowTest009', () => { + 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_TEXTSHADOW_0090 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0090 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow009") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0090 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest010.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest010.test.ets new file mode 100644 index 000000000..77de48f7b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest010.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest010() { + + describe('UiTextShadowTest010', () => { + 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_TEXTSHADOW_0100 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0100 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow010") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0100 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest011.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest011.test.ets new file mode 100644 index 000000000..e06a12e28 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest011.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest011() { + + describe('UiTextShadowTest011', () => { + 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_TEXTSHADOW_0110 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0110 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow011") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0110 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest012.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest012.test.ets new file mode 100644 index 000000000..37f8e03c4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest012.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest012() { + + describe('UiTextShadowTest012', () => { + 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_TEXTSHADOW_0120 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0120 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow012") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0120 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest013.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest013.test.ets new file mode 100644 index 000000000..5abbaeca6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest013.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest013() { + + describe('UiTextShadowTest013', () => { + 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_TEXTSHADOW_0130 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0130 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow013") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0130 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest014.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest014.test.ets new file mode 100644 index 000000000..e19ec6491 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest014.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest014() { + + describe('UiTextShadowTest014', () => { + 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_TEXTSHADOW_0140 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0140 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow014") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0140 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest015.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest015.test.ets new file mode 100644 index 000000000..7aa4d4bd4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest015.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest015() { + + describe('UiTextShadowTest015', () => { + 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_TEXTSHADOW_0150 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0150 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow015") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0150 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest016.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest016.test.ets new file mode 100644 index 000000000..b6e2defa7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest016.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest016() { + + describe('UiTextShadowTest016', () => { + 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_TEXTSHADOW_0160 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0160 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow016") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0160 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest017.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest017.test.ets new file mode 100644 index 000000000..a5460ae6a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest017.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest017() { + + describe('UiTextShadowTest017', () => { + 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_TEXTSHADOW_0170 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0170 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow017") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0170 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest018.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest018.test.ets new file mode 100644 index 000000000..fc5806cfd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest018.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest018() { + + describe('UiTextShadowTest018', () => { + 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_TEXTSHADOW_0180 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0180 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow018") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0180 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest019.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest019.test.ets new file mode 100644 index 000000000..af0248b14 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest019.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest019() { + + describe('UiTextShadowTest019', () => { + 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_TEXTSHADOW_0190 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0190 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow019") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0190 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest020.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest020.test.ets new file mode 100644 index 000000000..67af04dd3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiTextShadowTest/UiTextShadowTest020.test.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 UiTextShadowTest020() { + + describe('UiTextShadowTest020', () => { + 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_TEXTSHADOW_0200 + * @tc.name TEXT-SHADOW + * @tc.desc test text shadow + * @tc.level Level 3 + * @tc.type + * @tc.size + */ + it('SUB_ACE_UI_TEXTSHADOW_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0200 start.`); + Settings.createWindow("testability/pages/UiTextShadow/UiTextShadow020") + await Utils.sleep(3000) + windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_TEXTSHADOW_0200 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle001.ets new file mode 100644 index 000000000..c814ec797 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle001.ets @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingStyle001 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:4, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}, + {start:4, length:4, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Red})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString1') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + + this.mutableStyledString1.replaceStyle({ + start:2, + length:4, + styledKey:StyledStringKey.FONT, + styledValue: new TextStyle({fontColor:Color.Green}) + }) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle002.ets new file mode 100644 index 000000000..e9931f12e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle002.ets @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingStyle002 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:4, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}, + {start:4, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Red})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString002') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + + this.mutableStyledString1.replaceStyle({ + start:2, + length:4, + styledKey:StyledStringKey.FONT, + styledValue: new TextStyle({fontColor:Color.Green}) + }) + + let styles = this.mutableStyledString1.getStyles(0,8,StyledStringKey.FONT) + + for (let i = 0; i < styles.length; i++) { + console.info('test {' + styles[i].start + ',' + styles[i].length + ',' + 'styledKey:StyledStringKey.FONT' + styles[i].styledKey + '}') + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle003.ets new file mode 100644 index 000000000..2bc974f5c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle003.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingStyle003 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:4, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}, + {start:4, length:4, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Red})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString003') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + + this.mutableStyledString1.setStyle({ + start:2, + length:4, + styledKey:StyledStringKey.FONT, + styledValue: new TextStyle({fontColor:Color.Green})}) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle004.ets new file mode 100644 index 000000000..1b1074f55 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle004.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 ComponentAttributeStringModifyingStyle004 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:4, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}, + {start:4, length:4, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Red})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString004') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + + this.mutableStyledString1.clearStyles() + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle005.ets new file mode 100644 index 000000000..e65f1765a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle005.ets @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingStyle005 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:4, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}, + {start:4, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Red})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString005') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + + this.mutableStyledString1.clearStyles() + + let styles = this.mutableStyledString1.getStyles(0,8,StyledStringKey.FONT) + + for (let i = 0; i < styles.length; i++) { + if(styles[i].start == null){ + console.info("return null") + }else{ + console.info('test {' + styles[i].start + ',' + styles[i].length + ',' + 'styledKey:StyledStringKey.FONT' + styles[i].styledKey + '}') + } + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle006.ets new file mode 100644 index 000000000..057036ef4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle006.ets @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingStyle006 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString006') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + + this.mutableStyledString1.setStyle({ + start:2, + length:4, + styledKey:StyledStringKey.FONT, + styledValue: new TextStyle({fontColor:Color.Green})}) + + this.mutableStyledString1.removeStyles(0,7) + + this.mutableStyledString1.setStyle({ + start:2, + length:4, + styledKey:StyledStringKey.FONT, + styledValue: new TextStyle({fontColor:Color.Green})}) + + this.mutableStyledString1.removeStyles(0,7) + + this.mutableStyledString1.setStyle({ + start:2, + length:4, + styledKey:StyledStringKey.FONT, + styledValue: new TextStyle({fontColor:Color.Green})}) + + this.mutableStyledString1.removeStyles(0,7) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText001.ets new file mode 100644 index 000000000..722564d51 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText001.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingStyleText001 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450; + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}, + {start:4, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Red})}]); + + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.mutableStyledString1.replaceStyledString(2, 2, + new StyledString('输入框', [{start:0,length:3,styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Green})}])) + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText002.ets new file mode 100644 index 000000000..149d21444 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText002.ets @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingStyleText002 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450; + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}, + {start:4, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Red})}]); + + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.mutableStyledString1.replaceStyledString(2, 2, + new StyledString('输入框', [{start:0,length:3,styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Green})}])) + console.info("mutableStyledString1 content", this.mutableStyledString1.getString()) + console.info("mutableStyledString1 length", this.mutableStyledString1.length) + let fontArray = this.mutableStyledString1.getStyles(0,8,StyledStringKey.FONT) + for (let i = 0; i < fontArray.length; i++) { + console.info('mutableStyledString1 style object start:' + fontArray[i].start) + console.info('mutableStyledString1 style object length:' + fontArray[i].length) + console.info('mutableStyledString1 style object key:' + fontArray[i].styledKey) + } + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText003.ets new file mode 100644 index 000000000..6f125cfe2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText003.ets @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingStyleText003 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450; + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}, + {start:4, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Red})}]); + + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.mutableStyledString1.insertStyledString(4,new StyledString('输入框', + [{styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Green})}])) + console.info("mutableStyledString1 content", this.mutableStyledString1.getString()) + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText004.ets new file mode 100644 index 000000000..88cc90bfa --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText004.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingStyleText004 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450; + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.mutableStyledString1.appendStyledString(new StyledString('文本输入', + [{styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Green})}])) + console.info("mutableStyledString1 content", this.mutableStyledString1.getString()) + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText005.ets new file mode 100644 index 000000000..ad7431f27 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText005.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingStyleText005 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450; + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.controller1.setStyledString(this.mutableStyledString1) + this.mutableStyledString1.appendStyledString(new StyledString('文本输入', + [{styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Green})}])) + console.info("mutableStyledString1 content", this.mutableStyledString1.getString()) + console.info("mutableStyledString1 length", this.mutableStyledString1.length) + console.info("mutableStyledString1 StyledStringKey", this.mutableStyledString1.getStyles(0,12,StyledStringKey.FONT)) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText001.ets new file mode 100644 index 000000000..d0bf72a83 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText001.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 ComponentAttributeStringModifyingText001 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + + this.mutableStyledString1.replaceString(0, 4, '已经替换') + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText002.ets new file mode 100644 index 000000000..3bafa23bf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText002.ets @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingText002 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450; + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.controller1.setStyledString(this.mutableStyledString1) + this.mutableStyledString1.replaceString(0, 2, '已经替换') + this.TestSwitch = 500 + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText003.ets new file mode 100644 index 000000000..3813febaa --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText003.ets @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingText003 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450; + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.controller1.setStyledString(this.mutableStyledString1) + this.mutableStyledString1.replaceString(0, 2, '已经替换') + console.info("mutableStyledString1 content:", this.mutableStyledString1.getString()); + console.info("mutableStyledString1 length:", this.mutableStyledString1.length); + this.TestSwitch = 500 + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText004.ets new file mode 100644 index 000000000..ceab541dd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText004.ets @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingText004 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450; + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.controller1.setStyledString(this.mutableStyledString1) + this.mutableStyledString1.insertString(0,'输入框') + this.TestSwitch = 500 + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText005.ets new file mode 100644 index 000000000..e8f5840ac --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText005.ets @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingText005 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450; + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.mutableStyledString1.insertString(1,' ') + this.mutableStyledString1.insertString(4,'\n') + console.info("mutableStyledString1 content", this.mutableStyledString1.getString()) + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText006.ets new file mode 100644 index 000000000..2c021ec18 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText006.ets @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingText006 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450; + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:4, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}, + {start:4, length:4, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Red})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.controller1.setStyledString(this.mutableStyledString1) + this.mutableStyledString1.insertString(4,'输入框') + this.TestSwitch = 500 + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText007.ets new file mode 100644 index 000000000..6b879c048 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText007.ets @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingText007 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450; + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.controller1.setStyledString(this.mutableStyledString1) + this.mutableStyledString1.insertString(0,'输入框') + console.info("mutableStyledString1 content:", this.mutableStyledString1.getString()); + console.info("mutableStyledString1 length:", this.mutableStyledString1.length); + this.TestSwitch = 500 + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText008.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText008.ets new file mode 100644 index 000000000..893aa6802 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText008.ets @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingText008 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450; + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.controller1.setStyledString(this.mutableStyledString1) + this.mutableStyledString1.removeString(0,2) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText009.ets new file mode 100644 index 000000000..021e9672c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText009.ets @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingText009 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450; + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.controller1.setStyledString(this.mutableStyledString1) + this.mutableStyledString1.removeString(0,2) + console.info("mutableStyledString1 content:", this.mutableStyledString1.getString()); + console.info("mutableStyledString1 length:", this.mutableStyledString1.length); + this.TestSwitch = 500 + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText010.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText010.ets new file mode 100644 index 000000000..babd37574 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText010.ets @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct ComponentAttributeStringModifyingText010 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450; + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.controller1.setStyledString(this.mutableStyledString1) + let styles = this.mutableStyledString1.getStyles(0, this.mutableStyledString1.length) + let fontAttr = styles[0].styledValue as TextStyle; + console.info('mutableStyledString1 fontColor:' + fontAttr.fontColor) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel001.ets new file mode 100644 index 000000000..3f6af4c85 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel001.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel001 { + + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController){ + Text("1").width(100.3).height(80.4).borderWidth(1) + Text("2").width(30.2).height(80.5).borderWidth(1) + Text("3").width(30.4).height(80.4).borderWidth(1) + Text("4").width(30.8).height(80.5).borderWidth(1) + Text("5").width(30.8).height(80.4).borderWidth(1) + Text("6").width(30.2).height(80.5).borderWidth(1) + Text("7").width(30.2).height(80.4).borderWidth(1) + } + .displayCount(7, true) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel002.ets new file mode 100644 index 000000000..1a2ce466d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel002.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel002 { + + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController){ + Text("1").width(100.3).height(80.4).borderWidth(1) + Text("2").width(30.2).height(80.5).borderWidth(1) + Text("3").width(30.4).height(80.4).borderWidth(1) + Text("4").width(30.8).height(80.5).borderWidth(1) + Text("5").width(30.8).height(80.4).borderWidth(1) + Text("6").width(30.2).height(80.5).borderWidth(1) + Text("7").width(30.2).height(80.4).borderWidth(1) + } + .displayCount(8, true) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel003.ets new file mode 100644 index 000000000..f84740902 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel003.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel003 { + + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController){ + Text("1").width(100.3).height(80.4).borderWidth(1) + Text("2").width(30.2).height(80.5).borderWidth(1) + Text("3").width(30.4).height(80.4).borderWidth(1) + Text("4").width(30.8).height(80.5).borderWidth(1) + Text("5").width(30.8).height(80.4).borderWidth(1) + Text("6").width(30.2).height(80.5).borderWidth(1) + Text("7").width(30.2).height(80.4).borderWidth(1) + } + .indicator(false) + .displayCount(7, true) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel004.ets new file mode 100644 index 000000000..0638eaeaa --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel004.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel004 { + + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController){ + Text("1").width(100.3).height(80.4).borderWidth(1) + Text("2").width(30.2).height(80.5).borderWidth(1) + Text("3").width(30.4).height(80.4).borderWidth(1) + Text("4").width(30.8).height(80.5).borderWidth(1) + Text("5").width(30.8).height(80.4).borderWidth(1) + Text("6").width(30.2).height(80.5).borderWidth(1) + Text("7").width(30.2).height(80.4).borderWidth(1) + } + .indicator(false) + .displayCount(7, true) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel005.ets new file mode 100644 index 000000000..cc305f000 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel005.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 { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel005 { + + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController){ + Text("1").width(100.3).height(80.4).borderWidth(1) + Text("2").width(30.2).height(80.5).borderWidth(1) + Text("3").width(30.4).height(80.4).borderWidth(1) + Text("4").width(30.8).height(80.5).borderWidth(1) + Text("5").width(30.8).height(80.4).borderWidth(1) + Text("6").width(30.2).height(80.5).borderWidth(1) + Text("7").width(30.2).height(80.4).borderWidth(1) + } + .indicator(false) + .displayCount(7, true) + .displayArrow(false) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel006.ets new file mode 100644 index 000000000..dc7bb8a68 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel006.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 { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel006 { + + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController){ + // Text("1").width(100.3).height(80.4).borderWidth(1) + Text("2").width(30.2).height(80.5).borderWidth(1) + Text("3").width(30.4).height(80.4).borderWidth(1) + Text("4").width(30.8).height(80.5).borderWidth(1) + Text("5").width(30.8).height(80.4).borderWidth(1) + Text("6").width(30.2).height(80.5).borderWidth(1) + Text("7").width(30.2).height(80.4).borderWidth(1) + } + .indicator(false) + .displayCount(7, true) + .displayArrow(false) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel007.ets new file mode 100644 index 000000000..8558eafb2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel007.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 { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel007 { + + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController){ + Text("1").width(100.3).height(80.4).borderWidth(1) + Text("2").width(30.2).height(80.5).borderWidth(1) + // Text("3").width(30.4).height(80.4).borderWidth(1) + Text("4").width(30.8).height(80.5).borderWidth(1) + Text("5").width(30.8).height(80.4).borderWidth(1) + Text("6").width(30.2).height(80.5).borderWidth(1) + Text("7").width(30.2).height(80.4).borderWidth(1) + } + .indicator(false) + .displayCount(7, true) + .displayArrow(false) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel008.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel008.ets new file mode 100644 index 000000000..7c0c3e72e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel008.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 { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel008 { + + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController){ + Text("1").width(100.3).height(80.4).borderWidth(1) + Text("2").width(30.2).height(80.5).borderWidth(1) + Text("3").width(30.4).height(80.4).borderWidth(1) + Text("4").width(30.8).height(80.5).borderWidth(1) + Text("5").width(30.8).height(80.4).borderWidth(1) + Text("6").width(30.2).height(80.5).borderWidth(1) + // Text("7").width(30.2).height(80.4).borderWidth(1) + } + .indicator(false) + .displayCount(7, true) + .displayArrow(false) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel009.ets new file mode 100644 index 000000000..284337b5a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel009.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel009 { + + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController){ + Text("0").width(30.3).height(80.5).borderWidth(1) + Text("1").width(100.3).height(80.4).borderWidth(1) + Text("2").width(30.2).height(80.5).borderWidth(1) + Text("3").width(30.4).height(80.4).borderWidth(1) + Text("4").width(30.8).height(80.5).borderWidth(1) + Text("5").width(30.8).height(80.4).borderWidth(1) + Text("6").width(30.2).height(80.5).borderWidth(1) + Text("7").width(30.2).height(80.4).borderWidth(1) + } + .indicator(false) + .displayCount(7, true) + .displayArrow(false) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel010.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel010.ets new file mode 100644 index 000000000..e099c8c84 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel010.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel010 { + + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController){ + Text("1").width(100.3).height(80.4).borderWidth(1) + Text("2").width(30.2).height(80.5).borderWidth(1) + Text("0").width(30.3).height(80.5).borderWidth(1) + Text("3").width(30.4).height(80.4).borderWidth(1) + Text("4").width(30.8).height(80.5).borderWidth(1) + Text("5").width(30.8).height(80.4).borderWidth(1) + Text("6").width(30.2).height(80.5).borderWidth(1) + Text("7").width(30.2).height(80.4).borderWidth(1) + } + .indicator(false) + .displayCount(7, true) + .displayArrow(false) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel011.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel011.ets new file mode 100644 index 000000000..5ee8d2290 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel011.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel011 { + + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController){ + Text("1").width(100.3).height(80.4).borderWidth(1) + Text("2").width(30.2).height(80.5).borderWidth(1) + Text("3").width(30.4).height(80.4).borderWidth(1) + Text("4").width(30.8).height(80.5).borderWidth(1) + Text("5").width(30.8).height(80.4).borderWidth(1) + Text("6").width(30.2).height(80.5).borderWidth(1) + Text("7").width(30.2).height(80.4).borderWidth(1) + Text("0").width(30.3).height(80.5) + } + .indicator(false) + .displayCount(7, true) + .displayArrow(false) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel012.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel012.ets new file mode 100644 index 000000000..55d0bc4f1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel012.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel012 { + + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController){ + Text("1").width(100.3).height(80.4).borderWidth(1) + Text("2").width(30.2).height(80.5).borderWidth(1) + Text("3").width(30.4).height(80.4).borderWidth(1) + Text("4").width(30.8).height(80.5).borderWidth(1) + Text("5").width(30.8).height(80.4).borderWidth(1) + Text("6").width(30.2).height(80.5).borderWidth(1) + Text("7").width(30.2).height(80.4).borderWidth(1) + } + .indicator(false) + .displayCount(7, true) + .displayArrow(false) + .disableSwipe(true) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel013.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel013.ets new file mode 100644 index 000000000..152561234 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel013.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel013 { + + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController){ + Text("1").width(100.3).height(80.4).borderWidth(1) + Text("2").width(30.2).height(80.5).borderWidth(1) + Text("3").width(30.4).height(80.4).borderWidth(1) + Text("4").width(30.8).height(80.5).borderWidth(1) + Text("5").width(30.8).height(80.4).borderWidth(1) + Text("6").width(30.2).height(80.5).borderWidth(1) + Text("7").width(30.2).height(80.4).borderWidth(1) + } + .width(100.5) + .height(100.4) + .indicator(false) + .displayCount(7, true) + .displayArrow(false) + .disableSwipe(true) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel014.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel014.ets new file mode 100644 index 000000000..b6d47fe34 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel014.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel014 { + + build() { + Column({ space: 5 }) { + WaterFlow(){ + // FlowItem(){ + // Text("1").width(100.3).height(80.4).borderWidth(1) + // } + FlowItem(){ + Text("2").width(30.2).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("3").width(30.4).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("4").width(30.8).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("5").width(30.8).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("6").width(30.2).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("7").width(30.2).height(80.4).borderWidth(1) + } + } + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel015.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel015.ets new file mode 100644 index 000000000..0830d97e8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel015.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel015 { + + build() { + Column({ space: 5 }) { + WaterFlow(){ + FlowItem(){ + Text("1").width(100.3).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("2").width(30.2).height(80.5).borderWidth(1) + } + // FlowItem(){ + // Text("3").width(30.4).height(80.4).borderWidth(1) + // } + FlowItem(){ + Text("4").width(30.8).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("5").width(30.8).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("6").width(30.2).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("7").width(30.2).height(80.4).borderWidth(1) + } + } + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel016.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel016.ets new file mode 100644 index 000000000..6c52a9aaf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel016.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel016 { + + build() { + Column({ space: 5 }) { + WaterFlow(){ + FlowItem(){ + Text("1").width(100.3).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("2").width(30.2).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("3").width(30.4).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("4").width(30.8).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("5").width(30.8).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("6").width(30.2).height(80.5).borderWidth(1) + } + // FlowItem(){ + // Text("7").width(30.2).height(80.4).borderWidth(1) + // } + } + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel017.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel017.ets new file mode 100644 index 000000000..69b295b06 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel017.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel017 { + + build() { + Column({ space: 5 }) { + WaterFlow(){ + FlowItem(){ + Text("0").width(30.3).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("1").width(100.3).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("2").width(30.2).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("3").width(30.4).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("4").width(30.8).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("5").width(30.8).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("6").width(30.2).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("7").width(30.2).height(80.4).borderWidth(1) + } + } + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel018.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel018.ets new file mode 100644 index 000000000..6ad18e33a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel018.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel018 { + + build() { + Column({ space: 5 }) { + WaterFlow(){ + FlowItem(){ + Text("1").width(100.3).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("2").width(30.2).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("0").width(30.3).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("3").width(30.4).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("4").width(30.8).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("5").width(30.8).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("6").width(30.2).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("7").width(30.2).height(80.4).borderWidth(1) + } + } + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel019.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel019.ets new file mode 100644 index 000000000..982077db0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel019.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel019 { + + build() { + Column({ space: 5 }) { + WaterFlow(){ + FlowItem(){ + Text("1").width(100.3).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("2").width(30.2).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("3").width(30.4).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("4").width(30.8).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("5").width(30.8).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("6").width(30.2).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("7").width(30.2).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("0").width(30.3).height(80.5).borderWidth(1) + } + } + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel020.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel020.ets new file mode 100644 index 000000000..0a78a5a2e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel020.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel020 { + + build() { + Column({ space: 5 }) { + WaterFlow(){ + FlowItem(){ + Text("1").width(100.3).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("2").width(30.2).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("3").width(30.4).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("4").width(30.8).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("5").width(30.8).height(80.4).borderWidth(1) + } + FlowItem(){ + Text("6").width(30.2).height(80.5).borderWidth(1) + } + FlowItem(){ + Text("7").width(30.2).height(80.4).borderWidth(1) + } + } + .width(100.5) + .height(100.4) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel021.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel021.ets new file mode 100644 index 000000000..656c73104 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel021.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentLayoutCommonPixel021 { + + build() { + Column({ space: 5 }) { + WaterFlow(){ + FlowItem(){ + Text("1").width(80.4).height(80.5).borderWidth(1) + } + } + .width(100.5) + .height(100.4) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString001.ets new file mode 100644 index 000000000..812f7a677 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString001.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString001 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(10, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString1') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString002.ets new file mode 100644 index 000000000..f6f165157 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString002.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString002 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(80,LengthUnit.PERCENT)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString1') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString003.ets new file mode 100644 index 000000000..eb0de4f24 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString003.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString003 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(30,LengthUnit.VP)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString1') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString004.ets new file mode 100644 index 000000000..3920da12e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString004.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString004 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(30,LengthUnit.FP)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString4') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString005.ets new file mode 100644 index 000000000..fcca09151 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString005.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString005 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(50,LengthUnit.LPX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString5') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString006.ets new file mode 100644 index 000000000..16dda4cc0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString006.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString006 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontWeight: 0})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString6') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString007.ets new file mode 100644 index 000000000..5a15a8067 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString007.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString007 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontWeight: 200})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString6') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString008.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString008.ets new file mode 100644 index 000000000..845a0bac2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString008.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString008 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontWeight: 1000})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString009.ets new file mode 100644 index 000000000..a7847ce26 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString009.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString009 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontWeight: FontWeight.Bolder})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString010.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString010.ets new file mode 100644 index 000000000..cb6e4f31e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString010.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString010 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontWeight: 'abcdefg'})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString011.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString011.ets new file mode 100644 index 000000000..a4554a9cf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString011.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString011 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontWeight: 'bolder'})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString012.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString012.ets new file mode 100644 index 000000000..15c2a6a54 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString012.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString012 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontWeight: undefined})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString013.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString013.ets new file mode 100644 index 000000000..de77ed723 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString013.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString013 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontStyle: FontStyle.Normal})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString014.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString014.ets new file mode 100644 index 000000000..bab526a74 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString014.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString014 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontStyle: FontStyle.Italic})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString015.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString015.ets new file mode 100644 index 000000000..275133899 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString015.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString015 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontFamily: 'custom'})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + console.info("mutableStyledString1 length",this.mutableStyledString1.getStyles(0, this.mutableStyledString1.length)) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString016.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString016.ets new file mode 100644 index 000000000..265677d32 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString016.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString016 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontFamily: 'HarmonyOS Sans'})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString017.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString017.ets new file mode 100644 index 000000000..44fa0b10d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString017.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString017 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString018.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString018.ets new file mode 100644 index 000000000..049df84d3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString018.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString018 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.DECORATION, styledValue: new DecorationStyle({ type: TextDecorationType.Overline, color: Color.Red })}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString019.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString019.ets new file mode 100644 index 000000000..f0ffaaf04 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString019.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString019 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.DECORATION, styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Blue })}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString020.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString020.ets new file mode 100644 index 000000000..1161a1948 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString020.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString020 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.DECORATION, styledValue: new DecorationStyle({ type: TextDecorationType.Underline, color: Color.Pink })}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString021.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString021.ets new file mode 100644 index 000000000..50d764f29 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString021.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString021 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.DECORATION, styledValue: new DecorationStyle({ type: TextDecorationType.None, color: Color.Green })}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString022.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString022.ets new file mode 100644 index 000000000..4d80694ca --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString022.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString022 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.DECORATION, styledValue: new DecorationStyle({ type: TextDecorationType.None, color: Color.Yellow })}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString023.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString023.ets new file mode 100644 index 000000000..77d153a22 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString023.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString023 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.DECORATION, styledValue: new DecorationStyle({ type: TextDecorationType.Underline })}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString024.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString024.ets new file mode 100644 index 000000000..8edf22d2a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString024.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString024 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.DECORATION, styledValue: new DecorationStyle({ type: TextDecorationType.Underline, color: '0x100abcd'})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString025.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString025.ets new file mode 100644 index 000000000..5f47dcff9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString025.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString025 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.DECORATION, styledValue: new DecorationStyle({ type: TextDecorationType.Underline, color: $r('app.color.yellow')})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString026.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString026.ets new file mode 100644 index 000000000..d4ab57021 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString026.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString026 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.BASELINE_OFFSET, styledValue: new BaselineOffsetStyle(LengthMetrics.vp(-30))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString027.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString027.ets new file mode 100644 index 000000000..48e770c8a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString027.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString027 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.BASELINE_OFFSET, styledValue: new BaselineOffsetStyle(new LengthMetrics(30,0))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString028.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString028.ets new file mode 100644 index 000000000..2577193b0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString028.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString028 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.BASELINE_OFFSET, styledValue: new BaselineOffsetStyle(new LengthMetrics(20,1))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString029.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString029.ets new file mode 100644 index 000000000..a23dc67c6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString029.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString029 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.BASELINE_OFFSET, styledValue: new BaselineOffsetStyle(new LengthMetrics(10,2))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString030.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString030.ets new file mode 100644 index 000000000..db85b4b78 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString030.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString030 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.BASELINE_OFFSET, styledValue: new BaselineOffsetStyle(new LengthMetrics(50,3))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString031.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString031.ets new file mode 100644 index 000000000..4273f9d53 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString031.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString031 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.BASELINE_OFFSET, styledValue: new BaselineOffsetStyle(new LengthMetrics(50,4))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString032.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString032.ets new file mode 100644 index 000000000..dc91b8f0e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString032.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString032 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.BASELINE_OFFSET, styledValue: new BaselineOffsetStyle(new LengthMetrics(20,undefined))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString033.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString033.ets new file mode 100644 index 000000000..0eaba05c4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString033.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString033 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.BASELINE_OFFSET, styledValue: new BaselineOffsetStyle(new LengthMetrics(0,0))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString034.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString034.ets new file mode 100644 index 000000000..e4fb92160 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString034.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString034 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.BASELINE_OFFSET, styledValue: new BaselineOffsetStyle(new LengthMetrics(0,0))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString035.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString035.ets new file mode 100644 index 000000000..64b6361a5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString035.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString035 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7, styledKey: StyledStringKey.LETTER_SPACING, styledValue: new LetterSpacingStyle(new LengthMetrics(-10))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString036.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString036.ets new file mode 100644 index 000000000..e3791de8f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString036.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString036 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:5, styledKey: StyledStringKey.LETTER_SPACING, styledValue: new LetterSpacingStyle(new LengthMetrics(10,0))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString037.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString037.ets new file mode 100644 index 000000000..d4288eb23 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString037.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString037 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:5, styledKey: StyledStringKey.LETTER_SPACING, styledValue: new LetterSpacingStyle(new LengthMetrics(20,0))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString038.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString038.ets new file mode 100644 index 000000000..55fd4277c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString038.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString038 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:5, styledKey: StyledStringKey.LETTER_SPACING, styledValue: new LetterSpacingStyle(new LengthMetrics(10,2))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString039.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString039.ets new file mode 100644 index 000000000..58145b048 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString039.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString039 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:5, styledKey: StyledStringKey.LETTER_SPACING, styledValue: new LetterSpacingStyle(new LengthMetrics(50,3))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString040.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString040.ets new file mode 100644 index 000000000..739b308cd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString040.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString040 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:5, styledKey: StyledStringKey.LETTER_SPACING, styledValue: new LetterSpacingStyle(new LengthMetrics(5,4))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString041.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString041.ets new file mode 100644 index 000000000..26d9f1478 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString041.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString041 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:5, styledKey: StyledStringKey.LETTER_SPACING, styledValue: new LetterSpacingStyle(new LengthMetrics(20,undefined))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString042.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString042.ets new file mode 100644 index 000000000..1aff0ec46 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString042.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString042 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:5, styledKey: StyledStringKey.LETTER_SPACING, styledValue: new LetterSpacingStyle(new LengthMetrics(0,0))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString043.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString043.ets new file mode 100644 index 000000000..523ac1064 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString043.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString043 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:0, length:2, styledKey: StyledStringKey.LETTER_SPACING, styledValue: new LetterSpacingStyle(new LengthMetrics(0,0))}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString044.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString044.ets new file mode 100644 index 000000000..c618558e3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString044.ets @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString044 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7, styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle( + [{ radius: 50, color: "#FF16A1D7", offsetX: 30, offsetY: 30, fill: true }, + { radius: 5, color: "#ff9d16d7", offsetX: 10, offsetY: 10, fill: true }, + { radius: 15, color: "#fffaa904", offsetX: 0, offsetY: 0, fill: true }])}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString045.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString045.ets new file mode 100644 index 000000000..61e762b84 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString045.ets @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString045 { + @State message: string = '这是一段测试文字' + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + console.info("mutableStyledString1 length" + this.mutableStyledString1.getStyles(0, this.mutableStyledString1.length)) + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString046.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString046.ets new file mode 100644 index 000000000..7e8bc8d3b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString046.ets @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString046 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450 + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.mutableStyledString1.replaceString(2 , 2 , ("特殊")) + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString047.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString047.ets new file mode 100644 index 000000000..aecaa3494 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString047.ets @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString047 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450 + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.mutableStyledString1.insertString(2 , ("特殊")) + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString048.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString048.ets new file mode 100644 index 000000000..c2eb68339 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString048.ets @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString048 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450 + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.mutableStyledString1.removeString(2, 2) + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString049.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString049.ets new file mode 100644 index 000000000..2f041609e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString049.ets @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString049 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450 + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + mutableStyledString2: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + mutableStyledString3: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + mutableStyledString4: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + mutableStyledString5: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + controller1: TextController = new TextController(); + controller2: TextController = new TextController(); + controller3: TextController = new TextController(); + controller4: TextController = new TextController(); + controller5: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.mutableStyledString1.replaceStyle({ start: 2, length: 7,styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontSize: new LengthMetrics(10), fontStyle: FontStyle.Normal, fontWeight: FontWeight.Lighter, fontColor: Color.Blue, })},) + this.controller1.setStyledString(this.mutableStyledString1) + }) + Text(undefined, { controller: this.controller2 }) + .onAreaChange(() => { + this.mutableStyledString2.replaceStyle({ start: 2, length: 7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(-10))}) + this.controller2.setStyledString(this.mutableStyledString2) + }) + Text(undefined, { controller: this.controller3 }) + .onAreaChange(() => { + this.mutableStyledString3.replaceStyle({ start: 2, length: 7, styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.Underline, color: Color.Green })}) + this.controller3.setStyledString(this.mutableStyledString3) + }) + Text(undefined, { controller: this.controller4 }) + .onAreaChange(() => { + this.mutableStyledString4.replaceStyle({start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}) + this.controller4.setStyledString(this.mutableStyledString4) + }) + Text(undefined, { controller: this.controller5 }) + .onAreaChange(() => { + this.mutableStyledString5.replaceStyle({start: 2, length: 7, styledKey: StyledStringKey.TEXT_SHADOW,styledValue: new TextShadowStyle([{radius: 0, color: Color.Pink, offsetX: -10, offsetY: -10, fill: true }])}) + this.controller5.setStyledString(this.mutableStyledString5) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString050.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString050.ets new file mode 100644 index 000000000..2bf479b22 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString050.ets @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString050 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450 + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + mutableStyledString2: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + mutableStyledString3: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + mutableStyledString4: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + mutableStyledString5: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + controller1: TextController = new TextController(); + controller2: TextController = new TextController(); + controller3: TextController = new TextController(); + controller4: TextController = new TextController(); + controller5: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.mutableStyledString1.setStyle({ start: 2, length: 7,styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontSize: new LengthMetrics(10), fontStyle: FontStyle.Normal, fontWeight: FontWeight.Lighter, fontColor: Color.Blue, })},) + this.controller1.setStyledString(this.mutableStyledString1) + }) + Text(undefined, { controller: this.controller2 }) + .onAreaChange(() => { + this.mutableStyledString2.setStyle({ start: 2, length: 7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(-10))}) + this.controller2.setStyledString(this.mutableStyledString2) + }) + Text(undefined, { controller: this.controller3 }) + .onAreaChange(() => { + this.mutableStyledString3.setStyle({ start: 2, length: 7, styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.Underline, color: Color.Green })}) + this.controller3.setStyledString(this.mutableStyledString3) + }) + Text(undefined, { controller: this.controller4 }) + .onAreaChange(() => { + this.mutableStyledString4.setStyle({start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}) + this.controller4.setStyledString(this.mutableStyledString4) + }) + Text(undefined, { controller: this.controller5 }) + .onAreaChange(() => { + this.mutableStyledString5.setStyle({start: 2, length: 7, styledKey: StyledStringKey.TEXT_SHADOW,styledValue: new TextShadowStyle([{radius: 0, color: Color.Pink, offsetX: -10, offsetY: -10, fill: true }])}) + this.controller5.setStyledString(this.mutableStyledString5) + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString051.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString051.ets new file mode 100644 index 000000000..682153eee --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString051.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString051 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450 + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.mutableStyledString1.removeStyle(2, 7, StyledStringKey.FONT) + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString052.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString052.ets new file mode 100644 index 000000000..53e416cc4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString052.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString052 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450 + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.mutableStyledString1.removeStyles(2, 2) + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString053.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString053.ets new file mode 100644 index 000000000..61e3ba700 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString053.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString053 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450 + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.mutableStyledString1.clearStyles() + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString054.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString054.ets new file mode 100644 index 000000000..d2edca7e0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString054.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString054 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450 + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.mutableStyledString1.replaceStyledString(0,2,new StyledString('全部', + [{ start: 0, length: 2,styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontSize: new LengthMetrics(10), fontStyle: FontStyle.Normal, fontWeight: FontWeight.Lighter, fontColor: Color.Blue, })}, + { start: 0, length: 2,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(-10))}, + { start: 0, length: 2, styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.Underline, color: Color.Green })}, + { start: 0, length: 2, styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(5))}, + {start: 0, length: 2, styledKey: StyledStringKey.TEXT_SHADOW,styledValue: new TextShadowStyle([{radius: 0, color: Color.Green, offsetX: -10, offsetY: -10, fill: true }]) + }])) + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString055.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString055.ets new file mode 100644 index 000000000..be176b822 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString055.ets @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString055 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450 + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.mutableStyledString1.insertStyledString(0,new StyledString('全部', + [{ start: 0, length: 2,styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontSize: new LengthMetrics(10), fontStyle: FontStyle.Normal, fontWeight: FontWeight.Lighter, fontColor: Color.Blue, })}, + { start: 0, length: 2,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(-10))}, + { start: 0, length: 2, styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.Underline, color: Color.Green })}, + { start: 0, length: 2, styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(5))}, + ])) + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString056.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString056.ets new file mode 100644 index 000000000..f676cdc12 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString056.ets @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString056 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450 + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.mutableStyledString1.appendStyledString(new StyledString('全部', + [{ start: 0, length: 2,styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontSize: new LengthMetrics(10), fontStyle: FontStyle.Normal, fontWeight: FontWeight.Lighter, fontColor: Color.Blue, })}, + { start: 0, length: 2,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(-10))}, + { start: 0, length: 2, styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.Underline, color: Color.Green })}, + { start: 0, length: 2, styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(5))}, + {start: 0, length: 2, styledKey: StyledStringKey.TEXT_SHADOW,styledValue: new TextShadowStyle([{radius: 0, color: Color.Green, offsetX: -10, offsetY: -10, fill: true }]) + }])) + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString057.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString057.ets new file mode 100644 index 000000000..d2cfe34da --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString057.ets @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString057 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450 + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .fontSize(10) + .fontColor(Color.Green) + .fontWeight(FontWeight.Lighter) + .baselineOffset(-10) + .fontStyle(FontStyle.Italic) + .decoration({type:TextDecorationType.Underline,color: Color.Pink }) + .textShadow({ radius: 5, color: Color.Black, offsetX: -10, offsetY: -10 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString058.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString058.ets new file mode 100644 index 000000000..3dd79365d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString058.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString058 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450 + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .copyOption(CopyOptions.InApp) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString059.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString059.ets new file mode 100644 index 000000000..65edb314d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString059.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString059 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450 + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .padding(10) + .margin(10) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString060.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString060.ets new file mode 100644 index 000000000..9de137c9f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeString/ComponentTextAttributeString060.ets @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct ComponentTextAttributeString060 { + @State message: string = '这是一段测试文字' + @State TestSwitch: number = 450 + fontStyleAttr1: StyledStringValue = new TextStyle({ fontSize: new LengthMetrics(20), fontStyle: FontStyle.Italic, fontWeight:FontWeight.Bolder, fontColor: Color.Red ,}); + mutableStyledString1: MutableStyledString = new MutableStyledString("这是属性字符串文本", + [{start:2, length:7,styledKey:StyledStringKey.FONT,styledValue: this.fontStyleAttr1}, + {start:2, length:7,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:2, length:7,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:2, length:7,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]) + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .key('mutableStyledString8') + .onAreaChange(() => { + if(this.TestSwitch == 450){ + this.controller1.setStyledString(this.mutableStyledString1) + this.TestSwitch = 500 + } + }) + .maxLines(1) + // .textOverflow({ overflow: TextOverflow.Clip }) + .textOverflow({ overflow: TextOverflow.Ellipsis}) + // .textOverflow({ overflow: TextOverflow.MARQUEE}) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs001.ets new file mode 100644 index 000000000..69bc94928 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs001.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs001 { + @State message: string = '这是一段测试文字' + StyledString1: StyledString = new StyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs002.ets new file mode 100644 index 000000000..7add35e42 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs002.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs002 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs003.ets new file mode 100644 index 000000000..6bb5412be --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs003.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs003 { + @State message: string = '这是一段测试文字' + StyledString1: StyledString = new StyledString('这是一段测试文字', + [{start:0, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}, + {start:4, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Red})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs004.ets new file mode 100644 index 000000000..34b3aed5a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs004.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs004 { + @State message: string = '这是一段测试文字' + StyledString1: StyledString = new StyledString('这是测试字符:Abc123!@#¥%…&*()', + [{start:0, length:7, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}, + {start:7, length:30, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Red})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs005.ets new file mode 100644 index 000000000..394aa7a35 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs005.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs005 { + @State message: string = '这是一段测试文字' + StyledString1: StyledString = new StyledString('这是一段测试文字', + [{start:0, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}, + {start:2, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Red})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs006.ets new file mode 100644 index 000000000..71cc61c22 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs006.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs006 { + @State message: string = '这是一段测试文字' + StyledString1: StyledString = new StyledString('这是一段测试文字', + [{start:0, length:3, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs007.ets new file mode 100644 index 000000000..e68ea108c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs007.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs007 { + @State message: string = '这是一段测试文字' + StyledString1: StyledString = new StyledString('这是一段测试文字', + [{start:0, length:10, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs008.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs008.ets new file mode 100644 index 000000000..8126d065f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs008.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 { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs008 { + @State message: string = '这是一段测试文字' + StyledString1: StyledString = new StyledString('这是一段测试文字'); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs009.ets new file mode 100644 index 000000000..b08a0ff8b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs009.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs009 { + @State message: string = '这是一段测试文字' + StyledString1: StyledString = new StyledString('这是一段测试文字', + [{styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs010.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs010.ets new file mode 100644 index 000000000..4c3d89de0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs010.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs010 { + @State message: string = '这是一段测试文字' + StyledString1: StyledString = new StyledString('这是一段测试文字', + [{start:15, length:5, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs011.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs011.ets new file mode 100644 index 000000000..f2b48bea5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs011.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs011 { + @State message: string = '这是一段测试文字' + StyledString1: StyledString = new StyledString('这是一段测试文字', + [{start:-5, length:5, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs012.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs012.ets new file mode 100644 index 000000000..b3742f65e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs012.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs012 { + @State message: string = '这是一段测试文字' + StyledString1: StyledString = new StyledString('这是一段测试文字', + [{start:0, length:-8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .fontSize(20) + .fontColor(Color.Blue) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs013.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs013.ets new file mode 100644 index 000000000..a85e651b3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs013.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs013 { + @State message: string = '这是一段测试文字' + StyledString1: StyledString = new StyledString('这是一段测试文字', + [{start:0, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .fontSize(20) + .fontColor(Color.Red) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs014.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs014.ets new file mode 100644 index 000000000..589db62d4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs014.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs014 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + spanStyle1:SpanStyle = {start:0, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Pink})} + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.mutableStyledString1.replaceStyle(this.spanStyle1) + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Red) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs015.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs015.ets new file mode 100644 index 000000000..89bcf331c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs015.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs015 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + spanStyle1:SpanStyle = {start:-1, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Pink})} + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.mutableStyledString1.replaceStyle(this.spanStyle1) + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs016.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs016.ets new file mode 100644 index 000000000..86d02a69f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs016.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs016 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + spanStyle1:SpanStyle = {start:20, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Pink})} + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.mutableStyledString1.replaceStyle(this.spanStyle1) + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Red) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs017.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs017.ets new file mode 100644 index 000000000..826f94212 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs017.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs017 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + spanStyle1:SpanStyle = {start:0, length: -1, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Pink})} + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.mutableStyledString1.replaceStyle(this.spanStyle1) + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Red) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs018.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs018.ets new file mode 100644 index 000000000..3533c45c5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs018.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs018 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + spanStyle1:SpanStyle = {start:0, length:20, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Pink})} + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.mutableStyledString1.replaceStyle(this.spanStyle1) + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Red) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs019.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs019.ets new file mode 100644 index 000000000..7400c56bf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs019.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs019 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString('这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + spanStyle1:SpanStyle = {start:6, length:3, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Pink})} + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.mutableStyledString1.replaceStyle(this.spanStyle1) + this.controller1.setStyledString(this.mutableStyledString1) + }) + .fontSize(20) + .fontColor(Color.Red) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs020.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs020.ets new file mode 100644 index 000000000..ff29213da --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs020.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs020 { + @State message: string = '这是一段测试文字' + StyledString1: StyledString = new StyledString('这是一段测试文字', + [{start:0, length:4, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }){ + Span('Span测试') + } + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .fontSize(20) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs021.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs021.ets new file mode 100644 index 000000000..4e2d85c2e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs021.ets @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs021 { + @State message: string = '这是一段测试文字' + StyledString1: StyledString = new StyledString('这是一段测试文字这是一段测试文字这是一段测试文字这是一段测试文字这是一段测试文字这是一段测试文字这是一段测试文字这是一段测试文字这是一段测试文字', + [{start:0, length:8, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({fontColor:Color.Blue})}, + {start:9, length:8,styledKey: StyledStringKey.BASELINE_OFFSET,styledValue: new BaselineOffsetStyle(new LengthMetrics(10))}, + {start:18, length:8,styledKey: StyledStringKey.DECORATION,styledValue: new DecorationStyle({ type: TextDecorationType.LineThrough, color: Color.Red })}, + {start:26, length:8,styledKey: StyledStringKey.LETTER_SPACING,styledValue: new LetterSpacingStyle(new LengthMetrics(10))}, + {start:34, length:8,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) + }]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .fontSize(20) + .fontColor(Color.Red) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs022.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs022.ets new file mode 100644 index 000000000..955b9d595 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs022.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs022 { + @State phoneNumber: string = '(86) (755) ********'; + @State url: string = 'www.********.com'; + @State email: string = '1111@163.com'; + @State address: string = 'XX省XX市XX区XXXX'; + @State datetime: string = 'XX年XX月XX日XXXX'; + @State enableDataDetector: boolean = true; + @State types: TextDataDetectorType[] = []; + + build() { + Row() { + Column() { + Text( + '电话号码:' + this.phoneNumber + '\n' + + '链接:' + this.url + '\n' + + '邮箱:' + this.email + '\n' + + '地址:' + this.address + '\n' + + '时间:' + this.datetime + ) + .fontSize(16) + .enableDataDetector(this.enableDataDetector) + .dataDetectorConfig({types : this.types}) + .textAlign(TextAlign.Center) + .borderWidth(1) + .padding(10) + .width('100%') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs023.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs023.ets new file mode 100644 index 000000000..ccf8f4175 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs023.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs023 { + @State message: string = '这是一段测试文字' + StyledString1: StyledString = new StyledString('这是一段测试文字', + [{start:0, length:8,styledKey: StyledStringKey.TEXT_SHADOW, styledValue: new TextShadowStyle([{radius: 0, color: Color.Blue, offsetX: 10, offsetY: 10, fill: true }, { radius: 15, color:Color.Green, offsetX: 0, offsetY: 0, fill: true }]) }]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .fontSize(20) + .fontColor(Color.Red) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs024.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs024.ets new file mode 100644 index 000000000..da9eda5bc --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs024.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs024 { + @State text: string = + 'The text component is used to display a piece of textual information.Support universal attributes and universal text attributes.' + @State ellipsisModeIndex: number = 0; + @State ellipsisMode: EllipsisMode[] = [EllipsisMode.START, EllipsisMode.CENTER, EllipsisMode.END] + @State ellipsisModeStr: string[] = ['START', 'CENTER', 'END'] + + controller1: TextController = new TextController(); + + build() { + Column({ space: 10 }) { + Text(this.text) + .fontSize(16) + .border({ width: 1 }) + .lineHeight(20) + .maxLines(1) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .ellipsisMode(this.ellipsisMode[this.ellipsisModeIndex]) + .width(300) + .margin({ left: 20, top: 20 }) + + Row() { + Button('更改省略号位置:' + this.ellipsisModeStr[this.ellipsisModeIndex]).onClick(() => { + this.ellipsisModeIndex++ + if (this.ellipsisModeIndex > (this.ellipsisModeStr.length - 1)) { + this.ellipsisModeIndex = 0 + } + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs025.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs025.ets new file mode 100644 index 000000000..d6e2fe4a6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs025.ets @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs025 { + @State text: string = + 'The text component is used to display a piece of textual information.Support universal attributes and universal text attributes.' + @State textOverflowIndex: number = 0; + @State textOverflowMode: TextOverflow[] = [TextOverflow.Clip, TextOverflow.Ellipsis, TextOverflow.MARQUEE] + @State textOverflowModeStr: string[] = ['Clip', 'Ellipsis', 'MARQUEE'] + + controller1: TextController = new TextController(); + + build() { + Column({ space: 10 }) { + Text(this.text) + .fontSize(16) + .border({ width: 1 }) + .lineHeight(20) + .maxLines(2) + .textOverflow({ overflow: this.textOverflowMode[this.textOverflowIndex] }) + .width(300) + .margin({ left: 20, top: 20 }) + + Row() { + Button('更改省略号位置:' + this.textOverflowModeStr[this.textOverflowIndex]).onClick(() => { + this.textOverflowIndex++ + if (this.textOverflowIndex > (this.textOverflowModeStr.length - 1)) { + this.textOverflowIndex = 0 + } + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs026.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs026.ets new file mode 100644 index 000000000..0acb5552c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs026.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. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs026 { + @State text: string = + 'The text component is used to display a piece of textual information.Support universal attributes and universal text attributes.' + @State textOverflowIndex: number = 0; + @State textOverflowMode: TextOverflow[] = [TextOverflow.Clip, TextOverflow.Ellipsis, TextOverflow.MARQUEE] + @State textOverflowModeStr: string[] = ['Clip', 'Ellipsis', 'MARQUEE'] + + controller1: TextController = new TextController(); + + build() { + Column({ space: 10 }) { + Text(this.text) + .fontSize(16) + .border({ width: 1 }) + .lineHeight(20) + .maxLines(2) + .textOverflow({ overflow: this.textOverflowMode[this.textOverflowIndex] }) + .width(300) + .margin({ left: 20, top: 20 }) + .privacySensitive(true) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs027.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs027.ets new file mode 100644 index 000000000..d008c2aa2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs027.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs027 { + @State text: string = + 'The text component is used to display a piece of textual information.Support universal attributes and universal text attributes.' + @State textAlignIndex: number = 0; + @State textAlignMode: TextAlign[] = [TextAlign.Center, TextAlign.Start, TextAlign.End] + @State textAlignModeStr: string[] = ['Center', 'Start', 'End'] + + controller1: TextController = new TextController(); + + build() { + Column({ space: 10 }) { + Text(this.text) + .width(300) + .margin({ left: 20, top: 20 }) + .fontSize(16) + .border({ width: 1 }) + .lineHeight(20) + .maxLines(2) + .textAlign((this.textAlignMode[this.textAlignIndex])) + + + Row() { + Button('更改省略号位置:' + this.textAlignModeStr[this.textAlignIndex]).onClick(() => { + this.textAlignIndex++ + if (this.textAlignIndex > (this.textAlignModeStr.length - 1)) { + this.textAlignIndex = 0 + } + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs028.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs028.ets new file mode 100644 index 000000000..89eb918f2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs028.ets @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs028 { + @State text: string = + 'The text component is used to display a piece of textual information.Support universal attributes and universal text attributes.' + @State fontStyleIndex: number = 0; + @State fontStyleMode: FontStyle[] = [FontStyle.Italic, FontStyle.Normal] + @State fontStyleModeStr: string[] = ['Italic', 'Normal'] + + @State fontWeightIndex: number = 0; + @State fontWeightMode: FontWeight[] = [FontWeight.Lighter, FontWeight.Normal, FontWeight.Bolder] + @State fontWeightModeStr: string[] = ['Lighter', 'Normal', 'Bolder'] + + @State fontSizeIndex: number = 0; + @State fontSizeMode: number[] = [10, 20, 30] + @State fontSizeModeStr: string[] = ['10', '20', '30'] + + controller1: TextController = new TextController(); + + build() { + Column({ space: 10 }) { + Text(this.text) + .width(300) + .margin({ left: 20, top: 20 }) + .fontSize(this.fontSizeMode[this.fontSizeIndex]) + .border({ width: 1 }) + .lineHeight(20) + .maxLines(2) + .fontWeight(this.fontWeightMode[this.fontWeightIndex]) + .fontStyle(this.fontStyleMode[this.fontStyleIndex]) + + Row() { + Button('更改fontSize:' + this.fontSizeMode[this.fontSizeIndex]).onClick(() => { + this.fontSizeIndex++ + if (this.fontSizeIndex > (this.fontSizeModeStr.length - 1)) { + this.fontSizeIndex = 0 + } + }) + } + + Row() { + Button('更改fontWeight:' + this.fontWeightModeStr[this.fontWeightIndex]).onClick(() => { + this.fontWeightIndex++ + if (this.fontWeightIndex > (this.fontWeightModeStr.length - 1)) { + this.fontWeightIndex = 0 + } + }) + } + + Row() { + Button('更改fontStyle:' + this.fontStyleModeStr[this.fontStyleIndex]).onClick(() => { + this.fontStyleIndex++ + if (this.fontStyleIndex > (this.fontStyleModeStr.length - 1)) { + this.fontStyleIndex = 0 + } + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs029.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs029.ets new file mode 100644 index 000000000..6add87906 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs029.ets @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct ComponentTextAttributeStringConstructs029 { + @State decorationIndex: number = 0; + @State decorationMode: TextDecorationType[] = [TextDecorationType.Underline, TextDecorationType.Overline, TextDecorationType.LineThrough, TextDecorationType.None] + @State decorationModeStr: string[] = ['Underline', 'Overline', 'LineThrough', 'None'] + + StyledString1: StyledString = new StyledString('这是一段测试文字', + [{start:0, length:8,styledKey: StyledStringKey.TEXT_SHADOW, + styledValue: new DecorationStyle({type: this.decorationMode[this.decorationIndex]})}]); + + controller1: TextController = new TextController(); + + build() { + Column({ space: 10 }) { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.StyledString1) + }) + .width(300) + .margin({ left: 20, top: 20 }) + .fontSize(16) + .border({ width: 1 }) + .lineHeight(20) + .maxLines(2) + + Row() { + Button('更改decoration:' + this.decorationModeStr[this.decorationIndex]).onClick(() => { + this.decorationIndex++ + if (this.decorationIndex > (this.decorationModeStr.length - 1)) { + this.decorationIndex = 0 + } + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten001.ets new file mode 100644 index 000000000..cef802af4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten001.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct UiTextBrighten001 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow({radius: 10, color: Color.Red, offsetX: -10, offsetY: -10 }) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten002.ets new file mode 100644 index 000000000..81cb83cb3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten002.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct UiTextBrighten002 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten003.ets new file mode 100644 index 000000000..61e3df563 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten003.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct UiTextBrighten003 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([]) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten004.ets new file mode 100644 index 000000000..4dbc97a14 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten004.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct UiTextBrighten004 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(10, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .fontSize(10) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten005.ets new file mode 100644 index 000000000..bb5bf9581 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten005.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct UiTextBrighten005 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(30, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .fontSize(30) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten006.ets new file mode 100644 index 000000000..48ea9b313 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten006.ets @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct UiTextBrighten006 { + @State fontSizeIndex: number = 0; + @State fontSizeMode: number[] = [10, 20, 30] + @State fontSizeModeStr: string[] = ['10', '20', '30'] + + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .fontSize(this.fontSizeMode[this.fontSizeIndex]) + .margin({ top: 20 }) + + Row() { + Button('更改fontSize:' + this.fontSizeModeStr[this.fontSizeIndex]).onClick(() => { + this.fontSizeIndex++ + if (this.fontSizeIndex > (this.fontSizeModeStr.length - 1)) { + this.fontSizeIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten007.ets new file mode 100644 index 000000000..e7d80910b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten007.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct UiTextBrighten007 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .margin({ top: 20 }) + .fontWeight(FontWeight.Lighter) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten008.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten008.ets new file mode 100644 index 000000000..a7c6a05ef --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten008.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct UiTextBrighten008 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .margin({ top: 20 }) + .fontWeight(FontWeight.Normal) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten009.ets new file mode 100644 index 000000000..a01787750 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten009.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct UiTextBrighten009 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .margin({ top: 20 }) + .fontWeight(FontWeight.Bolder) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten010.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten010.ets new file mode 100644 index 000000000..300d909e9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten010.ets @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct UiTextBrighten010 { + @State fontWeightIndex: number = 0; + @State fontWeightMode: FontWeight[] = [FontWeight.Lighter, FontWeight.Normal, FontWeight.Regular, FontWeight.Medium] + @State fontWeightModeStr: string[] = ['Lighter', 'Normal', 'Regular', 'Medium'] + + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .fontWeight(this.fontWeightMode[this.fontWeightIndex]) + .margin({ top: 20 }) + + Row() { + Button('更改fontWeight:' + this.fontWeightModeStr[this.fontWeightIndex]).onClick(() => { + this.fontWeightIndex++ + if (this.fontWeightIndex > (this.fontWeightModeStr.length - 1)) { + this.fontWeightIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten011.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten011.ets new file mode 100644 index 000000000..d7c777927 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten011.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + + +@Entry +@Component +struct UiTextBrighten011 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .fontStyle(FontStyle.Italic) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten012.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten012.ets new file mode 100644 index 000000000..adf6fd7c0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten012.ets @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten012 { + @State fontStyleIndex: number = 0; + @State fontStyleMode: FontStyle[] = [FontStyle.Normal, FontStyle.Italic] + @State fontStyleModeStr: string[] = ['Normal', 'Italic'] + + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .fontStyle(this.fontStyleMode[this.fontStyleIndex]) + .margin({ top: 20 }) + + Row() { + Button('更改fontStyle:' + this.fontStyleModeStr[this.fontStyleIndex]).onClick(() => { + this.fontStyleIndex++ + if (this.fontStyleIndex > (this.fontStyleModeStr.length - 1)) { + this.fontStyleIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten013.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten013.ets new file mode 100644 index 000000000..af53fd49a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten013.ets @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten013 { + @State baselineOffsetIndex: number = 0; + @State baselineOffsetMode: number[] = [0, -10, -20] + @State baselineOffsetModeStr: string[] = ['0', '-10', '-20'] + + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .baselineOffset(this.baselineOffsetMode[this.baselineOffsetIndex]) + .margin({ top: 20 }) + + Row() { + Button('更改baselineOffset:' + this.baselineOffsetModeStr[this.baselineOffsetIndex]).onClick(() => { + this.baselineOffsetIndex++ + if (this.baselineOffsetIndex > (this.baselineOffsetModeStr.length - 1)) { + this.baselineOffsetIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten014.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten014.ets new file mode 100644 index 000000000..798b8634c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten014.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten014 { + + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .margin({ top: 20 }) + .padding(10) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten015.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten015.ets new file mode 100644 index 000000000..d9445f261 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten015.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten015 { + + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .margin({ top: 20 }) + .padding(20) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten016.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten016.ets new file mode 100644 index 000000000..8675055cd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten016.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten016 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten017.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten017.ets new file mode 100644 index 000000000..0604b2d36 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten017.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten017 { + @State message: string = '这是一段测试文字\n这是一段测试文字\n这是一段测试文字\n这是一段测试文字\n这是一段测试文字\n' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .margin({ top: 20 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten018.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten018.ets new file mode 100644 index 000000000..0c55a81d3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten018.ets @@ -0,0 +1,111 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten018 { + @State fontStyleIndex: number = 0; + @State fontStyleMode: FontStyle[] = [FontStyle.Normal, FontStyle.Italic] + @State fontStyleModeStr: string[] = ['Normal', 'Italic'] + + @State message: string = '这是一段测试文字\n这是一段测试文字\n这是一段测试文字\n这是一段测试文字\n这是一段测试文字\n' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }]) + .margin({ top: 20 }) + .fontStyle(this.fontStyleMode[this.fontStyleIndex]) + + Row() { + Button('更改fontStyle:' + this.fontStyleModeStr[this.fontStyleIndex]).onClick(() => { + this.fontStyleIndex++ + if (this.fontStyleIndex > (this.fontStyleModeStr.length - 1)) { + this.fontStyleIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten019.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten019.ets new file mode 100644 index 000000000..695e4bb86 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten019.ets @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten019 { + @State radiusIndex: number = 0; + @State radiusMode: number[] = [0, 10, 20] + @State radiusModeStr: string[] = ['0', '10', '20'] + + @State colorIndex: number = 0; + @State colorMode: Color[] = [Color.White, Color.Black, Color.Blue, Color.Brown] + @State colorModeStr: string[] = ['White', 'Black', 'Blue', 'Brown'] + + @State offsetXIndex: number = 0; + @State offsetXMode: number[] = [-20, -15, -10, -5] + @State offsetXModeStr: string[] = ['-20', '-15', '-10', '-5'] + + @State offsetYIndex: number = 0; + @State offsetYMode: number[] = [-20, -15, -10, -5] + @State offsetYModeStr: string[] = ['-20', '-15', '-10', '-5'] + + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow({ radius: this.radiusMode[this.radiusIndex], color: this.colorMode[this.colorIndex], offsetX: this.offsetXMode[this.offsetXIndex], offsetY: this.offsetYMode[this.offsetYIndex] }) + .margin({ top: 20 }) + + Row() { + Button('更改color:' + this.colorModeStr[this.colorIndex]).onClick(() => { + this.colorIndex++ + if (this.colorIndex > (this.colorModeStr.length - 1)) { + this.colorIndex = 0 + } + }) + } + + Row() { + Button('更改radius:' + this.radiusModeStr[this.radiusIndex]).onClick(() => { + this.radiusIndex++ + if (this.radiusIndex > (this.radiusModeStr.length - 1)) { + this.radiusIndex = 0 + } + }) + } + + Row() { + Button('更改offsetX:' + this.offsetXModeStr[this.offsetXIndex]).onClick(() => { + this.offsetXIndex++ + if (this.offsetXIndex > (this.offsetXModeStr.length - 1)) { + this.offsetXIndex = 0 + } + }) + } + + Row() { + Button('更改offsetY:' + this.offsetYModeStr[this.offsetYIndex]).onClick(() => { + this.offsetYIndex++ + if (this.offsetYIndex > (this.offsetYModeStr.length - 1)) { + this.offsetYIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten020.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten020.ets new file mode 100644 index 000000000..816e34f6b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten020.ets @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten020 { + @State offsetIndex: number = 0; + @State offsetMode: number[] = [20, 15, 10, 5] + @State offsetModeStr: string[] = ['20', '15', '10', '5'] + + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .margin({ top: 20 }) + .baselineOffset(this.offsetMode[this.offsetIndex]) + + Row() { + Button('更改baselineOffset:' + this.offsetModeStr[this.offsetIndex]).onClick(() => { + this.offsetIndex++ + if (this.offsetIndex > (this.offsetModeStr.length - 1)) { + this.offsetIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten021.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten021.ets new file mode 100644 index 000000000..53fe5a27a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten021.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten021 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .fontStyle(FontStyle.Normal) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten022.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten022.ets new file mode 100644 index 000000000..7a5e643ae --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten022.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten022 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .onAreaChange(() => { + this.controller1.setStyledString(this.mutableStyledString1) + }) + .motionPath({ path: 'Mstart.x start.y L300 200 L300 500 Lend.x end.y', from: 0.0, to: 1.0, rotatable: true }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .fontStyle(FontStyle.Normal) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten023.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten023.ets new file mode 100644 index 000000000..6cc0c27c3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten023.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten023 { + @State message: string = '这是一段测试文字' + + controller1: TextController = new TextController(); + controller2: TextController = new TextController(); + + build() { + Row() { + Column() { + Text("test string", { controller: this.controller1 }) + .backgroundColor(Color.Green) + .fontColor(Color.Red) + .blendMode(BlendMode.NONE) + + Text("test string", { controller: this.controller2 }) + .backgroundColor(Color.Yellow) + .fontColor(Color.Red) + .blendMode(BlendMode.NONE) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten024.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten024.ets new file mode 100644 index 000000000..ad51319fa --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten024.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten024 { + @State message: string = '这是一段测试文字' + + controller1: TextController = new TextController(); + controller2: TextController = new TextController(); + + build() { + Row() { + Column() { + Text("test string", { controller: this.controller1 }) + .backgroundColor(Color.Green) + .fontColor(Color.Red) + .blendMode(BlendMode.SRC_IN) + + Text("test string", { controller: this.controller2 }) + .backgroundColor(Color.Yellow) + .fontColor(Color.Red) + .blendMode(BlendMode.SRC_IN) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten025.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten025.ets new file mode 100644 index 000000000..1aed3d95c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten025.ets @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten025 { + @State message: string = '这是一段测试文字' + mutableStyledString1: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + mutableStyledString2: MutableStyledString = new MutableStyledString("这是一段测试文字", + [{start:0, length:8, styledKey: StyledStringKey.FONT, styledValue: new TextStyle({fontSize:new LengthMetrics(40, LengthUnit.PX)})}]); + + controller1: TextController = new TextController(); + controller2: TextController = new TextController(); + + build() { + Row() { + Column() { + Text("test string") + .backgroundColor(Color.Green) + .fontColor(Color.Red) + .blendMode(BlendMode.DST_IN) + + Text("test string") + .backgroundColor(Color.Yellow) + .fontColor(Color.Red) + .blendMode(BlendMode.DST_IN) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten026.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten026.ets new file mode 100644 index 000000000..d916d0689 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten026.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 { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten026 { + @State accumulateTime: number = 0 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ timeZoneOffset: -8, controller: this.controller }) + .format('aa hh:mm:ss') + .onDateChange((value: number) => { + this.accumulateTime = value + }) + .margin(20) + .fontSize(30) + .textShadow([{radius: 10, color: Color.Red, offsetX: -10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten027.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten027.ets new file mode 100644 index 000000000..371c9948a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten027.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten027 { + @State accumulateTime: number = 0 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ timeZoneOffset: -8, controller: this.controller }) + .format('aa hh:mm:ss') + .onDateChange((value: number) => { + this.accumulateTime = value + }) + .margin(20) + .fontSize(30) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten028.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten028.ets new file mode 100644 index 000000000..fdb328e2b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten028.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 { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten027 { + @State accumulateTime: number = 0 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ timeZoneOffset: -8, controller: this.controller }) + .format('aa hh:mm:ss') + .onDateChange((value: number) => { + this.accumulateTime = value + }) + .margin(20) + .fontSize(30) + .textShadow([]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten029.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten029.ets new file mode 100644 index 000000000..7bfbd0051 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten029.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten029 { + @State accumulateTime: number = 0 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ timeZoneOffset: -8, controller: this.controller }) + .format('aa hh:mm:ss') + .onDateChange((value: number) => { + this.accumulateTime = value + }) + .fontSize(10) + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten030.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten030.ets new file mode 100644 index 000000000..9f5eb1ae8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten030.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten030 { + @State accumulateTime: number = 0 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ timeZoneOffset: -8, controller: this.controller }) + .format('aa hh:mm:ss') + .onDateChange((value: number) => { + this.accumulateTime = value + }) + .margin(20) + .fontSize(30) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten031.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten031.ets new file mode 100644 index 000000000..a514cb8b9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten031.ets @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten031 { + @State fontSizeIndex: number = 0; + @State fontSizeMode: number[] = [10, 20, 30] + @State fontSizeModeStr: string[] = ['10', '20', '30'] + + @State accumulateTime: number = 0 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ timeZoneOffset: -8, controller: this.controller }) + .format('aa hh:mm:ss') + .onDateChange((value: number) => { + this.accumulateTime = value + }) + .margin(20) + .fontSize(this.fontSizeMode[this.fontSizeIndex]) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + + Row() { + Button('更改fontSize:' + this.fontSizeModeStr[this.fontSizeIndex]).onClick(() => { + this.fontSizeIndex++ + if (this.fontSizeIndex > (this.fontSizeModeStr.length - 1)) { + this.fontSizeIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten032.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten032.ets new file mode 100644 index 000000000..ffa941220 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten032.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten032 { + @State accumulateTime: number = 0 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ timeZoneOffset: -8, controller: this.controller }) + .format('aa hh:mm:ss') + .onDateChange((value: number) => { + this.accumulateTime = value + }) + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .fontWeight(FontWeight.Lighter) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten033.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten033.ets new file mode 100644 index 000000000..125e75cf5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten033.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten033 { + @State accumulateTime: number = 0 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ timeZoneOffset: -8, controller: this.controller }) + .format('aa hh:mm:ss') + .onDateChange((value: number) => { + this.accumulateTime = value + }) + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .fontWeight(FontWeight.Normal) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten034.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten034.ets new file mode 100644 index 000000000..11e8c56d2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten034.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten034 { + @State accumulateTime: number = 0 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ timeZoneOffset: -8, controller: this.controller }) + .format('aa hh:mm:ss') + .onDateChange((value: number) => { + this.accumulateTime = value + }) + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .fontWeight(FontWeight.Bolder) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten035.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten035.ets new file mode 100644 index 000000000..b7ca347a2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten035.ets @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten035 { + @State fontWeightIndex: number = 0; + @State fontWeightMode: FontWeight[] = [FontWeight.Lighter, FontWeight.Normal, FontWeight.Regular, FontWeight.Medium] + @State fontWeightModeStr: string[] = ['Lighter', 'Normal', 'Regular', 'Medium'] + + @State accumulateTime: number = 0 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ timeZoneOffset: -8, controller: this.controller }) + .format('aa hh:mm:ss') + .onDateChange((value: number) => { + this.accumulateTime = value + }) + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .fontWeight(this.fontWeightMode[this.fontWeightIndex]) + + Row() { + Button('更改fontWeight:' + this.fontWeightModeStr[this.fontWeightIndex]).onClick(() => { + this.fontWeightIndex++ + if (this.fontWeightIndex > (this.fontWeightModeStr.length - 1)) { + this.fontWeightIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten036.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten036.ets new file mode 100644 index 000000000..01cd3188c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten036.ets @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten036 { + @State fontWeightIndex: number = 0; + @State fontWeightMode: FontWeight[] = [FontWeight.Lighter, FontWeight.Normal, FontWeight.Regular, FontWeight.Medium] + @State fontWeightModeStr: string[] = ['Lighter', 'Normal', 'Regular', 'Medium'] + + @State accumulateTime: number = 0 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ timeZoneOffset: -8, controller: this.controller }) + .format('aa hh:mm:ss') + .onDateChange((value: number) => { + this.accumulateTime = value + }) + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .fontStyle(FontStyle.Normal) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten037.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten037.ets new file mode 100644 index 000000000..5e3dbc49c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten037.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten037 { + @State accumulateTime: number = 0 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ timeZoneOffset: -8, controller: this.controller }) + .format('aa hh:mm:ss') + .onDateChange((value: number) => { + this.accumulateTime = value + }) + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .fontStyle(FontStyle.Italic) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten038.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten038.ets new file mode 100644 index 000000000..3bd088c8f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten038.ets @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten038 { + @State fontStyleIndex: number = 0; + @State fontStyleMode: FontStyle[] = [FontStyle.Normal, FontStyle.Italic] + @State fontStyleModeStr: string[] = ['Normal', 'Italic'] + + @State accumulateTime: number = 0 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ timeZoneOffset: -8, controller: this.controller }) + .format('aa hh:mm:ss') + .onDateChange((value: number) => { + this.accumulateTime = value + }) + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .fontStyle(this.fontStyleMode[this.fontStyleIndex]) + + Row() { + Button('更改fontStyle:' + this.fontStyleModeStr[this.fontStyleIndex]).onClick(() => { + this.fontStyleIndex++ + if (this.fontStyleIndex > (this.fontStyleModeStr.length - 1)) { + this.fontStyleIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten039.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten039.ets new file mode 100644 index 000000000..8ea887238 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten039.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten039 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ timeZoneOffset: -8, controller: this.controller }) + .format('aa hh:mm:ss') + .onDateChange(() => { + if(this.SwitchNumber == 450){ + this.controller.start() + this.SwitchNumber = 500 + } + }) + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten040.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten040.ets new file mode 100644 index 000000000..e5e89043b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten040.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten040 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ timeZoneOffset: -8, controller: this.controller }) + .format('aa hh:mm:ss') + .onDateChange(() => { + if(this.SwitchNumber == 450){ + this.controller.start() + this.SwitchNumber = 500 + } + if(this.SwitchNumber == 500){ + this.controller.stop() + this.SwitchNumber = 600 + } + }) + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten041.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten041.ets new file mode 100644 index 000000000..09cb1d4fe --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten041.ets @@ -0,0 +1,90 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten041 { + @State radiusIndex: number = 0; + @State radiusMode: number[] = [10, 20, 30] + @State radiusModeStr: string[] = ['10', '20', '30'] + + @State colorIndex: number = 0; + @State colorMode: Color[] = [Color.White, Color.Black, Color.Blue] + @State colorModeStr: string[] = ['White', 'Black', 'Blue'] + + @State offsetXIndex: number = 0; + @State offsetXMode: number[] = [10, 20, 30] + @State offsetXModeStr: string[] = ['10', '20', '30'] + + @State offsetYIndex: number = 0; + @State offsetYMode: number[] = [10, 20, 30] + @State offsetYModeStr: string[] = ['10', '20', '30'] + + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ controller: this.controller }) + .margin(20) + .textShadow([{ radius: this.radiusMode[this.radiusIndex], color: this.colorMode[this.colorIndex], offsetX: this.offsetXMode[this.offsetXIndex], offsetY: this.offsetYMode[this.offsetYIndex] }, + { radius: this.radiusMode[this.radiusIndex], color: this.colorMode[this.colorIndex], offsetX: this.offsetXMode[this.offsetXIndex], offsetY: this.offsetYMode[this.offsetYIndex] }, + { radius: this.radiusMode[this.radiusIndex], color: this.colorMode[this.colorIndex], offsetX: this.offsetXMode[this.offsetXIndex], offsetY: this.offsetYMode[this.offsetYIndex] }, + { radius: this.radiusMode[this.radiusIndex], color: this.colorMode[this.colorIndex], offsetX: this.offsetXMode[this.offsetXIndex], offsetY: this.offsetYMode[this.offsetYIndex]}]) + + Row() { + Button('更改radius:' + this.radiusModeStr[this.radiusIndex]).onClick(() => { + this.radiusIndex++ + if (this.radiusIndex > (this.radiusModeStr.length - 1)) { + this.radiusIndex = 0 + } + }) + } + + Row() { + Button('更改offsetX:' + this.offsetXModeStr[this.offsetXIndex]).onClick(() => { + this.offsetXIndex++ + if (this.offsetXIndex > (this.offsetXModeStr.length - 1)) { + this.offsetXIndex = 0 + } + }) + } + + Row() { + Button('更改offsetY:' + this.offsetYModeStr[this.offsetYIndex]).onClick(() => { + this.offsetYIndex++ + if (this.offsetYIndex > (this.offsetYModeStr.length - 1)) { + this.offsetYIndex = 0 + } + }) + } + + Row() { + Button('更改color:' + this.colorModeStr[this.colorIndex]).onClick(() => { + this.colorIndex++ + if (this.colorIndex > (this.colorModeStr.length - 1)) { + this.colorIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten042.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten042.ets new file mode 100644 index 000000000..abf315a91 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten042.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 { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten042 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ controller: this.controller }) + .format("yyyy年M月d日 EEEE") + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten043.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten043.ets new file mode 100644 index 000000000..fd6d3bebe --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten043.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 { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten043 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ controller: this.controller }) + .format("MM/dd/yyyy") + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten044.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten044.ets new file mode 100644 index 000000000..cd78742fb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten044.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 { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten044 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ controller: this.controller }) + .format("yyyy-M-d") + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten045.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten045.ets new file mode 100644 index 000000000..38f5f507c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten045.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 { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten045 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ controller: this.controller }) + .format("yyyy.M.d") + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten046.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten046.ets new file mode 100644 index 000000000..c0b4c782d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten046.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 { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten046 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ controller: this.controller }) + .format("HH:mm:ss") + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten047.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten047.ets new file mode 100644 index 000000000..55f79abcd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten047.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 { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten047 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ controller: this.controller }) + .format("hh:mm:ss") + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten048.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten048.ets new file mode 100644 index 000000000..aba305c34 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten048.ets @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten048 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ controller: this.controller }) + .onDateChange(() => { + if(this.SwitchNumber == 450){ + this.controller.start() + this.SwitchNumber = 500 + } + }) + .format("hh:mm:ss") + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 },]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten049.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten049.ets new file mode 100644 index 000000000..c18a74310 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten049.ets @@ -0,0 +1,89 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten049 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ controller: this.controller }) + .format("hh:mm:ss") + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 },]) + .padding(10) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten050.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten050.ets new file mode 100644 index 000000000..037b1618a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten050.ets @@ -0,0 +1,89 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten050 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ controller: this.controller }) + .format("hh:mm:ss") + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 },]) + .padding(20) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten051.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten051.ets new file mode 100644 index 000000000..d64d3cf06 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten051.ets @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten051 { + @State offsetXIndex: number = 0; + @State offsetXMode: number[] = [10, 20, 30] + @State offsetXModeStr: string[] = ['10', '20', '30'] + + @State offsetYIndex: number = 0; + @State offsetYMode: number[] = [10, 20, 30] + @State offsetYModeStr: string[] = ['10', '20', '30'] + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ controller: this.controller }) + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .offset({ x: this.offsetXMode[this.offsetXIndex], y: this.offsetYMode[this.offsetYIndex] }) + + Row() { + Button('更改offsetx:' + this.offsetXModeStr[this.offsetXIndex]).onClick(() => { + this.offsetXIndex++ + if (this.offsetXIndex > (this.offsetXModeStr.length - 1)) { + this.offsetXIndex = 0 + } + }) + } + + Row() { + Button('更改offsety:' + this.offsetYModeStr[this.offsetYIndex]).onClick(() => { + this.offsetYIndex++ + if (this.offsetYIndex > (this.offsetYModeStr.length - 1)) { + this.offsetYIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten052.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten052.ets new file mode 100644 index 000000000..0f96555a6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten052.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 { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten052 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ controller: this.controller }) + .margin(20) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .motionPath({ path: 'Mstart.x start.y L300 200 L300 500 Lend.x end.y', from: 0.0, to: 1.0, rotatable: true }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten053.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten053.ets new file mode 100644 index 000000000..724cc4660 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten053.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten053 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ controller: this.controller }) + .backgroundColor(Color.Green) + .fontColor(Color.Red) + .blendMode(BlendMode.NONE) + + TextClock({ controller: this.controller }) + .backgroundColor(Color.Yellow) + .fontColor(Color.Red) + .blendMode(BlendMode.NONE) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten054.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten054.ets new file mode 100644 index 000000000..f125789a2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten054.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten054 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ controller: this.controller }) + .backgroundColor(Color.Green) + .fontColor(Color.Red) + .blendMode(BlendMode.SRC_IN) + + TextClock({ controller: this.controller }) + .backgroundColor(Color.Yellow) + .fontColor(Color.Red) + .blendMode(BlendMode.SRC_IN) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten055.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten055.ets new file mode 100644 index 000000000..925941753 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten055.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten055 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextClock({ controller: this.controller }) + .backgroundColor(Color.Green) + .fontColor(Color.Red) + .blendMode(BlendMode.DST_IN) + + TextClock({ controller: this.controller }) + .backgroundColor(Color.Yellow) + .fontColor(Color.Red) + .blendMode(BlendMode.DST_IN) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten056.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten056.ets new file mode 100644 index 000000000..dcebe5e6c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten056.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten056 { + textTimerController: TextTimerController = new TextTimerController() + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextTimer() + .fontColor(Color.Black) + .fontSize(50) + .textShadow({radius: 10, color: Color.Red, offsetX: -10, offsetY: -10 }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten057.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten057.ets new file mode 100644 index 000000000..f00222071 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten057.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten057 { + textTimerController: TextTimerController = new TextTimerController() + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextTimer() + .fontColor(Color.Black) + .fontSize(50) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten058.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten058.ets new file mode 100644 index 000000000..802d6c203 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten058.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten058 { + textTimerController: TextTimerController = new TextTimerController() + + controller: TextClockController = new TextClockController() + + build() { + Row() { + Column() { + TextTimer() + .fontColor(Color.Black) + .fontSize(50) + .textShadow([]) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten059.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten059.ets new file mode 100644 index 000000000..d4db3572d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten059.ets @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten059 { + @State format: string = 'mm:ss.SS' + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer({ isCountDown: true, count: 30000, controller: this.textTimerController }) + .format(this.format) + .fontColor(Color.Black) + .fontSize(50) + .onTimer((utc: number, elapsedTime: number) => { + console.info('textTimer notCountDown utc is:' + utc + ', elapsedTime: ' + elapsedTime) + }) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 },]) + + Button("start").onClick(() => { + this.textTimerController.start() + }) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten060.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten060.ets new file mode 100644 index 000000000..235974fe6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten060.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten060 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer() + .fontColor(Color.Black) + .fontSize(10) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten061.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten061.ets new file mode 100644 index 000000000..9ece30ae1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten061.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten061 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer() + .fontColor(Color.Black) + .fontSize(30) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten062.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten062.ets new file mode 100644 index 000000000..f4a14f2ba --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten062.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten062 { + @State fontSizeIndex: number = 0; + @State fontSizeMode: number[] = [10, 20, 30] + @State fontSizeModeStr: string[] = ['10', '20', '30'] + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer() + .fontColor(Color.Black) + .fontSize(this.fontSizeMode[this.fontSizeIndex]) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + + Row() { + Button('更改fontSize:' + this.fontSizeModeStr[this.fontSizeIndex]).onClick(() => { + this.fontSizeIndex++ + if (this.fontSizeIndex > (this.fontSizeModeStr.length - 1)) { + this.fontSizeIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten063.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten063.ets new file mode 100644 index 000000000..49982db03 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten063.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten063 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer() + .fontColor(Color.Black) + .fontSize(30) + .fontWeight(FontWeight.Lighter) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten064.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten064.ets new file mode 100644 index 000000000..8b51f8699 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten064.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten064 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer() + .fontColor(Color.Black) + .fontSize(30) + .fontWeight(FontWeight.Normal) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten065.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten065.ets new file mode 100644 index 000000000..a808cd8cb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten065.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten065 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer() + .fontColor(Color.Black) + .fontSize(30) + .fontWeight(FontWeight.Bolder) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten066.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten066.ets new file mode 100644 index 000000000..f6c47530b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten066.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten066 { + @State fontWeightIndex: number = 0; + @State fontWeightMode: FontWeight[] = [FontWeight.Lighter, FontWeight.Normal, FontWeight.Regular] + @State fontWeightModeStr: string[] = ['Lighter', 'Normal', 'Regular'] + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer() + .fontColor(Color.Black) + .fontSize(30) + .fontWeight(this.fontWeightMode[this.fontWeightIndex]) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + + Row() { + Button('更改fontSize:' + this.fontWeightModeStr[this.fontWeightIndex]).onClick(() => { + this.fontWeightIndex++ + if (this.fontWeightIndex > (this.fontWeightModeStr.length - 1)) { + this.fontWeightIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten067.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten067.ets new file mode 100644 index 000000000..8d434404f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten067.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten067 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer() + .fontColor(Color.Black) + .fontSize(30) + .fontStyle(FontStyle.Normal) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten068.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten068.ets new file mode 100644 index 000000000..8cb7410b0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten068.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten068 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer() + .fontColor(Color.Black) + .fontSize(30) + .fontStyle(FontStyle.Italic) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten069.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten069.ets new file mode 100644 index 000000000..4e3b860e6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten069.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten069 { + @State fontStyleIndex: number = 0; + @State fontStyleMode: FontStyle[] = [FontStyle.Normal, FontStyle.Italic] + @State fontStyleModeStr: string[] = ['Normal', 'Italic'] + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer() + .fontColor(Color.Black) + .fontSize(30) + .fontStyle(this.fontStyleMode[this.fontStyleIndex]) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + + Row() { + Button('更改fontStyle:' + this.fontStyleModeStr[this.fontStyleIndex]).onClick(() => { + this.fontStyleIndex++ + if (this.fontStyleIndex > (this.fontStyleModeStr.length - 1)) { + this.fontStyleIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten070.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten070.ets new file mode 100644 index 000000000..a785d6cf2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten070.ets @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten070 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer({ controller: this.textTimerController }) + .fontColor(Color.Black) + .fontSize(30) + .fontStyle(FontStyle.Italic) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + + Row(){ + Button("start").onClick(() => { + this.textTimerController.start() + }) + } + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten071.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten071.ets new file mode 100644 index 000000000..9f0ee7938 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten071.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten071 { + @State fontStyleIndex: number = 0; + @State fontStyleMode: FontStyle[] = [FontStyle.Normal, FontStyle.Italic] + @State fontStyleModeStr: string[] = ['Normal', 'Italic'] + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer({ controller: this.textTimerController }) + .fontColor(Color.Black) + .fontSize(30) + .fontStyle(FontStyle.Italic) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + + Button("start").onClick(() => { + this.textTimerController.start() + }) + + Button("pause").onClick(() => { + this.textTimerController.pause() + }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten072.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten072.ets new file mode 100644 index 000000000..d5d781d92 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten072.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten072 { + @State fontStyleIndex: number = 0; + @State fontStyleMode: FontStyle[] = [FontStyle.Normal, FontStyle.Italic] + @State fontStyleModeStr: string[] = ['Normal', 'Italic'] + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer({ controller: this.textTimerController }) + .fontColor(Color.Black) + .fontSize(30) + .fontStyle(FontStyle.Italic) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + + Button("start").onClick(() => { + this.textTimerController.start() + }) + + Button("reset").onClick(() => { + this.textTimerController.reset() + }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten073.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten073.ets new file mode 100644 index 000000000..6988263e3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten073.ets @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten073 { + @State radiusIndex: number = 0; + @State radiusMode: number[] = [10, 20, 30] + @State radiusModeStr: string[] = ['10', '20', '30'] + + @State colorIndex: number = 0; + @State colorMode: Color[] = [Color.White, Color.Black, Color.Blue] + @State colorModeStr: string[] = ['White', 'Black', 'Blue'] + + @State offsetXIndex: number = 0; + @State offsetXMode: number[] = [10, 20, 30] + @State offsetXModeStr: string[] = ['10', '20', '30'] + + @State offsetYIndex: number = 0; + @State offsetYMode: number[] = [10, 20, 30] + @State offsetYModeStr: string[] = ['10', '20', '30'] + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer({ controller: this.textTimerController }) + .fontColor(Color.Black) + .fontSize(30) + .fontStyle(FontStyle.Italic) + .textShadow([{ radius: this.radiusMode[this.radiusIndex], color: this.colorMode[this.colorIndex], offsetX: this.offsetXMode[this.offsetXIndex], offsetY: this.offsetYMode[this.offsetYIndex] }, + { radius: this.radiusMode[this.radiusIndex], color: this.colorMode[this.colorIndex], offsetX: this.offsetXMode[this.offsetXIndex], offsetY: this.offsetYMode[this.offsetYIndex] }, + { radius: this.radiusMode[this.radiusIndex], color: this.colorMode[this.colorIndex], offsetX: this.offsetXMode[this.offsetXIndex], offsetY: this.offsetYMode[this.offsetYIndex] }, + { radius: this.radiusMode[this.radiusIndex], color: this.colorMode[this.colorIndex], offsetX: this.offsetXMode[this.offsetXIndex], offsetY: this.offsetYMode[this.offsetYIndex]}]) + + Row() { + Button('更改radius:' + this.radiusModeStr[this.radiusIndex]).onClick(() => { + this.radiusIndex++ + if (this.radiusIndex > (this.radiusModeStr.length - 1)) { + this.radiusIndex = 0 + } + }) + } + + Row() { + Button('更改offsetX:' + this.offsetXModeStr[this.offsetXIndex]).onClick(() => { + this.offsetXIndex++ + if (this.offsetXIndex > (this.offsetXModeStr.length - 1)) { + this.offsetXIndex = 0 + } + }) + } + + Row() { + Button('更改offsetY:' + this.offsetYModeStr[this.offsetYIndex]).onClick(() => { + this.offsetYIndex++ + if (this.offsetYIndex > (this.offsetYModeStr.length - 1)) { + this.offsetYIndex = 0 + } + }) + } + + Row() { + Button('更改color:' + this.colorModeStr[this.colorIndex]).onClick(() => { + this.colorIndex++ + if (this.colorIndex > (this.colorModeStr.length - 1)) { + this.colorIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten074.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten074.ets new file mode 100644 index 000000000..f282fb8e5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten074.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten074 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer({ controller: this.textTimerController }) + .fontColor(Color.Black) + .fontSize(30) + .format("HH:mm:ss.SS") + .fontStyle(FontStyle.Italic) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten075.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten075.ets new file mode 100644 index 000000000..07eeb5b85 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten075.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten075 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer({ controller: this.textTimerController }) + .fontColor(Color.Black) + .fontSize(30) + .padding(10) + .fontStyle(FontStyle.Italic) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten076.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten076.ets new file mode 100644 index 000000000..19bd25910 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten076.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten076 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer({ controller: this.textTimerController }) + .fontColor(Color.Black) + .fontSize(30) + .padding(20) + .fontStyle(FontStyle.Italic) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten077.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten077.ets new file mode 100644 index 000000000..ba1751b3c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten077.ets @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten077 { + @State offsetXIndex: number = 0; + @State offsetXMode: number[] = [10, 20, 30] + @State offsetXModeStr: string[] = ['10', '20', '30'] + + @State offsetYIndex: number = 0; + @State offsetYMode: number[] = [10, 20, 30] + @State offsetYModeStr: string[] = ['10', '20', '30'] + + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer({ controller: this.textTimerController }) + .fontColor(Color.Black) + .fontSize(30) + .padding(20) + .fontStyle(FontStyle.Italic) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .offset({ x: this.offsetXMode[this.offsetXIndex], y: this.offsetYMode[this.offsetYIndex] }) + + Row() { + Button('更改offsetx:' + this.offsetXModeStr[this.offsetXIndex]).onClick(() => { + this.offsetXIndex++ + if (this.offsetXIndex > (this.offsetXModeStr.length - 1)) { + this.offsetXIndex = 0 + } + }) + } + + Row() { + Button('更改offsety:' + this.offsetYModeStr[this.offsetYIndex]).onClick(() => { + this.offsetYIndex++ + if (this.offsetYIndex > (this.offsetYModeStr.length - 1)) { + this.offsetYIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten078.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten078.ets new file mode 100644 index 000000000..5391e3ff4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten078.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten078 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer({ controller: this.textTimerController }) + .fontColor(Color.Black) + .fontSize(30) + .padding(20) + .fontStyle(FontStyle.Italic) + .textShadow([{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }]) + .motionPath({ path: 'Mstart.x start.y L300 200 L300 500 Lend.x end.y', from: 0.0, to: 1.0, rotatable: true }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten079.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten079.ets new file mode 100644 index 000000000..fe11cd6c6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten079.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten079 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer() + .backgroundColor(Color.Green) + .fontColor(Color.Red) + .blendMode(BlendMode.NONE) + + TextTimer() + .backgroundColor(Color.Yellow) + .fontColor(Color.Red) + .blendMode(BlendMode.NONE) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten080.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten080.ets new file mode 100644 index 000000000..c5839ad22 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten080.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten080 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer() + .backgroundColor(Color.Green) + .fontColor(Color.Red) + .blendMode(BlendMode.SRC_IN) + + TextTimer() + .backgroundColor(Color.Yellow) + .fontColor(Color.Red) + .blendMode(BlendMode.SRC_IN) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten081.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten081.ets new file mode 100644 index 000000000..343774747 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten081.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. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten081 { + @State accumulateTime: number = 0 + @State SwitchNumber: number = 450 + + textTimerController: TextTimerController = new TextTimerController() + + build() { + Row() { + Column() { + TextTimer() + .backgroundColor(Color.Green) + .fontColor(Color.Red) + .blendMode(BlendMode.DST_IN) + + TextTimer() + .backgroundColor(Color.Yellow) + .fontColor(Color.Red) + .blendMode(BlendMode.DST_IN) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten082.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten082.ets new file mode 100644 index 000000000..bc5e3637e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten082.ets @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten082 { + @State SwitchNumber: number = 450 + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontSize: 30, + textShadow: {radius: 10, color: Color.Red, offsetX: -10, offsetY: -10 } + } + }) + }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten083.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten083.ets new file mode 100644 index 000000000..46dce9771 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten083.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten083 { + @State SwitchNumber: number = 450 + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontSize: 30, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + } + }) + }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten084.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten084.ets new file mode 100644 index 000000000..f98b519a5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten084.ets @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten084 { + @State SwitchNumber: number = 450 + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontSize: 30, + textShadow: [] + } + }) + }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten085.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten085.ets new file mode 100644 index 000000000..d1c002796 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten085.ets @@ -0,0 +1,109 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten085 { + @State SwitchNumber: number = 450 + + @State fontStyleIndex: number = 0; + @State fontStyleMode: FontStyle[] = [FontStyle.Normal, FontStyle.Italic] + @State fontStyleModeStr: string[] = ['Normal', 'Italic'] + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: this.fontStyleMode[this.fontStyleIndex], + fontSize: 30, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }, + { radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }] + } + }) + }) + + Row() { + Button('更改fontStyle:' + this.fontStyleModeStr[this.fontStyleIndex]).onClick(() => { + this.fontStyleIndex++ + if (this.fontStyleIndex > (this.fontStyleModeStr.length - 1)) { + this.fontStyleIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten086.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten086.ets new file mode 100644 index 000000000..14258258e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten086.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten086 { + @State SwitchNumber: number = 450 + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontSize: 10, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + } + }) + }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten087.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten087.ets new file mode 100644 index 000000000..f63c7a188 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten087.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten087 { + @State SwitchNumber: number = 450 + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontSize: 30, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + } + }) + }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten088.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten088.ets new file mode 100644 index 000000000..c7ecc4fa2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten088.ets @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten088 { + @State SwitchNumber: number = 450 + + @State fontSizeIndex: number = 0; + @State fontSizeMode: number[] = [10, 20, 30] + @State fontSizeModeStr: string[] = ['10', '20', '30'] + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontSize: this.fontSizeMode[this.fontSizeIndex], + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + } + }) + }) + + Row() { + Button('更改fontSize:' + this.fontSizeModeStr[this.fontSizeIndex]).onClick(() => { + this.fontSizeIndex++ + if (this.fontSizeIndex > (this.fontSizeModeStr.length - 1)) { + this.fontSizeIndex = 0 + } + }) + + Button("UpdateSpanStyle fontSize").onClick(() => { + this.controller.updateSpanStyle({ start: -1, end: -1, + textStyle: { + fontColor: Color.Brown, + fontSize: this.fontSizeMode[this.fontSizeIndex] + } + }) + }) + } + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten089.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten089.ets new file mode 100644 index 000000000..b33150810 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten089.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten089 { + @State SwitchNumber: number = 450 + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontWeight: FontWeight.Lighter, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + } + }) + }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten090.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten090.ets new file mode 100644 index 000000000..e5ca62617 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten090.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten090 { + @State SwitchNumber: number = 450 + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontWeight: FontWeight.Normal, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + } + }) + }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten091.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten091.ets new file mode 100644 index 000000000..3df32404f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten091.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten091 { + @State SwitchNumber: number = 450 + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontWeight: FontWeight.Bolder, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + } + }) + }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten092.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten092.ets new file mode 100644 index 000000000..8ce42b341 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten092.ets @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten092 { + @State FontWeightIndex: number = 0; + @State FontWeightMode: FontWeight[] = [FontWeight.Lighter, FontWeight.Normal, FontWeight.Regular] + @State FontWeightModeStr: string[] = ['Lighter', 'Normal', 'Regular'] + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontWeight: this.FontWeightMode[this.FontWeightIndex], + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + } + }) + }) + + Row() { + Button('更改FontWeight:' + this.FontWeightModeStr[this.FontWeightIndex]).onClick(() => { + this.FontWeightIndex++ + if (this.FontWeightIndex > (this.FontWeightModeStr.length - 1)) { + this.FontWeightIndex = 0 + } + }) + + Button("UpdateSpanStyle FontWeight").onClick(() => { + this.controller.updateSpanStyle({ start: -1, end: -1, + textStyle: { + fontColor: Color.Brown, + fontSize: this.FontWeightMode[this.FontWeightIndex] + } + }) + }) + } + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten093.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten093.ets new file mode 100644 index 000000000..73e711114 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten093.ets @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten093 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Normal, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + } + }) + }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten094.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten094.ets new file mode 100644 index 000000000..6d09b8432 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten094.ets @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten094 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + } + }) + }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten095.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten095.ets new file mode 100644 index 000000000..cfa3a36e7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten095.ets @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten095 { + @State fontStyleIndex: number = 0; + @State fontStyleMode: FontStyle[] = [FontStyle.Normal, FontStyle.Italic] + @State fontStyleModeStr: string[] = ['Normal', 'Italic'] + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: this.fontStyleMode[this.fontStyleIndex], + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + } + }) + }) + + Row() { + Button('更改fontStyle:' + this.fontStyleModeStr[this.fontStyleIndex]).onClick(() => { + this.fontStyleIndex++ + if (this.fontStyleIndex > (this.fontStyleModeStr.length - 1)) { + this.fontStyleIndex = 0 + } + }) + + Button("UpdateSpanStyle fontStyle").onClick(() => { + this.controller.updateSpanStyle({ start: -1, end: -1, + textStyle: { + fontColor: Color.Brown, + fontSize: this.fontStyleMode[this.fontStyleIndex] + } + }) + }) + } + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten096.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten096.ets new file mode 100644 index 000000000..c3362b41f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten096.ets @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import font from '@ohos.font' + +@Entry +@Component +struct UiTextBrighten096 { + @State message: string = 'Hello World' + + @State unicode: string = '\u0000' + @State codePoint: string = String.fromCharCode(0x0000) + + aboutToAppear() { + font.registerFont({ + familyName: 'iconFont', + familySrc: '/font/iconFont.ttf' + }) + + font.registerFont({ + familyName: 'medium', + familySrc: '/font/medium.ttf' + }) + } + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontFamily: "iconFont", + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + } + }) + }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten097.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten097.ets new file mode 100644 index 000000000..43fb14b17 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten097.ets @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten097 { + @State stringIndex: number = 0; + @State stringMode: string[] = ["test string", "这是测试文字"] + @State stringModeStr: string[] = ['test string', '这是测试文字'] + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan(this.stringMode[this.stringIndex], + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + } + }) + }) + + Row() { + Button('更改string:' + this.stringModeStr[this.stringIndex]).onClick(() => { + this.stringIndex++ + if (this.stringIndex > (this.stringModeStr.length - 1)) { + this.stringIndex = 0 + } + }) + + Button("UpdateSpanStyle string").onClick(() => { + this.controller.updateSpanStyle({ start: -1, end: -1, + textStyle: { + fontColor: Color.Brown, + fontSize: this.stringMode[this.stringIndex] + } + }) + }) + } + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten098.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten098.ets new file mode 100644 index 000000000..a6cd563d5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten098.ets @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten098 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }] + } + }) + + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 },] + } + }) + }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten099.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten099.ets new file mode 100644 index 000000000..40c890f4c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten099.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten099 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.Start, + } + }) + }) + .width("80%") + .height("30%") + .border({ width: 1, radius: 5 }) + .draggable(false) + } + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten100.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten100.ets new file mode 100644 index 000000000..71857b8ee --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten100.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten100 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.Center, + } + }) + }) + .width("80%") + .height("30%") + .border({ width: 1, radius: 5 }) + .draggable(false) + } + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten101.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten101.ets new file mode 100644 index 000000000..f851e3aba --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten101.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten101 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.End, + } + }) + }) + .width("80%") + .height("30%") + .border({ width: 1, radius: 5 }) + .draggable(false) + } + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten102.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten102.ets new file mode 100644 index 000000000..d22fb340e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten102.ets @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten102 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.Start, + } + }) + }) + .width("80%") + .height("30%") + .border({ width: 1, radius: 5 }) + .draggable(false) + + Column({ space: 5 }) { + Button("段落左对齐").onClick(() => { + this.controller.updateParagraphStyle({ start: -1, end: -1, + style: { + textAlign: TextAlign.Start, + } + }) + }) + + Button("段落右对齐").onClick(() => { + this.controller.updateParagraphStyle({ start: -1, end: -1, + style: { + textAlign: TextAlign.End, + } + }) + }) + + Button("段落居中").onClick(() => { + this.controller.updateParagraphStyle({ start: -1, end: -1, + style: { + textAlign: TextAlign.Center, + } + }) + }) + } + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten103.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten103.ets new file mode 100644 index 000000000..a708ac4e2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten103.ets @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten103 { + @State textIndex: number = 0; + @State textMode: string[] = [" ", "\n"] + @State textModeStr: string[] = ['空行', '换行'] + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string" + this.textMode[this.textIndex], + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.End, + } + }) + }) + + Row() { + Button('更改text:' + this.textModeStr[this.textIndex]).onClick(() => { + if(this.textIndex == 0){ + this.controller.addTextSpan(this.textMode[this.textIndex]) + this.textIndex++ + }else{ + this.controller.addTextSpan(this.textMode[this.textIndex]) + this.textIndex++ + } + if (this.textIndex > (this.textModeStr.length - 1)) { + this.textIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten104.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten104.ets new file mode 100644 index 000000000..5a7703d26 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten104.ets @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten104 { + @State textShadows : (ShadowOptions | Array ) = + [{ radius: 10, color: Color.Red, offsetX: 10, offsetY: 0 },{ radius: 10, color: Color.Black, offsetX: 20, offsetY: 0 }, + { radius: 10, color: Color.Brown, offsetX: 30, offsetY: 0 },{ radius: 10, color: Color.Green, offsetX: 40, offsetY: 0 }, + { radius: 10, color: Color.Yellow, offsetX: 100, offsetY: 0 }] + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.End, + } + }) + }) + + Row() { + Button("更新样式: 加粗 & 文本阴影").onClick(() => { + this.controller.updateSpanStyle({ + textStyle: + { + textShadow: this.textShadows + } + }) + }) + } + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten105.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten105.ets new file mode 100644 index 000000000..0c85eaaa0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten105.ets @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten105 { + @State listPosition: number = 0; // 0代表滚动到List顶部,1代表中间值,2代表滚动到List底部。 + private arr: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + private scrollerForScroll: Scroller = new Scroller() + private scrollerForList: Scroller = new Scroller() + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Flex() { + Scroll(this.scrollerForScroll) { + Column() { + Text("Scroll Area") + .width("100%") + .height("40%") + .backgroundColor(0X330000FF) + .fontSize(16) + .textAlign(TextAlign.Center) + .onClick(() => { + this.scrollerForList.scrollToIndex(5) + }) + + List({ space: 20, scroller: this.scrollerForList }) { + ForEach(this.arr, (item: number) => { + ListItem() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.End, + } + }) + }) + }.width("100%").height(100) + }, (item: string) => item) + } + .width("100%") + .height("50%") + .edgeEffect(EdgeEffect.None) + .friction(0.6) + .onReachStart(() => { + this.listPosition = 0 + }) + .onReachEnd(() => { + this.listPosition = 2 + }) + .onScrollFrameBegin((offset: number) => { + if ((this.listPosition == 0 && offset <= 0) || (this.listPosition == 2 && offset >= 0)) { + this.scrollerForScroll.scrollBy(0, offset) + return { offsetRemain: 0 } + } + this.listPosition = 1 + return { offsetRemain: offset }; + }) + + Text("Scroll Area") + .width("100%") + .height("40%") + .backgroundColor(0X330000FF) + .fontSize(16) + .textAlign(TextAlign.Center) + } + } + .width("100%").height("100%") + }.width('100%').height('100%').backgroundColor(0xDCDCDC).padding(20) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten106.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten106.ets new file mode 100644 index 000000000..5a6d7c663 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten106.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten106 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.Start, + } + }) + }) + .padding(10) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten107.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten107.ets new file mode 100644 index 000000000..891087834 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten107.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten107 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.Start, + } + }) + }) + .padding(20) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten108.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten108.ets new file mode 100644 index 000000000..213db5f88 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten108.ets @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten108 { + @State offsetXIndex: number = 0; + @State offsetXMode: number[] = [10, 20, 30] + @State offsetXModeStr: string[] = ['10', '20', '30'] + + @State offsetYIndex: number = 0; + @State offsetYMode: number[] = [10, 20, 30] + @State offsetYModeStr: string[] = ['10', '20', '30'] + + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.Start, + } + }) + }) + .padding(20) + .offset({ x: this.offsetXMode[this.offsetXIndex], y: this.offsetYMode[this.offsetYIndex] }) + + Row() { + Button('更改offsetx:' + this.offsetXModeStr[this.offsetXIndex]).onClick(() => { + this.offsetXIndex++ + if (this.offsetXIndex > (this.offsetXModeStr.length - 1)) { + this.offsetXIndex = 0 + } + }) + } + + Row() { + Button('更改offsety:' + this.offsetYModeStr[this.offsetYIndex]).onClick(() => { + this.offsetYIndex++ + if (this.offsetYIndex > (this.offsetYModeStr.length - 1)) { + this.offsetYIndex = 0 + } + }) + } + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten109.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten109.ets new file mode 100644 index 000000000..dce77424a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten109.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten109 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Orange, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.Start, + } + }) + }) + .padding(20) + .motionPath({ path: 'Mstart.x start.y L300 200 L300 500 Lend.x end.y', from: 0.0, to: 1.0, rotatable: true }) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten110.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten110.ets new file mode 100644 index 000000000..d17555c1d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten110.ets @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten110 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + controller2: RichEditorController = new RichEditorController(); + options2: RichEditorOptions = { controller: this.controller2 } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string1", + { + style: + { + fontColor: Color.Red, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.Start, + } + }) + }) + .width("80%") + .height("30%") + .border({ width: 1, radius: 5 }) + .draggable(false) + .backgroundColor(Color.Green) + .blendMode(BlendMode.NONE) + + RichEditor(this.options2) + .onReady(() => { + this.controller2.addTextSpan("test string2", + { + style: + { + fontColor: Color.Red, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.Center, + } + }) + }) + .width("80%") + .height("30%") + .border({ width: 1, radius: 5 }) + .draggable(false) + .backgroundColor(Color.Yellow) + .blendMode(BlendMode.NONE) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten111.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten111.ets new file mode 100644 index 000000000..501ad092d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten111.ets @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten111 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + controller2: RichEditorController = new RichEditorController(); + options2: RichEditorOptions = { controller: this.controller2 } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Red, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.Start, + } + }) + }) + .padding(20) + .backgroundColor(Color.Green) + .blendMode(BlendMode.SRC_IN) + + RichEditor(this.options2) + .onReady(() => { + this.controller2.addTextSpan("test string", + { + style: + { + fontColor: Color.Red, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.Start, + } + }) + }) + .backgroundColor(Color.Yellow) + .blendMode(BlendMode.SRC_IN) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten112.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten112.ets new file mode 100644 index 000000000..b54d3d68d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiTextBrighten/UiTextBrighten112.ets @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node'; + +@Entry +@Component +struct UiTextBrighten112 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller } + + controller2: RichEditorController = new RichEditorController(); + options2: RichEditorOptions = { controller: this.controller2 } + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("test string", + { + style: + { + fontColor: Color.Red, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.Start, + } + }) + }) + .padding(20) + .backgroundColor(Color.Green) + .blendMode(BlendMode.DST_IN) + + RichEditor(this.options2) + .onReady(() => { + this.controller2.addTextSpan("test string", + { + style: + { + fontColor: Color.Red, + fontStyle: FontStyle.Italic, + textShadow: [{ radius: 0, color: Color.Red, offsetX: -10, offsetY: -10 }, + { radius: 3, color: Color.Blue, offsetX: 10, offsetY: 10 }, + { radius: 8, color: Color.Green, offsetX: -10, offsetY: 10 }, + { radius: 10, color: Color.Black, offsetX: 10, offsetY: -10 }] + }, + paragraphStyle: { + textAlign: TextAlign.Start, + } + }) + }) + .backgroundColor(Color.Yellow) + .blendMode(BlendMode.DST_IN) + } + .width('100%') + .height('100%') + } + } + +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json index 42f75e417..533096329 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 @@ -251,6 +251,269 @@ "testability/pages/UIAttributePositionInterface/UIAttributePositionInterface003", "testability/pages/UIAttributePositionInterface/UIAttributePositionInterface004", "testability/pages/UIAttributePositionInterface/UIAttributePositionInterface005", - "testability/pages/UIAttributePositionInterface/UIAttributePositionInterface006" + "testability/pages/UIAttributePositionInterface/UIAttributePositionInterface006", + "testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle001", + "testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle002", + "testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle003", + "testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle004", + "testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle005", + "testability/pages/ComponentAttributeStringModifyingStyle/ComponentAttributeStringModifyingStyle006", + "testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText001", + "testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText002", + "testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText003", + "testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText004", + "testability/pages/ComponentAttributeStringModifyingStyleText/ComponentAttributeStringModifyingStyleText005", + "testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText001", + "testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText002", + "testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText003", + "testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText004", + "testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText005", + "testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText006", + "testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText007", + "testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText008", + "testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText009", + "testability/pages/ComponentAttributeStringModifyingText/ComponentAttributeStringModifyingText010", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString001", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString002", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString003", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString004", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString005", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString006", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString007", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString008", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString009", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString010", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString011", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString012", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString013", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString014", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString015", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString016", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString017", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString018", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString019", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString020", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString021", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString022", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString023", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString024", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString025", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString026", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString027", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString028", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString029", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString030", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString031", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString032", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString033", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString034", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString035", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString036", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString037", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString038", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString039", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString040", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString041", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString042", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString043", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString044", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString045", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString046", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString047", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString048", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString049", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString050", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString051", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString052", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString053", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString054", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString055", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString056", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString057", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString058", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString059", + "testability/pages/ComponentTextAttributeString/ComponentTextAttributeString060", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs001", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs002", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs003", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs004", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs005", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs006", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs007", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs008", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs009", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs010", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs011", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs012", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs013", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs014", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs015", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs016", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs017", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs018", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs019", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs020", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs021", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs022", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs023", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs024", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs025", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs026", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs027", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs028", + "testability/pages/ComponentTextAttributeStringConstructs/ComponentTextAttributeStringConstructs029", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel001", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel002", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel003", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel004", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel005", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel006", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel007", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel008", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel009", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel010", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel011", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel012", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel013", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel014", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel015", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel016", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel017", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel018", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel019", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel020", + "testability/pages/ComponentLayoutCommonPixel/ComponentLayoutCommonPixel021", + "testability/pages/UiTextBrighten/UiTextBrighten001", + "testability/pages/UiTextBrighten/UiTextBrighten002", + "testability/pages/UiTextBrighten/UiTextBrighten003", + "testability/pages/UiTextBrighten/UiTextBrighten004", + "testability/pages/UiTextBrighten/UiTextBrighten005", + "testability/pages/UiTextBrighten/UiTextBrighten006", + "testability/pages/UiTextBrighten/UiTextBrighten007", + "testability/pages/UiTextBrighten/UiTextBrighten008", + "testability/pages/UiTextBrighten/UiTextBrighten009", + "testability/pages/UiTextBrighten/UiTextBrighten010", + "testability/pages/UiTextBrighten/UiTextBrighten011", + "testability/pages/UiTextBrighten/UiTextBrighten012", + "testability/pages/UiTextBrighten/UiTextBrighten013", + "testability/pages/UiTextBrighten/UiTextBrighten014", + "testability/pages/UiTextBrighten/UiTextBrighten015", + "testability/pages/UiTextBrighten/UiTextBrighten016", + "testability/pages/UiTextBrighten/UiTextBrighten017", + "testability/pages/UiTextBrighten/UiTextBrighten018", + "testability/pages/UiTextBrighten/UiTextBrighten019", + "testability/pages/UiTextBrighten/UiTextBrighten020", + "testability/pages/UiTextBrighten/UiTextBrighten021", + "testability/pages/UiTextBrighten/UiTextBrighten022", + "testability/pages/UiTextBrighten/UiTextBrighten023", + "testability/pages/UiTextBrighten/UiTextBrighten024", + "testability/pages/UiTextBrighten/UiTextBrighten025", + "testability/pages/UiTextBrighten/UiTextBrighten026", + "testability/pages/UiTextBrighten/UiTextBrighten027", + "testability/pages/UiTextBrighten/UiTextBrighten028", + "testability/pages/UiTextBrighten/UiTextBrighten029", + "testability/pages/UiTextBrighten/UiTextBrighten030", + "testability/pages/UiTextBrighten/UiTextBrighten031", + "testability/pages/UiTextBrighten/UiTextBrighten032", + "testability/pages/UiTextBrighten/UiTextBrighten033", + "testability/pages/UiTextBrighten/UiTextBrighten034", + "testability/pages/UiTextBrighten/UiTextBrighten035", + "testability/pages/UiTextBrighten/UiTextBrighten036", + "testability/pages/UiTextBrighten/UiTextBrighten037", + "testability/pages/UiTextBrighten/UiTextBrighten038", + "testability/pages/UiTextBrighten/UiTextBrighten039", + "testability/pages/UiTextBrighten/UiTextBrighten040", + "testability/pages/UiTextBrighten/UiTextBrighten041", + "testability/pages/UiTextBrighten/UiTextBrighten042", + "testability/pages/UiTextBrighten/UiTextBrighten043", + "testability/pages/UiTextBrighten/UiTextBrighten044", + "testability/pages/UiTextBrighten/UiTextBrighten045", + "testability/pages/UiTextBrighten/UiTextBrighten046", + "testability/pages/UiTextBrighten/UiTextBrighten047", + "testability/pages/UiTextBrighten/UiTextBrighten048", + "testability/pages/UiTextBrighten/UiTextBrighten049", + "testability/pages/UiTextBrighten/UiTextBrighten050", + "testability/pages/UiTextBrighten/UiTextBrighten051", + "testability/pages/UiTextBrighten/UiTextBrighten052", + "testability/pages/UiTextBrighten/UiTextBrighten053", + "testability/pages/UiTextBrighten/UiTextBrighten054", + "testability/pages/UiTextBrighten/UiTextBrighten055", + "testability/pages/UiTextBrighten/UiTextBrighten056", + "testability/pages/UiTextBrighten/UiTextBrighten057", + "testability/pages/UiTextBrighten/UiTextBrighten058", + "testability/pages/UiTextBrighten/UiTextBrighten059", + "testability/pages/UiTextBrighten/UiTextBrighten060", + "testability/pages/UiTextBrighten/UiTextBrighten061", + "testability/pages/UiTextBrighten/UiTextBrighten062", + "testability/pages/UiTextBrighten/UiTextBrighten063", + "testability/pages/UiTextBrighten/UiTextBrighten064", + "testability/pages/UiTextBrighten/UiTextBrighten065", + "testability/pages/UiTextBrighten/UiTextBrighten066", + "testability/pages/UiTextBrighten/UiTextBrighten067", + "testability/pages/UiTextBrighten/UiTextBrighten068", + "testability/pages/UiTextBrighten/UiTextBrighten069", + "testability/pages/UiTextBrighten/UiTextBrighten070", + "testability/pages/UiTextBrighten/UiTextBrighten071", + "testability/pages/UiTextBrighten/UiTextBrighten072", + "testability/pages/UiTextBrighten/UiTextBrighten073", + "testability/pages/UiTextBrighten/UiTextBrighten074", + "testability/pages/UiTextBrighten/UiTextBrighten075", + "testability/pages/UiTextBrighten/UiTextBrighten076", + "testability/pages/UiTextBrighten/UiTextBrighten077", + "testability/pages/UiTextBrighten/UiTextBrighten078", + "testability/pages/UiTextBrighten/UiTextBrighten079", + "testability/pages/UiTextBrighten/UiTextBrighten080", + "testability/pages/UiTextBrighten/UiTextBrighten081", + "testability/pages/UiTextBrighten/UiTextBrighten082", + "testability/pages/UiTextBrighten/UiTextBrighten083", + "testability/pages/UiTextBrighten/UiTextBrighten084", + "testability/pages/UiTextBrighten/UiTextBrighten085", + "testability/pages/UiTextBrighten/UiTextBrighten086", + "testability/pages/UiTextBrighten/UiTextBrighten087", + "testability/pages/UiTextBrighten/UiTextBrighten088", + "testability/pages/UiTextBrighten/UiTextBrighten089", + "testability/pages/UiTextBrighten/UiTextBrighten090", + "testability/pages/UiTextBrighten/UiTextBrighten091", + "testability/pages/UiTextBrighten/UiTextBrighten092", + "testability/pages/UiTextBrighten/UiTextBrighten093", + "testability/pages/UiTextBrighten/UiTextBrighten094", + "testability/pages/UiTextBrighten/UiTextBrighten095", + "testability/pages/UiTextBrighten/UiTextBrighten096", + "testability/pages/UiTextBrighten/UiTextBrighten097", + "testability/pages/UiTextBrighten/UiTextBrighten098", + "testability/pages/UiTextBrighten/UiTextBrighten099", + "testability/pages/UiTextBrighten/UiTextBrighten100", + "testability/pages/UiTextBrighten/UiTextBrighten101", + "testability/pages/UiTextBrighten/UiTextBrighten102", + "testability/pages/UiTextBrighten/UiTextBrighten103", + "testability/pages/UiTextBrighten/UiTextBrighten104", + "testability/pages/UiTextBrighten/UiTextBrighten105", + "testability/pages/UiTextBrighten/UiTextBrighten106", + "testability/pages/UiTextBrighten/UiTextBrighten107", + "testability/pages/UiTextBrighten/UiTextBrighten108", + "testability/pages/UiTextBrighten/UiTextBrighten109", + "testability/pages/UiTextBrighten/UiTextBrighten110", + "testability/pages/UiTextBrighten/UiTextBrighten111", + "testability/pages/UiTextBrighten/UiTextBrighten112", + "testability/pages/UiTextShadow/UiTextShadow001", + "testability/pages/UiTextShadow/UiTextShadow002", + "testability/pages/UiTextShadow/UiTextShadow003", + "testability/pages/UiTextShadow/UiTextShadow004", + "testability/pages/UiTextShadow/UiTextShadow005", + "testability/pages/UiTextShadow/UiTextShadow006", + "testability/pages/UiTextShadow/UiTextShadow007", + "testability/pages/UiTextShadow/UiTextShadow008", + "testability/pages/UiTextShadow/UiTextShadow009", + "testability/pages/UiTextShadow/UiTextShadow010", + "testability/pages/UiTextShadow/UiTextShadow011", + "testability/pages/UiTextShadow/UiTextShadow012", + "testability/pages/UiTextShadow/UiTextShadow013", + "testability/pages/UiTextShadow/UiTextShadow014", + "testability/pages/UiTextShadow/UiTextShadow015", + "testability/pages/UiTextShadow/UiTextShadow016", + "testability/pages/UiTextShadow/UiTextShadow017", + "testability/pages/UiTextShadow/UiTextShadow018", + "testability/pages/UiTextShadow/UiTextShadow019", + "testability/pages/UiTextShadow/UiTextShadow020" ] } -- Gitee