提交 23da4ae8 编写于 作者: S sunjiakun

swiper 数字导航点字体设置百分比使用主题字体大小

Signed-off-by: Nsunjiakun <sunjiakun3@huawei.com>
上级 b0c7d812
...@@ -1730,7 +1730,7 @@ export default function swiperTest() { ...@@ -1730,7 +1730,7 @@ export default function swiperTest() {
JSON.stringify(obj.$attrs.selectedDigitFont)); JSON.stringify(obj.$attrs.selectedDigitFont));
let obj2 = JSON.parse(obj.$attrs.indicator); let obj2 = JSON.parse(obj.$attrs.indicator);
console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0300 component obj2 is: " + JSON.stringify(obj2)); console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0300 component obj2 is: " + JSON.stringify(obj2));
expect(obj2.selectedFontSize).assertEqual("48.00%"); expect(obj2.selectedFontSize).assertEqual("14.00fp");
expect(obj2.selectedFontWeight).assertEqual("900"); expect(obj2.selectedFontWeight).assertEqual("900");
console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0300 END '); console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0300 END ');
done(); done();
...@@ -1854,7 +1854,7 @@ export default function swiperTest() { ...@@ -1854,7 +1854,7 @@ export default function swiperTest() {
JSON.stringify(obj.$attrs.selectedDigitFont)); JSON.stringify(obj.$attrs.selectedDigitFont));
let obj2 = JSON.parse(obj.$attrs.indicator); let obj2 = JSON.parse(obj.$attrs.indicator);
console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0700 component obj2 is: " + JSON.stringify(obj2)); console.info("ArkUX_Stage_Swiper_SelectedDigitFont_0700 component obj2 is: " + JSON.stringify(obj2));
expect(obj2.selectedFontSize).assertEqual("1000.00%"); expect(obj2.selectedFontSize).assertEqual("14.00fp");
expect(obj2.selectedFontWeight).assertEqual("FontWeight.Normal"); expect(obj2.selectedFontWeight).assertEqual("FontWeight.Normal");
console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0700 END '); console.info('ArkUX_Stage_Swiper_SelectedDigitFont_0700 END ');
done(); done();
...@@ -2074,7 +2074,7 @@ export default function swiperTest() { ...@@ -2074,7 +2074,7 @@ export default function swiperTest() {
JSON.stringify(obj.$attrs.digitFont)); JSON.stringify(obj.$attrs.digitFont));
let obj2 = JSON.parse(obj.$attrs.indicator); let obj2 = JSON.parse(obj.$attrs.indicator);
console.info("ArkUX_Stage_Swiper_DigitFont_0300 component obj2 is: " + JSON.stringify(obj2)); console.info("ArkUX_Stage_Swiper_DigitFont_0300 component obj2 is: " + JSON.stringify(obj2));
expect(obj2.fontSize).assertEqual("48.00%"); expect(obj2.fontSize).assertEqual("14.00fp");
expect(obj2.fontWeight).assertEqual("900"); expect(obj2.fontWeight).assertEqual("900");
console.info('ArkUX_Stage_Swiper_DigitFont_0300 END '); console.info('ArkUX_Stage_Swiper_DigitFont_0300 END ');
done(); done();
...@@ -2198,7 +2198,7 @@ export default function swiperTest() { ...@@ -2198,7 +2198,7 @@ export default function swiperTest() {
JSON.stringify(obj.$attrs.digitFont)); JSON.stringify(obj.$attrs.digitFont));
let obj2 = JSON.parse(obj.$attrs.indicator); let obj2 = JSON.parse(obj.$attrs.indicator);
console.info("ArkUX_Stage_Swiper_DigitFont_0700 component obj2 is: " + JSON.stringify(obj2)); console.info("ArkUX_Stage_Swiper_DigitFont_0700 component obj2 is: " + JSON.stringify(obj2));
expect(obj2.fontSize).assertEqual("1000.00%"); expect(obj2.fontSize).assertEqual("14.00fp");
expect(obj2.fontWeight).assertEqual("FontWeight.Normal"); expect(obj2.fontWeight).assertEqual("FontWeight.Normal");
console.info('ArkUX_Stage_Swiper_DigitFont_0700 END '); console.info('ArkUX_Stage_Swiper_DigitFont_0700 END ');
done(); done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册