Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1bfbabfa
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
接近 2 年 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
1bfbabfa
编写于
3月 25, 2023
作者:
O
openharmony_ci
提交者:
Gitee
3月 25, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7973 Swiper 组件UX规格与特征动效整改(第三批)
Merge pull request !7973 from chensi10/master
上级
6eba4813
b95e554a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
1885 addition
and
0 deletion
+1885
-0
arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/TestAbility/pages/Index.ets
...component_swiper/src/main/ets/TestAbility/pages/Index.ets
+833
-0
arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/test/swiper.ets
..._ux/ace_ets_component_swiper/src/main/ets/test/swiper.ets
+1052
-0
未找到文件。
arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
1bfbabfa
...
...
@@ -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%')
...
...
arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/test/swiper.ets
浏览文件 @
1bfbabfa
...
...
@@ -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
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录