提交 f69e86d1 编写于 作者: S sunjiakun

IsShowBackground -> showBackground

Signed-off-by: Nsunjiakun <sunjiakun3@huawei.com>
上级 7ede3e8c
...@@ -66,7 +66,7 @@ struct SwiperExample { ...@@ -66,7 +66,7 @@ struct SwiperExample {
.duration(1000) .duration(1000)
.itemSpace(0) .itemSpace(0)
.displayArrow({ .displayArrow({
isShowBackground:true, showBackground:true,
isSidebarMiddle:true, isSidebarMiddle:true,
backgroundSize:24, backgroundSize:24,
backgroundColor:Color.White, backgroundColor:Color.White,
......
...@@ -40,7 +40,7 @@ export default function swiperTest() { ...@@ -40,7 +40,7 @@ export default function swiperTest() {
JSON.stringify(obj.$attrs.selectedItemWidth)); JSON.stringify(obj.$attrs.selectedItemWidth));
let obj2 = JSON.parse(obj.$attrs.indicator); let obj2 = JSON.parse(obj.$attrs.indicator);
console.info("ArkUX_Stage_Swiper_SelectedItemWidth_0100 component obj2 is: " + JSON.stringify(obj2.selectedItemWidth)); console.info("ArkUX_Stage_Swiper_SelectedItemWidth_0100 component obj2 is: " + JSON.stringify(obj2.selectedItemWidth));
expect(obj2.selectedItemWidth).assertEqual("5.00px"); expect(obj2.selectedItemWidth).assertEqual("5.00vp");
console.info('ArkUX_Stage_Swiper_SelectedItemWidth_0100 END '); console.info('ArkUX_Stage_Swiper_SelectedItemWidth_0100 END ');
done(); done();
} catch (err) { } catch (err) {
...@@ -280,7 +280,7 @@ export default function swiperTest() { ...@@ -280,7 +280,7 @@ export default function swiperTest() {
JSON.stringify(obj.$attrs.selectedItemHeight)); JSON.stringify(obj.$attrs.selectedItemHeight));
let obj2 = JSON.parse(obj.$attrs.indicator); let obj2 = JSON.parse(obj.$attrs.indicator);
console.info("ArkUX_Stage_Swiper_SelectedItemHeight_0100 component obj2 is: " + JSON.stringify(obj2)); console.info("ArkUX_Stage_Swiper_SelectedItemHeight_0100 component obj2 is: " + JSON.stringify(obj2));
expect(obj2.selectedItemHeight).assertEqual("3.00px"); expect(obj2.selectedItemHeight).assertEqual("3.00vp");
console.info('ArkUX_Stage_Swiper_SelectedItemHeight_0100 END '); console.info('ArkUX_Stage_Swiper_SelectedItemHeight_0100 END ');
done(); done();
} catch (err) { } catch (err) {
...@@ -520,7 +520,7 @@ export default function swiperTest() { ...@@ -520,7 +520,7 @@ export default function swiperTest() {
JSON.stringify(obj.$attrs.itemWidth)); JSON.stringify(obj.$attrs.itemWidth));
let obj2 = JSON.parse(obj.$attrs.indicator); let obj2 = JSON.parse(obj.$attrs.indicator);
console.info("ArkUX_Stage_Swiper_ItemWidth_0100 component obj2 is: " + JSON.stringify(obj2)); console.info("ArkUX_Stage_Swiper_ItemWidth_0100 component obj2 is: " + JSON.stringify(obj2));
expect(obj2.itemWidth).assertEqual("3.00px"); expect(obj2.itemWidth).assertEqual("3.00vp");
console.info('ArkUX_Stage_Swiper_ItemWidth_0100 END '); console.info('ArkUX_Stage_Swiper_ItemWidth_0100 END ');
done(); done();
} catch (err) { } catch (err) {
...@@ -730,7 +730,7 @@ export default function swiperTest() { ...@@ -730,7 +730,7 @@ export default function swiperTest() {
JSON.stringify(obj.$attrs.itemHeight)); JSON.stringify(obj.$attrs.itemHeight));
let obj2 = JSON.parse(obj.$attrs.indicator); let obj2 = JSON.parse(obj.$attrs.indicator);
console.info("ArkUX_Stage_Swiper_ItemHeight_0100 component obj2 is: " + JSON.stringify(obj2)); console.info("ArkUX_Stage_Swiper_ItemHeight_0100 component obj2 is: " + JSON.stringify(obj2));
expect(obj2.itemHeight).assertEqual("3.00px"); expect(obj2.itemHeight).assertEqual("3.00vp");
console.info('ArkUX_Stage_Swiper_ItemHeight_0100 END '); console.info('ArkUX_Stage_Swiper_ItemHeight_0100 END ');
done(); done();
} catch (err) { } catch (err) {
......
...@@ -99,138 +99,138 @@ export default function swiperSecTest() { ...@@ -99,138 +99,138 @@ export default function swiperSecTest() {
/** /**
* @tc.number ArkUX_Stage_Swiper_IsShowBackground_0100 * @tc.number ArkUX_Stage_Swiper_showBackground_0100
* @tc.name Tests whether baseboard is displayed in swiper arrow style * @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to true * @tc.desc Set the isShowBoard property parameter to true
*/ */
it('ArkUX_Stage_Swiper_IsShowBackground_0100', 0, async function () { it('ArkUX_Stage_Swiper_showBackground_0100', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true showBackground: true
} }
) )
let obj = JSON.parse(getInspectorByKey("SwiperA")) let obj = JSON.parse(getInspectorByKey("SwiperA"))
expect(obj.$attrs.isShowBackground).assertEqual("true") expect(obj.$attrs.showBackground).assertEqual("true")
}) })
/** /**
* @tc.number ArkUX_Stage_Swiper_IsShowBackground_0200 * @tc.number ArkUX_Stage_Swiper_showBackground_0200
* @tc.name Tests whether baseboard is displayed in swiper arrow style * @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to 1 * @tc.desc Set the isShowBoard property parameter to 1
*/ */
it('ArkUX_Stage_Swiper_IsShowBackground_0200', 0, async function () { it('ArkUX_Stage_Swiper_showBackground_0200', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: 1 showBackground: 1
} }
) )
let obj = JSON.parse(getInspectorByKey("SwiperA")) let obj = JSON.parse(getInspectorByKey("SwiperA"))
expect(obj.$attrs.isShowBackground).assertEqual("false") expect(obj.$attrs.showBackground).assertEqual("false")
}) })
/** /**
* @tc.number ArkUX_Stage_Swiper_IsShowBackground_0300 * @tc.number ArkUX_Stage_Swiper_showBackground_0300
* @tc.name Tests whether baseboard is displayed in swiper arrow style * @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to "true" * @tc.desc Set the isShowBoard property parameter to "true"
*/ */
it('ArkUX_Stage_Swiper_IsShowBackground_0300', 0, async function () { it('ArkUX_Stage_Swiper_showBackground_0300', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: "true" showBackground: "true"
} }
) )
let obj = JSON.parse(getInspectorByKey("SwiperA")) let obj = JSON.parse(getInspectorByKey("SwiperA"))
expect(obj.$attrs.isShowBackground).assertEqual("false") expect(obj.$attrs.showBackground).assertEqual("false")
}) })
/** /**
* @tc.number ArkUX_Stage_Swiper_IsShowBackground_0400 * @tc.number ArkUX_Stage_Swiper_showBackground_0400
* @tc.name Tests whether baseboard is displayed in swiper arrow style * @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to "false" * @tc.desc Set the isShowBoard property parameter to "false"
*/ */
it('ArkUX_Stage_Swiper_IsShowBackground_0400', 0, async function () { it('ArkUX_Stage_Swiper_showBackground_0400', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: "false", showBackground: "false",
} }
) )
let obj = JSON.parse(getInspectorByKey("SwiperA")) let obj = JSON.parse(getInspectorByKey("SwiperA"))
expect(obj.$attrs.isShowBackground).assertEqual("false") expect(obj.$attrs.showBackground).assertEqual("false")
}) })
/** /**
* @tc.number ArkUX_Stage_Swiper_IsShowBackground_0500 * @tc.number ArkUX_Stage_Swiper_showBackground_0500
* @tc.name Tests whether baseboard is displayed in swiper arrow style * @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to 0 * @tc.desc Set the isShowBoard property parameter to 0
*/ */
it('ArkUX_Stage_Swiper_IsShowBackground_0500', 0, async function () { it('ArkUX_Stage_Swiper_showBackground_0500', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: 0 showBackground: 0
} }
) )
let obj = JSON.parse(getInspectorByKey("SwiperA")) let obj = JSON.parse(getInspectorByKey("SwiperA"))
expect(obj.$attrs.isShowBackground).assertEqual("false") expect(obj.$attrs.showBackground).assertEqual("false")
}) })
/** /**
* @tc.number ArkUX_Stage_Swiper_IsShowBackground_0600 * @tc.number ArkUX_Stage_Swiper_showBackground_0600
* @tc.name Tests whether baseboard is displayed in swiper arrow style * @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to false * @tc.desc Set the isShowBoard property parameter to false
*/ */
it('ArkUX_Stage_Swiper_IsShowBackground_0600', 0, async function () { it('ArkUX_Stage_Swiper_showBackground_0600', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: false showBackground: false
} }
) )
let obj = JSON.parse(getInspectorByKey("SwiperA")) let obj = JSON.parse(getInspectorByKey("SwiperA"))
expect(obj.$attrs.isShowBackground).assertEqual("false") expect(obj.$attrs.showBackground).assertEqual("false")
}) })
/** /**
* @tc.number ArkUX_Stage_Swiper_IsShowBackground_0700 * @tc.number ArkUX_Stage_Swiper_showBackground_0700
* @tc.name Tests whether baseboard is displayed in swiper arrow style * @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to "" * @tc.desc Set the isShowBoard property parameter to ""
*/ */
it('ArkUX_Stage_Swiper_IsShowBackground_0700', 0, async function () { it('ArkUX_Stage_Swiper_showBackground_0700', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: "" showBackground: ""
} }
) )
let obj = JSON.parse(getInspectorByKey("SwiperA")) let obj = JSON.parse(getInspectorByKey("SwiperA"))
expect(obj.$attrs.isShowBackground).assertEqual("false") expect(obj.$attrs.showBackground).assertEqual("false")
}) })
/** /**
* @tc.number ArkUX_Stage_Swiper_IsShowBackground_0800 * @tc.number ArkUX_Stage_Swiper_showBackground_0800
* @tc.name Tests whether baseboard is displayed in swiper arrow style * @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to undefined * @tc.desc Set the isShowBoard property parameter to undefined
*/ */
it('ArkUX_Stage_Swiper_IsShowBackground_0800', 0, async function () { it('ArkUX_Stage_Swiper_showBackground_0800', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: undefined showBackground: undefined
} }
) )
let obj = JSON.parse(getInspectorByKey("SwiperA")) let obj = JSON.parse(getInspectorByKey("SwiperA"))
expect(obj.$attrs.isShowBackground).assertEqual("false") expect(obj.$attrs.showBackground).assertEqual("false")
}) })
/** /**
* @tc.number ArkUX_Stage_Swiper_IsShowBackground_0900 * @tc.number ArkUX_Stage_Swiper_showBackground_0900
* @tc.name Tests whether baseboard is displayed in swiper arrow style * @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to null * @tc.desc Set the isShowBoard property parameter to null
*/ */
it('ArkUX_Stage_Swiper_IsShowBackground_0900', 0, async function () { it('ArkUX_Stage_Swiper_showBackground_0900', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: null showBackground: null
} }
) )
let obj = JSON.parse(getInspectorByKey("SwiperA")) let obj = JSON.parse(getInspectorByKey("SwiperA"))
expect(obj.$attrs.isShowBackground).assertEqual("false") expect(obj.$attrs.showBackground).assertEqual("false")
}) })
/** /**
...@@ -290,7 +290,7 @@ export default function swiperSecTest() { ...@@ -290,7 +290,7 @@ export default function swiperSecTest() {
} }
) )
let obj = JSON.parse(getInspectorByKey("SwiperA")) let obj = JSON.parse(getInspectorByKey("SwiperA"))
expect(obj.$attrs.isShowBackground).assertEqual("false") expect(obj.$attrs.isSidebarMiddle).assertEqual("false")
}) })
/** /**
...@@ -335,7 +335,7 @@ export default function swiperSecTest() { ...@@ -335,7 +335,7 @@ export default function swiperSecTest() {
} }
) )
let obj = JSON.parse(getInspectorByKey("SwiperA")) let obj = JSON.parse(getInspectorByKey("SwiperA"))
expect(obj.$attrs.isShowBackground).assertEqual("false") expect(obj.$attrs.isSidebarMiddle).assertEqual("false")
}) })
/** /**
...@@ -376,7 +376,7 @@ export default function swiperSecTest() { ...@@ -376,7 +376,7 @@ export default function swiperSecTest() {
it('ArkUX_Stage_Swiper_BackgroundSize_0100', 0, async function () { it('ArkUX_Stage_Swiper_BackgroundSize_0100', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
backgroundSize: 34 backgroundSize: 34
} }
) )
...@@ -396,7 +396,7 @@ export default function swiperSecTest() { ...@@ -396,7 +396,7 @@ export default function swiperSecTest() {
it('ArkUX_Stage_Swiper_BackgroundSize_0200', 0, async function () { it('ArkUX_Stage_Swiper_BackgroundSize_0200', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
backgroundSize: "20px" backgroundSize: "20px"
} }
) )
...@@ -416,7 +416,7 @@ export default function swiperSecTest() { ...@@ -416,7 +416,7 @@ export default function swiperSecTest() {
it('ArkUX_Stage_Swiper_BackgroundSize_0300', 0, async function () { it('ArkUX_Stage_Swiper_BackgroundSize_0300', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
isSidebarMiddle: true, isSidebarMiddle: true,
backgroundSize: "48%" backgroundSize: "48%"
} }
...@@ -437,7 +437,7 @@ export default function swiperSecTest() { ...@@ -437,7 +437,7 @@ export default function swiperSecTest() {
it('ArkUX_Stage_Swiper_BackgroundSize_0400', 0, async function () { it('ArkUX_Stage_Swiper_BackgroundSize_0400', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
backgroundSize: "" backgroundSize: ""
} }
) )
...@@ -497,7 +497,7 @@ export default function swiperSecTest() { ...@@ -497,7 +497,7 @@ export default function swiperSecTest() {
it('ArkUX_Stage_Swiper_BackgroundSize_0700', 0, async function () { it('ArkUX_Stage_Swiper_BackgroundSize_0700', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
backgroundSize: "abc" backgroundSize: "abc"
} }
) )
...@@ -517,7 +517,7 @@ export default function swiperSecTest() { ...@@ -517,7 +517,7 @@ export default function swiperSecTest() {
it('ArkUX_Stage_Swiper_BackgroundSize_0800', 0, async function () { it('ArkUX_Stage_Swiper_BackgroundSize_0800', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
backgroundSize: "1000%" backgroundSize: "1000%"
} }
) )
...@@ -537,7 +537,7 @@ export default function swiperSecTest() { ...@@ -537,7 +537,7 @@ export default function swiperSecTest() {
it('ArkUX_Stage_Swiper_BackgroundSize_0900', 0, async function () { it('ArkUX_Stage_Swiper_BackgroundSize_0900', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
backgroundSize: "100fp" backgroundSize: "100fp"
} }
) )
...@@ -557,13 +557,13 @@ export default function swiperSecTest() { ...@@ -557,13 +557,13 @@ export default function swiperSecTest() {
it('ArkUX_Stage_Swiper_BackgroundSize_1000', 0, async function () { it('ArkUX_Stage_Swiper_BackgroundSize_1000', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
backgroundSize: 10 backgroundSize: 10
} }
) )
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
backgroundSize: "42lpx" backgroundSize: "42lpx"
} }
) )
...@@ -583,13 +583,13 @@ export default function swiperSecTest() { ...@@ -583,13 +583,13 @@ export default function swiperSecTest() {
it('ArkUX_Stage_Swiper_BackgroundSize_1100', 0, async function () { it('ArkUX_Stage_Swiper_BackgroundSize_1100', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
backgroundSize: 10 backgroundSize: 10
} }
) )
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
backgroundSize: "abc" backgroundSize: "abc"
} }
) )
...@@ -609,13 +609,13 @@ export default function swiperSecTest() { ...@@ -609,13 +609,13 @@ export default function swiperSecTest() {
it('ArkUX_Stage_Swiper_BackgroundSize_1200', 0, async function () { it('ArkUX_Stage_Swiper_BackgroundSize_1200', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
backgroundSize: "abc" backgroundSize: "abc"
} }
) )
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
backgroundSize: 10 backgroundSize: 10
} }
) )
...@@ -934,14 +934,14 @@ export default function swiperSecTest() { ...@@ -934,14 +934,14 @@ export default function swiperSecTest() {
/** /**
* @tc.number ArkUX_Stage_Swiper_ArrowSize_0100 * @tc.number ArkUX_Stage_Swiper_ArrowSize_0100
* @tc.name Tests the arrow size in the swiper arrow style * @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the isShowBackground property parameter to false and * @tc.desc Set the showBackground property parameter to false and
* backgroundSize property parameter to 12 and * backgroundSize property parameter to 12 and
* arrowSize property parameter to 34 * arrowSize property parameter to 34
*/ */
it('ArkUX_Stage_Swiper_ArrowSize_0100', 0, async function () { it('ArkUX_Stage_Swiper_ArrowSize_0100', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: false, showBackground: false,
backgroundSize: 12, backgroundSize: 12,
arrowSize: 34 arrowSize: 34
} }
...@@ -956,14 +956,14 @@ export default function swiperSecTest() { ...@@ -956,14 +956,14 @@ export default function swiperSecTest() {
/** /**
* @tc.number ArkUX_Stage_Swiper_ArrowSize_0200 * @tc.number ArkUX_Stage_Swiper_ArrowSize_0200
* @tc.name Tests the arrow size in the swiper arrow style * @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the isShowBackground property parameter to true and * @tc.desc Set the showBackground property parameter to true and
* backgroundSize property parameter to 12 and * backgroundSize property parameter to 12 and
* arrowSize property parameter to 34 * arrowSize property parameter to 34
*/ */
it('ArkUX_Stage_Swiper_ArrowSize_0200', 0, async function () { it('ArkUX_Stage_Swiper_ArrowSize_0200', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
backgroundSize: 12, backgroundSize: 12,
arrowSize: 34 arrowSize: 34
} }
...@@ -978,14 +978,14 @@ export default function swiperSecTest() { ...@@ -978,14 +978,14 @@ export default function swiperSecTest() {
/** /**
* @tc.number ArkUX_Stage_Swiper_ArrowSize_0300 * @tc.number ArkUX_Stage_Swiper_ArrowSize_0300
* @tc.name Tests the arrow size in the swiper arrow style * @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the isShowBackground property parameter to false and * @tc.desc Set the showBackground property parameter to false and
* isSidebarMiddle property parameter to false and * isSidebarMiddle property parameter to false and
* arrowSize property parameter to "20px" * arrowSize property parameter to "20px"
*/ */
it('ArkUX_Stage_Swiper_ArrowSize_0300', 0, async function () { it('ArkUX_Stage_Swiper_ArrowSize_0300', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: false, showBackground: false,
isSidebarMiddle: false, isSidebarMiddle: false,
arrowSize: "20px" arrowSize: "20px"
} }
...@@ -1000,14 +1000,14 @@ export default function swiperSecTest() { ...@@ -1000,14 +1000,14 @@ export default function swiperSecTest() {
/** /**
* @tc.number ArkUX_Stage_Swiper_ArrowSize_0400 * @tc.number ArkUX_Stage_Swiper_ArrowSize_0400
* @tc.name Tests the arrow size in the swiper arrow style * @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the isShowBackground property parameter to true and * @tc.desc Set the showBackground property parameter to true and
* isSidebarMiddle property parameter to true and * isSidebarMiddle property parameter to true and
* arrowSize property parameter to "20px" * arrowSize property parameter to "20px"
*/ */
it('ArkUX_Stage_Swiper_ArrowSize_0400', 0, async function () { it('ArkUX_Stage_Swiper_ArrowSize_0400', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
isSidebarMiddle: true, isSidebarMiddle: true,
arrowSize: "20px" arrowSize: "20px"
} }
...@@ -1022,14 +1022,14 @@ export default function swiperSecTest() { ...@@ -1022,14 +1022,14 @@ export default function swiperSecTest() {
/** /**
* @tc.number ArkUX_Stage_Swiper_ArrowSize_0500 * @tc.number ArkUX_Stage_Swiper_ArrowSize_0500
* @tc.name Tests the arrow size in the swiper arrow style * @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the isShowBackground property parameter to true and * @tc.desc Set the showBackground property parameter to true and
* isSidebarMiddle property parameter to false and * isSidebarMiddle property parameter to false and
* arrowSize property parameter to "20px" * arrowSize property parameter to "20px"
*/ */
it('ArkUX_Stage_Swiper_ArrowSize_0500', 0, async function () { it('ArkUX_Stage_Swiper_ArrowSize_0500', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: true, showBackground: true,
isSidebarMiddle: false, isSidebarMiddle: false,
arrowSize: "20px" arrowSize: "20px"
} }
...@@ -1081,7 +1081,7 @@ export default function swiperSecTest() { ...@@ -1081,7 +1081,7 @@ export default function swiperSecTest() {
* @tc.number ArkUX_Stage_Swiper_ArrowSize_0800 * @tc.number ArkUX_Stage_Swiper_ArrowSize_0800
* @tc.name Tests the arrow size in the swiper arrow style * @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the isSidebarMiddle property parameter to true and * @tc.desc Set the isSidebarMiddle property parameter to true and
* isShowBackground property parameter to true and * showBackground property parameter to true and
* backgroundSize property parameter to 12 and * backgroundSize property parameter to 12 and
* arrowSize property parameter to "-2" * arrowSize property parameter to "-2"
*/ */
...@@ -1089,7 +1089,7 @@ export default function swiperSecTest() { ...@@ -1089,7 +1089,7 @@ export default function swiperSecTest() {
await setArrowStyle( await setArrowStyle(
{ {
isSidebarMiddle: true, isSidebarMiddle: true,
isShowBackground: true, showBackground: true,
backgroundSize: 12, backgroundSize: 12,
arrowSize: "-2" arrowSize: "-2"
} }
...@@ -1105,7 +1105,7 @@ export default function swiperSecTest() { ...@@ -1105,7 +1105,7 @@ export default function swiperSecTest() {
* @tc.number ArkUX_Stage_Swiper_ArrowSize_0900 * @tc.number ArkUX_Stage_Swiper_ArrowSize_0900
* @tc.name Tests the arrow size in the swiper arrow style * @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the isSidebarMiddle property parameter to true and * @tc.desc Set the isSidebarMiddle property parameter to true and
* isShowBackground property parameter to false and * showBackground property parameter to false and
* backgroundSize property parameter to 12 and * backgroundSize property parameter to 12 and
* arrowSize property parameter to "-2" * arrowSize property parameter to "-2"
*/ */
...@@ -1113,7 +1113,7 @@ export default function swiperSecTest() { ...@@ -1113,7 +1113,7 @@ export default function swiperSecTest() {
await setArrowStyle( await setArrowStyle(
{ {
isSidebarMiddle: true, isSidebarMiddle: true,
isShowBackground: false, showBackground: false,
backgroundSize: 12, backgroundSize: 12,
arrowSize: "-2" arrowSize: "-2"
} }
...@@ -1128,7 +1128,7 @@ export default function swiperSecTest() { ...@@ -1128,7 +1128,7 @@ export default function swiperSecTest() {
/** /**
* @tc.number ArkUX_Stage_Swiper_ArrowSize_1000 * @tc.number ArkUX_Stage_Swiper_ArrowSize_1000
* @tc.name Tests the arrow size in the swiper arrow style * @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the isShowBackground property parameter to false and * @tc.desc Set the showBackground property parameter to false and
* isSidebarMiddle property parameter to false and * isSidebarMiddle property parameter to false and
* backgroundSize property parameter to 12 and * backgroundSize property parameter to 12 and
* arrowSize property parameter to "-2" * arrowSize property parameter to "-2"
...@@ -1136,7 +1136,7 @@ export default function swiperSecTest() { ...@@ -1136,7 +1136,7 @@ export default function swiperSecTest() {
it('ArkUX_Stage_Swiper_ArrowSize_1000', 0, async function () { it('ArkUX_Stage_Swiper_ArrowSize_1000', 0, async function () {
await setArrowStyle( await setArrowStyle(
{ {
isShowBackground: false, showBackground: false,
isSidebarMiddle: false, isSidebarMiddle: false,
backgroundSize: 12, backgroundSize: 12,
arrowSize: "-2" arrowSize: "-2"
...@@ -1680,7 +1680,7 @@ export default function swiperSecTest() { ...@@ -1680,7 +1680,7 @@ export default function swiperSecTest() {
*/ */
it('ArkUX_Stage_Swiper_NotSet_0100', 0, async function () { it('ArkUX_Stage_Swiper_NotSet_0100', 0, async function () {
let obj = JSON.parse(getInspectorByKey("SwiperD")) let obj = JSON.parse(getInspectorByKey("SwiperD"))
console.info('ArkUX_Stage_Swiper_NotSet_0100 isShowBackground :' + JSON.stringify(obj.$attrs.isShowBackground)); console.info('ArkUX_Stage_Swiper_NotSet_0100 showBackground :' + JSON.stringify(obj.$attrs.showBackground));
console.info('ArkUX_Stage_Swiper_NotSet_0100 isSidebarMiddle :' + JSON.stringify(obj.$attrs.isSidebarMiddle)); console.info('ArkUX_Stage_Swiper_NotSet_0100 isSidebarMiddle :' + JSON.stringify(obj.$attrs.isSidebarMiddle));
console.info('ArkUX_Stage_Swiper_NotSet_0100 backgroundSize :' + JSON.stringify(obj.$attrs.arrowBackgroundSize)); console.info('ArkUX_Stage_Swiper_NotSet_0100 backgroundSize :' + JSON.stringify(obj.$attrs.arrowBackgroundSize));
console.info('ArkUX_Stage_Swiper_NotSet_0100 backgroundColor :' + JSON.stringify(obj.$attrs.arrowBackgroundColor)); console.info('ArkUX_Stage_Swiper_NotSet_0100 backgroundColor :' + JSON.stringify(obj.$attrs.arrowBackgroundColor));
...@@ -1694,7 +1694,7 @@ export default function swiperSecTest() { ...@@ -1694,7 +1694,7 @@ export default function swiperSecTest() {
let arrowSize = obj.$attrs.arrowSize; let arrowSize = obj.$attrs.arrowSize;
expect(parseFloat(arrowSize)).assertEqual(18) expect(parseFloat(arrowSize)).assertEqual(18)
expect(arrowSize.substr(arrowSize.length-2, 2)).assertEqual("vp") expect(arrowSize.substr(arrowSize.length-2, 2)).assertEqual("vp")
expect(obj.$attrs.isShowBackground).assertEqual("false") expect(obj.$attrs.showBackground).assertEqual("false")
expect(obj.$attrs.isSidebarMiddle).assertEqual("false") expect(obj.$attrs.isSidebarMiddle).assertEqual("false")
expect(obj.$attrs.arrowBackgroundColor).assertEqual("#00000000") expect(obj.$attrs.arrowBackgroundColor).assertEqual("#00000000")
expect(obj.$attrs.arrowColor).assertEqual(obj.$attrs.foregroundColor) expect(obj.$attrs.arrowColor).assertEqual(obj.$attrs.foregroundColor)
...@@ -1709,7 +1709,7 @@ export default function swiperSecTest() { ...@@ -1709,7 +1709,7 @@ export default function swiperSecTest() {
*/ */
it('ArkUX_Stage_Swiper_NotSet_0200', 0, async function () { it('ArkUX_Stage_Swiper_NotSet_0200', 0, async function () {
let obj = JSON.parse(getInspectorByKey("SwiperE")) let obj = JSON.parse(getInspectorByKey("SwiperE"))
console.info('ArkUX_Stage_Swiper_NotSet_0200 isShowBackground :' + JSON.stringify(obj.$attrs.isShowBackground)); console.info('ArkUX_Stage_Swiper_NotSet_0200 showBackground :' + JSON.stringify(obj.$attrs.showBackground));
console.info('ArkUX_Stage_Swiper_NotSet_0200 isSidebarMiddle :' + JSON.stringify(obj.$attrs.isSidebarMiddle)); console.info('ArkUX_Stage_Swiper_NotSet_0200 isSidebarMiddle :' + JSON.stringify(obj.$attrs.isSidebarMiddle));
console.info('ArkUX_Stage_Swiper_NotSet_0200 backgroundSize :' + JSON.stringify(obj.$attrs.arrowBackgroundSize)); console.info('ArkUX_Stage_Swiper_NotSet_0200 backgroundSize :' + JSON.stringify(obj.$attrs.arrowBackgroundSize));
console.info('ArkUX_Stage_Swiper_NotSet_0200 backgroundColor :' + JSON.stringify(obj.$attrs.arrowBackgroundColor)); console.info('ArkUX_Stage_Swiper_NotSet_0200 backgroundColor :' + JSON.stringify(obj.$attrs.arrowBackgroundColor));
...@@ -1723,7 +1723,7 @@ export default function swiperSecTest() { ...@@ -1723,7 +1723,7 @@ export default function swiperSecTest() {
let arrowSize = obj.$attrs.arrowSize; let arrowSize = obj.$attrs.arrowSize;
expect(parseFloat(arrowSize)).assertEqual(18) expect(parseFloat(arrowSize)).assertEqual(18)
expect(arrowSize.substr(arrowSize.length-2, 2)).assertEqual("vp") expect(arrowSize.substr(arrowSize.length-2, 2)).assertEqual("vp")
expect(obj.$attrs.isShowBackground).assertEqual("false") expect(obj.$attrs.showBackground).assertEqual("false")
expect(obj.$attrs.isSidebarMiddle).assertEqual("false") expect(obj.$attrs.isSidebarMiddle).assertEqual("false")
expect(obj.$attrs.arrowBackgroundColor).assertEqual("#00000000") expect(obj.$attrs.arrowBackgroundColor).assertEqual("#00000000")
expect(obj.$attrs.arrowColor).assertEqual(obj.$attrs.foregroundColor) expect(obj.$attrs.arrowColor).assertEqual(obj.$attrs.foregroundColor)
...@@ -1738,7 +1738,7 @@ export default function swiperSecTest() { ...@@ -1738,7 +1738,7 @@ export default function swiperSecTest() {
*/ */
it('ArkUX_Stage_Swiper_NotSet_0300', 0, async function () { it('ArkUX_Stage_Swiper_NotSet_0300', 0, async function () {
let obj = JSON.parse(getInspectorByKey("SwiperF")) let obj = JSON.parse(getInspectorByKey("SwiperF"))
console.info('ArkUX_Stage_Swiper_NotSet_0300 isShowBackground :' + JSON.stringify(obj.$attrs.isShowBackground)); console.info('ArkUX_Stage_Swiper_NotSet_0300 showBackground :' + JSON.stringify(obj.$attrs.showBackground));
console.info('ArkUX_Stage_Swiper_NotSet_0300 isSidebarMiddle :' + JSON.stringify(obj.$attrs.isSidebarMiddle)); console.info('ArkUX_Stage_Swiper_NotSet_0300 isSidebarMiddle :' + JSON.stringify(obj.$attrs.isSidebarMiddle));
console.info('ArkUX_Stage_Swiper_NotSet_0300 backgroundSize :' + JSON.stringify(obj.$attrs.arrowBackgroundSize)); console.info('ArkUX_Stage_Swiper_NotSet_0300 backgroundSize :' + JSON.stringify(obj.$attrs.arrowBackgroundSize));
console.info('ArkUX_Stage_Swiper_NotSet_0300 backgroundColor :' + JSON.stringify(obj.$attrs.arrowBackgroundColor)); console.info('ArkUX_Stage_Swiper_NotSet_0300 backgroundColor :' + JSON.stringify(obj.$attrs.arrowBackgroundColor));
...@@ -1752,7 +1752,7 @@ export default function swiperSecTest() { ...@@ -1752,7 +1752,7 @@ export default function swiperSecTest() {
let arrowSize = obj.$attrs.arrowSize; let arrowSize = obj.$attrs.arrowSize;
expect(parseFloat(arrowSize)).assertEqual(0) expect(parseFloat(arrowSize)).assertEqual(0)
expect(arrowSize.substr(arrowSize.length-2, 2)).assertEqual("vp") expect(arrowSize.substr(arrowSize.length-2, 2)).assertEqual("vp")
expect(obj.$attrs.isShowBackground).assertEqual("false") expect(obj.$attrs.showBackground).assertEqual("false")
expect(obj.$attrs.isSidebarMiddle).assertEqual("false") expect(obj.$attrs.isSidebarMiddle).assertEqual("false")
expect(obj.$attrs.arrowBackgroundColor).assertEqual("#00000000") expect(obj.$attrs.arrowBackgroundColor).assertEqual("#00000000")
expect(obj.$attrs.arrowColor).assertEqual("#00000000") expect(obj.$attrs.arrowColor).assertEqual("#00000000")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册