diff --git a/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/TestAbility/pages/Index.ets b/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/TestAbility/pages/Index.ets index ec3b27f47d74a792cbedb436476ad308e212baed..4ae73bb3e26e564f86b6df122e6ae89897d22a74 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/TestAbility/pages/Index.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/TestAbility/pages/Index.ets @@ -1089,6 +1089,839 @@ struct SwiperTest { console.info(index.toString()) }) } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_FontColor_0100") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .fontColor(0x00ff00)) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_FontColor_0200") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .fontColor("#FFFF0000")) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_FontColor_0300") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .fontColor("rgb(138,43,226)")) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_FontColor_0400") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .fontColor(Color.Pink)) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_FontColor_0500") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .fontColor("")) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_FontColor_0600") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .fontColor(null)) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_FontColor_0700") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .fontColor($r("app.color.font_color_test"))) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_FontColor_0800") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .fontColor("bgr(138,43,226)")) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_FontColor_0900") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .fontColor(undefined)) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_FontColor_1000") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .fontColor("rgb(138,43,226)")) + .indicator(Indicator.digit() + .fontColor(Color.Gray)) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_FontColor_1100") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .fontColor(0x00ff00)) + .backgroundColor(Color.Pink) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_FontColor_1200") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .fontColor("rgb(255,0,0)")) + .indicator(Indicator.digit() + .fontColor(undefined)) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_SelectedDigitFont_0100") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .selectedDigitFont({ size: 34, weight: "800" })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_SelectedDigitFont_0200") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .selectedDigitFont({ size: "20px", weight: 200 })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_SelectedDigitFont_0300") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .selectedDigitFont({ size: "48%", weight: 900 })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_SelectedDigitFont_0400") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .selectedDigitFont({ size: "", weight: FontWeight.Bolder })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_SelectedDigitFont_0500") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .selectedDigitFont({ size: -2, weight: 1000 })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_SelectedDigitFont_0600") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .selectedDigitFont({ size: "abc", weight: null })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_SelectedDigitFont_0700") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .selectedDigitFont({ size: "1000%", weight: "" })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_SelectedDigitFont_0800") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .selectedDigitFont({ size: "100vp", weight: "adf@$5" })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_SelectedDigitFont_0900") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .selectedDigitFont({ size: 10, weight: 200 })) + .indicator(Indicator.digit() + .selectedDigitFont({ size: "40lpx", weight: 500 })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_SelectedDigitFont_1000") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .selectedDigitFont({ size: 10, weight: 500 })) + .indicator(Indicator.digit() + .selectedDigitFont({ size: "abc", weight: null })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_SelectedDigitFont_1100") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .selectedDigitFont({ size: 10, weight: 600 })) + .size(null) + .layoutWeight(null) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_DigitFont_0100") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .digitFont({ size: 34, weight: "800" })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_DigitFont_0200") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .digitFont({ size: "20px", weight: 200 })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_DigitFont_0300") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .digitFont({ size: "48%", weight: 900 })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_DigitFont_0400") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .digitFont({ size: "", weight: FontWeight.Bolder })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_DigitFont_0500") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .digitFont({ size: -2, weight: 1000 })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_DigitFont_0600") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .digitFont({ size: "abc", weight: null })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_DigitFont_0700") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .digitFont({ size: "1000%", weight: "" })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_DigitFont_0800") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .digitFont({ size: "100vp", weight: "adf@$5" })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_DigitFont_0900") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .digitFont({ size: 10, weight: 200 })) + .indicator(Indicator.digit() + .digitFont({ size: "40lpx", weight: 500 })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_DigitFont_1000") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .digitFont({ size: 10, weight: 500 })) + .indicator(Indicator.digit() + .digitFont({ size: "abc", weight: null })) + .onChange((index: number) => { + console.info(index.toString()) + }) + } + ListItem() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, item => item) + } + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .key("ArkUX_Stage_Swiper_DigitFont_1100") + .curve(Curve.Linear) + .indicator(Indicator.digit() + .digitFont({ size: 10, weight: 600 })) + .size(null) + .layoutWeight(null) + .onChange((index: number) => { + console.info(index.toString()) + }) + } } } .width('100%') diff --git a/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/test/swiper.ets b/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/test/swiper.ets index d8dc5fb409bb981fd6366b34c939b4159dc56f36..c0a9f546cb66ddf65306aa23f7beafc38f0d9f21 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/test/swiper.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/test/swiper.ets @@ -1284,5 +1284,1057 @@ export default function swiperTest() { } }, 500) }); + + /** + * @tc.number ArkUX_Stage_Swiper_FontColor_0100 + * @tc.name Tests the fontColor property of the swiper component + * @tc.desc Set the fontColor property parameter to 0x00ff00 + */ + it('ArkUX_Stage_Swiper_FontColor_0100', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_FontColor_0100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_FontColor_0100'); + console.info('ArkUX_Stage_Swiper_FontColor_0100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_FontColor_0100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_FontColor_0100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_FontColor_0100 component obj.$attrs.fontColor is: " + + JSON.stringify(obj.$attrs.fontColor)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_FontColor_0100 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontColor).assertEqual("#FF00FF00"); + console.info('ArkUX_Stage_Swiper_FontColor_0100 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_FontColor_0100 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_FontColor_0200 + * @tc.name Tests the fontColor property of the swiper component + * @tc.desc Set the fontColor property parameter to "#FFFF0000" + */ + it('ArkUX_Stage_Swiper_FontColor_0200', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_FontColor_0200 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_FontColor_0200'); + console.info('ArkUX_Stage_Swiper_FontColor_0200 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_FontColor_0200 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_FontColor_0200 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_FontColor_0200 component obj.$attrs.fontColor is: " + + JSON.stringify(obj.$attrs.fontColor)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_FontColor_0200 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontColor).assertEqual("#FFFF0000"); + console.info('ArkUX_Stage_Swiper_FontColor_0200 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_FontColor_0200 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_FontColor_0300 + * @tc.name Tests the fontColor property of the swiper component + * @tc.desc Set the fontColor property parameter to "rgb(138,43,226)" + */ + it('ArkUX_Stage_Swiper_FontColor_0300', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_FontColor_0300 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_FontColor_0300'); + console.info('ArkUX_Stage_Swiper_FontColor_0300 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_FontColor_0300 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_FontColor_0300 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_FontColor_0300 component obj.$attrs.fontColor is: " + + JSON.stringify(obj.$attrs.fontColor)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_FontColor_0300 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontColor).assertEqual("#FF8A2BE2"); + console.info('ArkUX_Stage_Swiper_FontColor_0300 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_FontColor_0300 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_FontColor_0400 + * @tc.name Tests the fontColor property of the swiper component + * @tc.desc Set the fontColor property parameter to Color.Pink + */ + it('ArkUX_Stage_Swiper_FontColor_0400', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_FontColor_0400 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_FontColor_0400'); + console.info('ArkUX_Stage_Swiper_FontColor_0400 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_FontColor_0400 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_FontColor_0400 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_FontColor_0400 component obj.$attrs.fontColor is: " + + JSON.stringify(obj.$attrs.fontColor)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_FontColor_0400 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontColor).assertEqual("#FFFFC0CB"); + console.info('ArkUX_Stage_Swiper_FontColor_0400 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_FontColor_0400 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_FontColor_0500 + * @tc.name Tests the fontColor property of the swiper component + * @tc.desc Set the fontColor property parameter to "" + */ + it('ArkUX_Stage_Swiper_FontColor_0500', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_FontColor_0500 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_FontColor_0500'); + console.info('ArkUX_Stage_Swiper_FontColor_0500 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_FontColor_0500 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_FontColor_0500 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_FontColor_0500 component obj.$attrs.fontColor is: " + + JSON.stringify(obj.$attrs.fontColor)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_FontColor_0500 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontColor).assertEqual("#FF182431"); + console.info('ArkUX_Stage_Swiper_FontColor_0500 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_FontColor_0500 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_FontColor_0600 + * @tc.name Tests the fontColor property of the swiper component + * @tc.desc Set the fontColor property parameter to null + */ + it('ArkUX_Stage_Swiper_FontColor_0600', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_FontColor_0600 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_FontColor_0600'); + console.info('ArkUX_Stage_Swiper_FontColor_0600 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_FontColor_0600 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_FontColor_0600 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_FontColor_0600 component obj.$attrs.fontColor is: " + + JSON.stringify(obj.$attrs.fontColor)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_FontColor_0600 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontColor).assertEqual("#FF182431"); + console.info('ArkUX_Stage_Swiper_FontColor_0600 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_FontColor_0600 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_FontColor_0700 + * @tc.name Tests the fontColor property of the swiper component + * @tc.desc Set the fontColor property parameter to $r("app.color.font_color_test") + */ + it('ArkUX_Stage_Swiper_FontColor_0700', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_FontColor_0700 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_FontColor_0700'); + console.info('ArkUX_Stage_Swiper_FontColor_0700 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_FontColor_0700 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_FontColor_0700 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_FontColor_0700 component obj.$attrs.fontColor is: " + + JSON.stringify(obj.$attrs.fontColor)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_FontColor_0700 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontColor).assertEqual("#FFFF0000"); + console.info('ArkUX_Stage_Swiper_FontColor_0700 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_FontColor_0700 ERR ' + JSON.stringify(err)); + done(); + } + done(); + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_FontColor_0800 + * @tc.name Tests the fontColor property of the swiper component + * @tc.desc Set the fontColor property parameter to "bgr(138,43,226)" + */ + it('ArkUX_Stage_Swiper_FontColor_0800', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_FontColor_0800 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_FontColor_0800'); + console.info('ArkUX_Stage_Swiper_FontColor_0800 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_FontColor_0800 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_FontColor_0800 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_FontColor_0800 component obj.$attrs.fontColor is: " + + JSON.stringify(obj.$attrs.fontColor)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_FontColor_0800 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontColor).assertEqual("#FF182431"); + console.info('ArkUX_Stage_Swiper_FontColor_0800 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_FontColor_0800 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_FontColor_0900 + * @tc.name Tests the fontColor property of the swiper component + * @tc.desc Set the fontColor property parameter to undefined + */ + it('ArkUX_Stage_Swiper_FontColor_0900', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_FontColor_0900 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_FontColor_0600'); + console.info('ArkUX_Stage_Swiper_FontColor_0900 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_FontColor_0900 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_FontColor_0900 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_FontColor_0900 component obj.$attrs.fontColor is: " + + JSON.stringify(obj.$attrs.fontColor)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_FontColor_0900 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontColor).assertEqual("#FF182431"); + console.info('ArkUX_Stage_Swiper_FontColor_0900 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_FontColor_0900 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_FontColor_1000 + * @tc.name Tests the fontColor property of the swiper component + * @tc.desc Set the fontColor attribute parameter to "rgb (138,43,226)", + * and set the fontColor attribute parameter to the normal value Color.Gray again + */ + it('ArkUX_Stage_Swiper_FontColor_1000', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_FontColor_1000 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_FontColor_1000'); + console.info('ArkUX_Stage_Swiper_FontColor_1000 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_FontColor_1000 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_FontColor_1000 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_FontColor_1000 component obj.$attrs.fontColor is: " + + JSON.stringify(obj.$attrs.fontColor)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_FontColor_1000 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontColor).assertEqual("#FF808080"); + console.info('ArkUX_Stage_Swiper_FontColor_1000 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_FontColor_1000 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_FontColor_1100 + * @tc.name Tests the fontColor property of the swiper component + * @tc.desc Set the fontColor property parameter to 0x00ff00, + * and set the general property backgroundColor parameter to Color.Pink + */ + it('ArkUX_Stage_Swiper_FontColor_1100', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_FontColor_1100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_FontColor_1100'); + console.info('ArkUX_Stage_Swiper_FontColor_1100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_FontColor_1100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_FontColor_1100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_FontColor_1100 component obj.$attrs.fontColor is: " + + JSON.stringify(obj.$attrs.fontColor)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_FontColor_1100 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontColor).assertEqual("#FF00FF00"); + console.info('ArkUX_Stage_Swiper_FontColor_1100 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_FontColor_1100 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_FontColor_1200 + * @tc.name Tests the fontColor property of the swiper component + * @tc.desc Set the fontColor property parameter to "rgb (255,0,0)", + * and set the fontColor property parameter to the outlier undefined again + */ + it('ArkUX_Stage_Swiper_FontColor_1200', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_FontColor_1200 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_FontColor_1200'); + console.info('ArkUX_Stage_Swiper_FontColor_1200 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_FontColor_1200 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_FontColor_1200 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_FontColor_1200 component obj.$attrs.fontColor is: " + + JSON.stringify(obj.$attrs.fontColor)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_FontColor_1200 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontColor).assertEqual("#FF182431"); + console.info('ArkUX_Stage_Swiper_FontColor_1200 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_FontColor_1200 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_SelectedDigitFont_0100 + * @tc.name Tests the selectedDigitFont property of the swiper component + * @tc.desc Set the selectedDigitFont property parameter to {size:34,weight:"800"} + */ + it('ArkUX_Stage_Swiper_SelectedDigitFont_0100', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_SelectedDigitFont_0100'); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0100 component obj.$attrs.selectedDigitFont is: " + + JSON.stringify(obj.$attrs.selectedDigitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0100 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.selectedFontSize).assertEqual("34.00fp"); + expect(obj2.selectedFontWeight).assertEqual("FontWeight.800"); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0100 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0100 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_SelectedDigitFont_0200 + * @tc.name Tests the selectedDigitFont property of the swiper component + * @tc.desc Set the selectedDigitFont property parameter to {size:"20px",weight:200} + */ + it('ArkUX_Stage_Swiper_SelectedDigitFont_0200', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0200 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_SelectedDigitFont_0200'); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0200 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0200 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0200 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0200 component obj.$attrs.selectedDigitFont is: " + + JSON.stringify(obj.$attrs.selectedDigitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0200 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.selectedFontSize).assertEqual("20.00px"); + expect(obj2.selectedFontWeight).assertEqual("FontWeight.200"); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0200 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0200 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_SelectedDigitFont_0300 + * @tc.name Tests the selectedDigitFont property of the swiper component + * @tc.desc Set the selectedDigitFont property parameter to {size:"48%",weight:900} + */ + it('ArkUX_Stage_Swiper_SelectedDigitFont_0300', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0300 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_SelectedDigitFont_0300'); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0300 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0300 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0300 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0300 component obj.$attrs.selectedDigitFont is: " + + JSON.stringify(obj.$attrs.selectedDigitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0300 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.selectedFontSize).assertEqual("48.00%"); + expect(obj2.selectedFontWeight).assertEqual("FontWeight.900"); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0300 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0300 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_SelectedDigitFont_0400 + * @tc.name Tests the selectedDigitFont property of the swiper component + * @tc.desc Set the selectedDigitFont property parameter to {size:"",weight:FontWeight.Bolder} + */ + it('ArkUX_Stage_Swiper_SelectedDigitFont_0400', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0400 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_SelectedDigitFont_0400'); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0400 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0400 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0400 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0400 component obj.$attrs.selectedDigitFont is: " + + JSON.stringify(obj.$attrs.selectedDigitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0400 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.selectedFontSize).assertEqual("14.00fp"); + expect(obj2.selectedFontWeight).assertEqual("FontWeight.Bolder"); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0400 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0400 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_SelectedDigitFont_0500 + * @tc.name Tests the selectedDigitFont property of the swiper component + * @tc.desc Set the selectedDigitFont property parameter to {size:-2,weight:1000} + */ + it('ArkUX_Stage_Swiper_SelectedDigitFont_0500', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0500 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_SelectedDigitFont_0500'); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0500 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0500 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0500 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0500 component obj.$attrs.selectedDigitFont is: " + + JSON.stringify(obj.$attrs.selectedDigitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0500 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.selectedFontSize).assertEqual("14.00fp"); + expect(obj2.selectedFontWeight).assertEqual("FontWeight.Normal"); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0500 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0500 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_SelectedDigitFont_0600 + * @tc.name Tests the selectedDigitFont property of the swiper component + * @tc.desc Set the selectedDigitFont property parameter to {size:"abc",weight:null} + */ + it('ArkUX_Stage_Swiper_SelectedDigitFont_0600', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0600 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_SelectedDigitFont_0600'); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0600 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0600 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0600 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0600 component obj.$attrs.selectedDigitFont is: " + + JSON.stringify(obj.$attrs.selectedDigitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0600 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.selectedFontSize).assertEqual("14.00fp"); + expect(obj2.selectedFontWeight).assertEqual("FontWeight.Normal"); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0600 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0600 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_SelectedDigitFont_0700 + * @tc.name Tests the selectedDigitFont property of the swiper component + * @tc.desc Set the selectedDigitFont property parameter to {size:"1000%",weight:""} + */ + it('ArkUX_Stage_Swiper_SelectedDigitFont_0700', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0700 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_SelectedDigitFont_0700'); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0700 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0700 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0700 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0700 component obj.$attrs.selectedDigitFont is: " + + JSON.stringify(obj.$attrs.selectedDigitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0700 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.selectedFontSize).assertEqual("1000.00%"); + expect(obj2.selectedFontWeight).assertEqual("FontWeight.Normal"); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0700 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0700 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_SelectedDigitFont_0800 + * @tc.name Tests the selectedDigitFont property of the swiper component + * @tc.desc Set the selectedDigitFont property parameter to {size:"100vp",weight:"adf@$5"} + */ + it('ArkUX_Stage_Swiper_SelectedDigitFont_0800', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0800 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_SelectedDigitFont_0800'); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0800 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0800 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0800 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0800 component obj.$attrs.selectedDigitFont is: " + + JSON.stringify(obj.$attrs.selectedDigitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0800 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.selectedFontSize).assertEqual("100.00vp"); + expect(obj2.selectedFontWeight).assertEqual("FontWeight.Normal"); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0800 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0800 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_SelectedDigitFont_0900 + * @tc.name Tests the selectedDigitFont property of the swiper component + * @tc.desc Set the selectedDigitFont property parameter to {size:10,weight:200}, + * and set the selectedDigitFont property parameter to {size:"40lpx",weight:500} again + */ + it('ArkUX_Stage_Swiper_SelectedDigitFont_0900', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0900 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_SelectedDigitFont_0900'); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0900 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0900 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0900 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0900 component obj.$attrs.selectedDigitFont is: " + + JSON.stringify(obj.$attrs.selectedDigitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0900 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.selectedFontSize).assertEqual("40.00lpx"); + expect(obj2.selectedFontWeight).assertEqual("FontWeight.500"); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0900 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0900 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_SelectedDigitFont_1000 + * @tc.name Tests the selectedDigitFont property of the swiper component + * @tc.desc Set the selectedDigitFont property parameter to {size:10,weight:500}, + * and set the selectedDigitFont property parameter to the exception value {size:"abc",weight:null} again + */ + it('ArkUX_Stage_Swiper_SelectedDigitFont_1000', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_1000 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_SelectedDigitFont_1000'); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_1000 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_1000 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_1000 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_1000 component obj.$attrs.selectedDigitFont is: " + + JSON.stringify(obj.$attrs.selectedDigitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_1000 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.selectedFontSize).assertEqual("14.00fp"); + expect(obj2.selectedFontWeight).assertEqual("FontWeight.Normal"); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_1000 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_1000 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_SelectedDigitFont_1100 + * @tc.name Tests the selectedDigitFont property of the swiper component + * @tc.desc Set the selectedDigitFont property parameter to {size:10,weight:600}, + * and set the general property size and layoutWeight property value to null + */ + it('ArkUX_Stage_Swiper_SelectedDigitFont_1100', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_1100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_SelectedDigitFont_1100'); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_1100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_1100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_1100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_1100 component obj.$attrs.selectedDigitFont is: " + + JSON.stringify(obj.$attrs.selectedDigitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_SelectedDigitFont_1100 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.selectedFontSize).assertEqual("10.00fp"); + expect(obj2.selectedFontWeight).assertEqual("FontWeight.600"); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_1100 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_SelectedDigitFont_1100 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_DigitFont_0100 + * @tc.name Tests the digitFont property of the swiper component + * @tc.desc Set the digitFont property parameter to {size:34,weight:"800"} + */ + it('ArkUX_Stage_Swiper_DigitFont_0100', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_DigitFont_0100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_DigitFont_0100'); + console.info('ArkUX_Stage_Swiper_DigitFont_0100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_DigitFont_0100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_DigitFont_0100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_DigitFont_0100 component obj.$attrs.digitFont is: " + + JSON.stringify(obj.$attrs.digitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_DigitFont_0100 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontSize).assertEqual("34.00fp"); + expect(obj2.fontWeight).assertEqual("FontWeight.800"); + console.info('ArkUX_Stage_Swiper_DigitFont_0100 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_DigitFont_0100 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_DigitFont_0200 + * @tc.name Tests the digitFont property of the swiper component + * @tc.desc Set the digitFont property parameter to {size:"20px",weight:200} + */ + it('ArkUX_Stage_Swiper_DigitFont_0200', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_DigitFont_0200 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_DigitFont_0200'); + console.info('ArkUX_Stage_Swiper_DigitFont_0200 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_DigitFont_0200 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_DigitFont_0200 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_DigitFont_0200 component obj.$attrs.digitFont is: " + + JSON.stringify(obj.$attrs.digitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_DigitFont_0200 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontSize).assertEqual("20.00px"); + expect(obj2.fontWeight).assertEqual("FontWeight.200"); + console.info('ArkUX_Stage_Swiper_DigitFont_0200 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_DigitFont_0200 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_DigitFont_0300 + * @tc.name Tests the digitFont property of the swiper component + * @tc.desc Set the digitFont property parameter to {size:"48%",weight:900} + */ + it('ArkUX_Stage_Swiper_DigitFont_0300', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_DigitFont_0300 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_DigitFont_0300'); + console.info('ArkUX_Stage_Swiper_DigitFont_0300 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_DigitFont_0300 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_DigitFont_0300 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_DigitFont_0300 component obj.$attrs.digitFont is: " + + JSON.stringify(obj.$attrs.digitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_DigitFont_0300 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontSize).assertEqual("48.00%"); + expect(obj2.fontWeight).assertEqual("FontWeight.900"); + console.info('ArkUX_Stage_Swiper_DigitFont_0300 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_DigitFont_0300 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_DigitFont_0400 + * @tc.name Tests the digitFont property of the swiper component + * @tc.desc Set the digitFont property parameter to {size:"",weight:FontWeight.Bolder} + */ + it('ArkUX_Stage_Swiper_DigitFont_0400', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_DigitFont_0400 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_DigitFont_0400'); + console.info('ArkUX_Stage_Swiper_DigitFont_0400 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_DigitFont_0400 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_DigitFont_0400 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_DigitFont_0400 component obj.$attrs.digitFont is: " + + JSON.stringify(obj.$attrs.digitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_DigitFont_0400 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontSize).assertEqual("14.00fp"); + expect(obj2.fontWeight).assertEqual("FontWeight.Bolder"); + console.info('ArkUX_Stage_Swiper_DigitFont_0400 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_DigitFont_0400 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_DigitFont_0500 + * @tc.name Tests the digitFont property of the swiper component + * @tc.desc Set the digitFont property parameter to {size:-2,weight:1000} + */ + it('ArkUX_Stage_Swiper_DigitFont_0500', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_DigitFont_0500 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_DigitFont_0500'); + console.info('ArkUX_Stage_Swiper_DigitFont_0500 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_DigitFont_0500 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_DigitFont_0500 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_DigitFont_0500 component obj.$attrs.digitFont is: " + + JSON.stringify(obj.$attrs.digitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_DigitFont_0500 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontSize).assertEqual("14.00fp"); + expect(obj2.fontWeight).assertEqual("FontWeight.Normal"); + console.info('ArkUX_Stage_Swiper_DigitFont_0500 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_DigitFont_0500 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_DigitFont_0600 + * @tc.name Tests the digitFont property of the swiper component + * @tc.desc Set the digitFont property parameter to {size:"abc",weight:null} + */ + it('ArkUX_Stage_Swiper_DigitFont_0600', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_DigitFont_0600 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_DigitFont_0600'); + console.info('ArkUX_Stage_Swiper_DigitFont_0600 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_DigitFont_0600 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_DigitFont_0600 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_DigitFont_0600 component obj.$attrs.digitFont is: " + + JSON.stringify(obj.$attrs.digitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_DigitFont_0600 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontSize).assertEqual("14.00fp"); + expect(obj2.fontWeight).assertEqual("FontWeight.Normal"); + console.info('ArkUX_Stage_Swiper_DigitFont_0600 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_DigitFont_0600 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_DigitFont_0700 + * @tc.name Tests the digitFont property of the swiper component + * @tc.desc Set the digitFont property parameter to {size:"1000%",weight:""} + */ + it('ArkUX_Stage_Swiper_DigitFont_0700', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_DigitFont_0700 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_DigitFont_0700'); + console.info('ArkUX_Stage_Swiper_DigitFont_0700 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_DigitFont_0700 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_DigitFont_0700 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_DigitFont_0700 component obj.$attrs.digitFont is: " + + JSON.stringify(obj.$attrs.digitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_DigitFont_0700 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontSize).assertEqual("1000.00%"); + expect(obj2.fontWeight).assertEqual("FontWeight.Normal"); + console.info('ArkUX_Stage_Swiper_DigitFont_0700 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_DigitFont_0700 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_DigitFont_0800 + * @tc.name Tests the digitFont property of the swiper component + * @tc.desc Set the digitFont property parameter to {size:"100vp",weight:"adf@$5"} + */ + it('ArkUX_Stage_Swiper_DigitFont_0800', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_DigitFont_0800 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_DigitFont_0800'); + console.info('ArkUX_Stage_Swiper_DigitFont_0800 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_DigitFont_0800 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_DigitFont_0800 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_DigitFont_0800 component obj.$attrs.digitFont is: " + + JSON.stringify(obj.$attrs.digitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_DigitFont_0800 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontSize).assertEqual("100.00vp"); + expect(obj2.fontWeight).assertEqual("FontWeight.Normal"); + console.info('ArkUX_Stage_Swiper_DigitFont_0800 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_DigitFont_0800 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_DigitFont_0900 + * @tc.name Tests the digitFont property of the swiper component + * @tc.desc Set the digitFont property parameter to {size:10,weight:200}, + * and set the digitFont property parameter to {size:"40lpx",weight:500} again + */ + it('ArkUX_Stage_Swiper_DigitFont_0900', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_DigitFont_0900 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_DigitFont_0900'); + console.info('ArkUX_Stage_Swiper_DigitFont_0900 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_DigitFont_0900 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_DigitFont_0900 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_DigitFont_0900 component obj.$attrs.digitFont is: " + + JSON.stringify(obj.$attrs.digitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_DigitFont_0900 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontSize).assertEqual("40.00lpx"); + expect(obj2.fontWeight).assertEqual("FontWeight.500"); + console.info('ArkUX_Stage_Swiper_DigitFont_0900 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_DigitFont_0900 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_DigitFont_1000 + * @tc.name Tests the digitFont property of the swiper component + * @tc.desc Set the digitFont property parameter to {size:10,weight:500}, + * and set the digitFont property parameter to the exception value {size:"abc",weight:null} again + */ + it('ArkUX_Stage_Swiper_DigitFont_1000', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_DigitFont_1000 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_DigitFont_1000'); + console.info('ArkUX_Stage_Swiper_DigitFont_1000 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_DigitFont_1000 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_DigitFont_1000 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_DigitFont_1000 component obj.$attrs.digitFont is: " + + JSON.stringify(obj.$attrs.digitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_DigitFont_1000 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontSize).assertEqual("14.00fp"); + expect(obj2.fontWeight).assertEqual("FontWeight.Normal"); + console.info('ArkUX_Stage_Swiper_DigitFont_1000 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_DigitFont_1000 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); + + /** + * @tc.number ArkUX_Stage_Swiper_DigitFont_1100 + * @tc.name Tests the digitFont property of the swiper component + * @tc.desc Set the digitFont property parameter to {size:10,weight:600}, + * and set the general property size and layoutWeight property value to null + */ + it('ArkUX_Stage_Swiper_DigitFont_1100', 0, async function (done) { + console.info('ArkUX_Stage_Swiper_DigitFont_1100 START'); + setTimeout(() => { + try { + let strJson = getInspectorByKey('ArkUX_Stage_Swiper_DigitFont_1100'); + console.info('ArkUX_Stage_Swiper_DigitFont_1100 START :' + JSON.stringify(strJson)); + let obj = JSON.parse(strJson); + console.info("ArkUX_Stage_Swiper_DigitFont_1100 component obj is: " + JSON.stringify(obj)); + console.info("ArkUX_Stage_Swiper_DigitFont_1100 component obj.$attrs is: " + + JSON.stringify(obj.$attrs)); + console.info("ArkUX_Stage_Swiper_DigitFont_1100 component obj.$attrs.digitFont is: " + + JSON.stringify(obj.$attrs.digitFont)); + let obj2 = JSON.parse(obj.$attrs.indicator); + console.info("ArkUX_Stage_Swiper_DigitFont_1100 component obj2 is: " + JSON.stringify(obj2)); + expect(obj2.fontSize).assertEqual("10.00fp"); + expect(obj2.fontWeight).assertEqual("FontWeight.600"); + console.info('ArkUX_Stage_Swiper_DigitFont_1100 END '); + done(); + } catch (err) { + expect().assertFail(); + console.info('ArkUX_Stage_Swiper_DigitFont_1100 ERR ' + JSON.stringify(err)); + done(); + } + }, 500) + }); }) } \ No newline at end of file