Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f69e86d1
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
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看板
提交
f69e86d1
编写于
7月 27, 2023
作者:
S
sunjiakun
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
IsShowBackground -> showBackground
Signed-off-by:
N
sunjiakun
<
sunjiakun3@huawei.com
>
上级
7ede3e8c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
79 addition
and
79 deletion
+79
-79
arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/swipe_add.ets
...ent_ui/entry/src/main/ets/MainAbility/pages/swipe_add.ets
+1
-1
arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/test/List.test.ets
.../ace_ets_component_swiper/src/main/ets/test/List.test.ets
+1
-1
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
+4
-4
arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/test/swipersec.ets
.../ace_ets_component_swiper/src/main/ets/test/swipersec.ets
+73
-73
未找到文件。
arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/swipe_add.ets
浏览文件 @
f69e86d1
...
...
@@ -66,7 +66,7 @@ struct SwiperExample {
.duration(1000)
.itemSpace(0)
.displayArrow({
isS
howBackground:true,
s
howBackground:true,
isSidebarMiddle:true,
backgroundSize:24,
backgroundColor:Color.White,
...
...
arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/test/List.test.ets
浏览文件 @
f69e86d1
...
...
@@ -16,6 +16,6 @@ import swiperTest from './swiper'
import swiperSecTest from './swipersec'
export default function testsuite() {
swiperTest()
swiperTest()
swiperSecTest()
}
\ No newline at end of file
arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/test/swiper.ets
浏览文件 @
f69e86d1
...
...
@@ -40,7 +40,7 @@ export default function swiperTest() {
JSON.stringify(obj.$attrs.selectedItemWidth));
let obj2 = JSON.parse(obj.$attrs.indicator);
console.info("ArkUX_Stage_Swiper_SelectedItemWidth_0100 component obj2 is: " + JSON.stringify(obj2.selectedItemWidth));
expect(obj2.selectedItemWidth).assertEqual("5.00
px
");
expect(obj2.selectedItemWidth).assertEqual("5.00
vp
");
console.info('ArkUX_Stage_Swiper_SelectedItemWidth_0100 END ');
done();
} catch (err) {
...
...
@@ -280,7 +280,7 @@ export default function swiperTest() {
JSON.stringify(obj.$attrs.selectedItemHeight));
let obj2 = JSON.parse(obj.$attrs.indicator);
console.info("ArkUX_Stage_Swiper_SelectedItemHeight_0100 component obj2 is: " + JSON.stringify(obj2));
expect(obj2.selectedItemHeight).assertEqual("3.00
px
");
expect(obj2.selectedItemHeight).assertEqual("3.00
vp
");
console.info('ArkUX_Stage_Swiper_SelectedItemHeight_0100 END ');
done();
} catch (err) {
...
...
@@ -520,7 +520,7 @@ export default function swiperTest() {
JSON.stringify(obj.$attrs.itemWidth));
let obj2 = JSON.parse(obj.$attrs.indicator);
console.info("ArkUX_Stage_Swiper_ItemWidth_0100 component obj2 is: " + JSON.stringify(obj2));
expect(obj2.itemWidth).assertEqual("3.00
px
");
expect(obj2.itemWidth).assertEqual("3.00
vp
");
console.info('ArkUX_Stage_Swiper_ItemWidth_0100 END ');
done();
} catch (err) {
...
...
@@ -730,7 +730,7 @@ export default function swiperTest() {
JSON.stringify(obj.$attrs.itemHeight));
let obj2 = JSON.parse(obj.$attrs.indicator);
console.info("ArkUX_Stage_Swiper_ItemHeight_0100 component obj2 is: " + JSON.stringify(obj2));
expect(obj2.itemHeight).assertEqual("3.00
px
");
expect(obj2.itemHeight).assertEqual("3.00
vp
");
console.info('ArkUX_Stage_Swiper_ItemHeight_0100 END ');
done();
} catch (err) {
...
...
arkui/ace_ets_components_ux/ace_ets_component_swiper/src/main/ets/test/swipersec.ets
浏览文件 @
f69e86d1
...
...
@@ -99,138 +99,138 @@ export default function swiperSecTest() {
/**
* @tc.number ArkUX_Stage_Swiper_
IsS
howBackground_0100
* @tc.number ArkUX_Stage_Swiper_
s
howBackground_0100
* @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to true
*/
it
(
'ArkUX_Stage_Swiper_
IsS
howBackground_0100'
,
0
,
async
function
()
{
it
(
'ArkUX_Stage_Swiper_
s
howBackground_0100'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
true
s
howBackground
:
true
}
)
let
obj
=
JSON
.
parse
(
getInspectorByKey
(
"SwiperA"
))
expect
(
obj
.
$attrs
.
isS
howBackground
)
.
assertEqual
(
"true"
)
expect
(
obj
.
$attrs
.
s
howBackground
)
.
assertEqual
(
"true"
)
})
/**
* @tc.number ArkUX_Stage_Swiper_
IsS
howBackground_0200
* @tc.number ArkUX_Stage_Swiper_
s
howBackground_0200
* @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to 1
*/
it
(
'ArkUX_Stage_Swiper_
IsS
howBackground_0200'
,
0
,
async
function
()
{
it
(
'ArkUX_Stage_Swiper_
s
howBackground_0200'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
1
s
howBackground
:
1
}
)
let
obj
=
JSON
.
parse
(
getInspectorByKey
(
"SwiperA"
))
expect
(
obj
.
$attrs
.
isS
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
s
howBackground
)
.
assertEqual
(
"false"
)
})
/**
* @tc.number ArkUX_Stage_Swiper_
IsS
howBackground_0300
* @tc.number ArkUX_Stage_Swiper_
s
howBackground_0300
* @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to "true"
*/
it
(
'ArkUX_Stage_Swiper_
IsS
howBackground_0300'
,
0
,
async
function
()
{
it
(
'ArkUX_Stage_Swiper_
s
howBackground_0300'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
"true"
s
howBackground
:
"true"
}
)
let
obj
=
JSON
.
parse
(
getInspectorByKey
(
"SwiperA"
))
expect
(
obj
.
$attrs
.
isS
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
s
howBackground
)
.
assertEqual
(
"false"
)
})
/**
* @tc.number ArkUX_Stage_Swiper_
IsS
howBackground_0400
* @tc.number ArkUX_Stage_Swiper_
s
howBackground_0400
* @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to "false"
*/
it
(
'ArkUX_Stage_Swiper_
IsS
howBackground_0400'
,
0
,
async
function
()
{
it
(
'ArkUX_Stage_Swiper_
s
howBackground_0400'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
"false"
,
s
howBackground
:
"false"
,
}
)
let
obj
=
JSON
.
parse
(
getInspectorByKey
(
"SwiperA"
))
expect
(
obj
.
$attrs
.
isS
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
s
howBackground
)
.
assertEqual
(
"false"
)
})
/**
* @tc.number ArkUX_Stage_Swiper_
IsS
howBackground_0500
* @tc.number ArkUX_Stage_Swiper_
s
howBackground_0500
* @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to 0
*/
it
(
'ArkUX_Stage_Swiper_
IsS
howBackground_0500'
,
0
,
async
function
()
{
it
(
'ArkUX_Stage_Swiper_
s
howBackground_0500'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
0
s
howBackground
:
0
}
)
let
obj
=
JSON
.
parse
(
getInspectorByKey
(
"SwiperA"
))
expect
(
obj
.
$attrs
.
isS
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
s
howBackground
)
.
assertEqual
(
"false"
)
})
/**
* @tc.number ArkUX_Stage_Swiper_
IsS
howBackground_0600
* @tc.number ArkUX_Stage_Swiper_
s
howBackground_0600
* @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to false
*/
it
(
'ArkUX_Stage_Swiper_
IsS
howBackground_0600'
,
0
,
async
function
()
{
it
(
'ArkUX_Stage_Swiper_
s
howBackground_0600'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
false
s
howBackground
:
false
}
)
let
obj
=
JSON
.
parse
(
getInspectorByKey
(
"SwiperA"
))
expect
(
obj
.
$attrs
.
isS
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
s
howBackground
)
.
assertEqual
(
"false"
)
})
/**
* @tc.number ArkUX_Stage_Swiper_
IsS
howBackground_0700
* @tc.number ArkUX_Stage_Swiper_
s
howBackground_0700
* @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to ""
*/
it
(
'ArkUX_Stage_Swiper_
IsS
howBackground_0700'
,
0
,
async
function
()
{
it
(
'ArkUX_Stage_Swiper_
s
howBackground_0700'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
""
s
howBackground
:
""
}
)
let
obj
=
JSON
.
parse
(
getInspectorByKey
(
"SwiperA"
))
expect
(
obj
.
$attrs
.
isS
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
s
howBackground
)
.
assertEqual
(
"false"
)
})
/**
* @tc.number ArkUX_Stage_Swiper_
IsS
howBackground_0800
* @tc.number ArkUX_Stage_Swiper_
s
howBackground_0800
* @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to undefined
*/
it
(
'ArkUX_Stage_Swiper_
IsS
howBackground_0800'
,
0
,
async
function
()
{
it
(
'ArkUX_Stage_Swiper_
s
howBackground_0800'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
undefined
s
howBackground
:
undefined
}
)
let
obj
=
JSON
.
parse
(
getInspectorByKey
(
"SwiperA"
))
expect
(
obj
.
$attrs
.
isS
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
s
howBackground
)
.
assertEqual
(
"false"
)
})
/**
* @tc.number ArkUX_Stage_Swiper_
IsS
howBackground_0900
* @tc.number ArkUX_Stage_Swiper_
s
howBackground_0900
* @tc.name Tests whether baseboard is displayed in swiper arrow style
* @tc.desc Set the isShowBoard property parameter to null
*/
it
(
'ArkUX_Stage_Swiper_
IsS
howBackground_0900'
,
0
,
async
function
()
{
it
(
'ArkUX_Stage_Swiper_
s
howBackground_0900'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
null
s
howBackground
:
null
}
)
let
obj
=
JSON
.
parse
(
getInspectorByKey
(
"SwiperA"
))
expect
(
obj
.
$attrs
.
isS
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
s
howBackground
)
.
assertEqual
(
"false"
)
})
/**
...
...
@@ -290,7 +290,7 @@ export default function swiperSecTest() {
}
)
let
obj
=
JSON
.
parse
(
getInspectorByKey
(
"SwiperA"
))
expect
(
obj
.
$attrs
.
isS
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
isS
idebarMiddle
)
.
assertEqual
(
"false"
)
})
/**
...
...
@@ -335,7 +335,7 @@ export default function swiperSecTest() {
}
)
let
obj
=
JSON
.
parse
(
getInspectorByKey
(
"SwiperA"
))
expect
(
obj
.
$attrs
.
isS
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
isS
idebarMiddle
)
.
assertEqual
(
"false"
)
})
/**
...
...
@@ -376,7 +376,7 @@ export default function swiperSecTest() {
it
(
'ArkUX_Stage_Swiper_BackgroundSize_0100'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
backgroundSize
:
34
}
)
...
...
@@ -396,7 +396,7 @@ export default function swiperSecTest() {
it
(
'ArkUX_Stage_Swiper_BackgroundSize_0200'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
backgroundSize
:
"20px"
}
)
...
...
@@ -416,7 +416,7 @@ export default function swiperSecTest() {
it
(
'ArkUX_Stage_Swiper_BackgroundSize_0300'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
isSidebarMiddle
:
true
,
backgroundSize
:
"48%"
}
...
...
@@ -437,7 +437,7 @@ export default function swiperSecTest() {
it
(
'ArkUX_Stage_Swiper_BackgroundSize_0400'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
backgroundSize
:
""
}
)
...
...
@@ -497,7 +497,7 @@ export default function swiperSecTest() {
it
(
'ArkUX_Stage_Swiper_BackgroundSize_0700'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
backgroundSize
:
"abc"
}
)
...
...
@@ -517,7 +517,7 @@ export default function swiperSecTest() {
it
(
'ArkUX_Stage_Swiper_BackgroundSize_0800'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
backgroundSize
:
"1000%"
}
)
...
...
@@ -537,7 +537,7 @@ export default function swiperSecTest() {
it
(
'ArkUX_Stage_Swiper_BackgroundSize_0900'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
backgroundSize
:
"100fp"
}
)
...
...
@@ -557,13 +557,13 @@ export default function swiperSecTest() {
it
(
'ArkUX_Stage_Swiper_BackgroundSize_1000'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
backgroundSize
:
10
}
)
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
backgroundSize
:
"42lpx"
}
)
...
...
@@ -583,13 +583,13 @@ export default function swiperSecTest() {
it
(
'ArkUX_Stage_Swiper_BackgroundSize_1100'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
backgroundSize
:
10
}
)
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
backgroundSize
:
"abc"
}
)
...
...
@@ -609,13 +609,13 @@ export default function swiperSecTest() {
it
(
'ArkUX_Stage_Swiper_BackgroundSize_1200'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
backgroundSize
:
"abc"
}
)
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
backgroundSize
:
10
}
)
...
...
@@ -934,14 +934,14 @@ export default function swiperSecTest() {
/**
* @tc.number ArkUX_Stage_Swiper_ArrowSize_0100
* @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the
isS
howBackground property parameter to false and
* @tc.desc Set the
s
howBackground property parameter to false and
* backgroundSize property parameter to 12 and
* arrowSize property parameter to 34
*/
it
(
'ArkUX_Stage_Swiper_ArrowSize_0100'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
false
,
s
howBackground
:
false
,
backgroundSize
:
12
,
arrowSize
:
34
}
...
...
@@ -956,14 +956,14 @@ export default function swiperSecTest() {
/**
* @tc.number ArkUX_Stage_Swiper_ArrowSize_0200
* @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the
isS
howBackground property parameter to true and
* @tc.desc Set the
s
howBackground property parameter to true and
* backgroundSize property parameter to 12 and
* arrowSize property parameter to 34
*/
it
(
'ArkUX_Stage_Swiper_ArrowSize_0200'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
backgroundSize
:
12
,
arrowSize
:
34
}
...
...
@@ -978,14 +978,14 @@ export default function swiperSecTest() {
/**
* @tc.number ArkUX_Stage_Swiper_ArrowSize_0300
* @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the
isS
howBackground property parameter to false and
* @tc.desc Set the
s
howBackground property parameter to false and
* isSidebarMiddle property parameter to false and
* arrowSize property parameter to "20px"
*/
it
(
'ArkUX_Stage_Swiper_ArrowSize_0300'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
false
,
s
howBackground
:
false
,
isSidebarMiddle
:
false
,
arrowSize
:
"20px"
}
...
...
@@ -1000,14 +1000,14 @@ export default function swiperSecTest() {
/**
* @tc.number ArkUX_Stage_Swiper_ArrowSize_0400
* @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the
isS
howBackground property parameter to true and
* @tc.desc Set the
s
howBackground property parameter to true and
* isSidebarMiddle property parameter to true and
* arrowSize property parameter to "20px"
*/
it
(
'ArkUX_Stage_Swiper_ArrowSize_0400'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
isSidebarMiddle
:
true
,
arrowSize
:
"20px"
}
...
...
@@ -1022,14 +1022,14 @@ export default function swiperSecTest() {
/**
* @tc.number ArkUX_Stage_Swiper_ArrowSize_0500
* @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the
isS
howBackground property parameter to true and
* @tc.desc Set the
s
howBackground property parameter to true and
* isSidebarMiddle property parameter to false and
* arrowSize property parameter to "20px"
*/
it
(
'ArkUX_Stage_Swiper_ArrowSize_0500'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
true
,
s
howBackground
:
true
,
isSidebarMiddle
:
false
,
arrowSize
:
"20px"
}
...
...
@@ -1081,7 +1081,7 @@ export default function swiperSecTest() {
* @tc.number ArkUX_Stage_Swiper_ArrowSize_0800
* @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the isSidebarMiddle property parameter to true and
*
isS
howBackground property parameter to true and
*
s
howBackground property parameter to true and
* backgroundSize property parameter to 12 and
* arrowSize property parameter to "-2"
*/
...
...
@@ -1089,7 +1089,7 @@ export default function swiperSecTest() {
await
setArrowStyle
(
{
isSidebarMiddle
:
true
,
isS
howBackground
:
true
,
s
howBackground
:
true
,
backgroundSize
:
12
,
arrowSize
:
"-2"
}
...
...
@@ -1105,7 +1105,7 @@ export default function swiperSecTest() {
* @tc.number ArkUX_Stage_Swiper_ArrowSize_0900
* @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the isSidebarMiddle property parameter to true and
*
isS
howBackground property parameter to false and
*
s
howBackground property parameter to false and
* backgroundSize property parameter to 12 and
* arrowSize property parameter to "-2"
*/
...
...
@@ -1113,7 +1113,7 @@ export default function swiperSecTest() {
await
setArrowStyle
(
{
isSidebarMiddle
:
true
,
isS
howBackground
:
false
,
s
howBackground
:
false
,
backgroundSize
:
12
,
arrowSize
:
"-2"
}
...
...
@@ -1128,7 +1128,7 @@ export default function swiperSecTest() {
/**
* @tc.number ArkUX_Stage_Swiper_ArrowSize_1000
* @tc.name Tests the arrow size in the swiper arrow style
* @tc.desc Set the
isS
howBackground property parameter to false and
* @tc.desc Set the
s
howBackground property parameter to false and
* isSidebarMiddle property parameter to false and
* backgroundSize property parameter to 12 and
* arrowSize property parameter to "-2"
...
...
@@ -1136,7 +1136,7 @@ export default function swiperSecTest() {
it
(
'ArkUX_Stage_Swiper_ArrowSize_1000'
,
0
,
async
function
()
{
await
setArrowStyle
(
{
isS
howBackground
:
false
,
s
howBackground
:
false
,
isSidebarMiddle
:
false
,
backgroundSize
:
12
,
arrowSize
:
"-2"
...
...
@@ -1680,7 +1680,7 @@ export default function swiperSecTest() {
*/
it
(
'ArkUX_Stage_Swiper_NotSet_0100'
,
0
,
async
function
()
{
let
obj
=
JSON
.
parse
(
getInspectorByKey
(
"SwiperD"
))
console
.
info
(
'ArkUX_Stage_Swiper_NotSet_0100
isShowBackground :'
+
JSON
.
stringify
(
obj
.
$attrs
.
isS
howBackground
));
console
.
info
(
'ArkUX_Stage_Swiper_NotSet_0100
showBackground :'
+
JSON
.
stringify
(
obj
.
$attrs
.
s
howBackground
));
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 backgroundColor :'
+
JSON
.
stringify
(
obj
.
$attrs
.
arrowBackgroundColor
));
...
...
@@ -1694,7 +1694,7 @@ export default function swiperSecTest() {
let
arrowSize
=
obj
.
$attrs
.
arrowSize
;
expect
(
parseFloat
(
arrowSize
))
.
assertEqual
(
18
)
expect
(
arrowSize
.
substr
(
arrowSize
.
length
-
2
,
2
))
.
assertEqual
(
"vp"
)
expect
(
obj
.
$attrs
.
isS
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
s
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
isSidebarMiddle
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
arrowBackgroundColor
)
.
assertEqual
(
"#00000000"
)
expect
(
obj
.
$attrs
.
arrowColor
)
.
assertEqual
(
obj
.
$attrs
.
foregroundColor
)
...
...
@@ -1709,7 +1709,7 @@ export default function swiperSecTest() {
*/
it
(
'ArkUX_Stage_Swiper_NotSet_0200'
,
0
,
async
function
()
{
let
obj
=
JSON
.
parse
(
getInspectorByKey
(
"SwiperE"
))
console
.
info
(
'ArkUX_Stage_Swiper_NotSet_0200
isShowBackground :'
+
JSON
.
stringify
(
obj
.
$attrs
.
isS
howBackground
));
console
.
info
(
'ArkUX_Stage_Swiper_NotSet_0200
showBackground :'
+
JSON
.
stringify
(
obj
.
$attrs
.
s
howBackground
));
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 backgroundColor :'
+
JSON
.
stringify
(
obj
.
$attrs
.
arrowBackgroundColor
));
...
...
@@ -1723,7 +1723,7 @@ export default function swiperSecTest() {
let
arrowSize
=
obj
.
$attrs
.
arrowSize
;
expect
(
parseFloat
(
arrowSize
))
.
assertEqual
(
18
)
expect
(
arrowSize
.
substr
(
arrowSize
.
length
-
2
,
2
))
.
assertEqual
(
"vp"
)
expect
(
obj
.
$attrs
.
isS
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
s
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
isSidebarMiddle
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
arrowBackgroundColor
)
.
assertEqual
(
"#00000000"
)
expect
(
obj
.
$attrs
.
arrowColor
)
.
assertEqual
(
obj
.
$attrs
.
foregroundColor
)
...
...
@@ -1738,7 +1738,7 @@ export default function swiperSecTest() {
*/
it
(
'ArkUX_Stage_Swiper_NotSet_0300'
,
0
,
async
function
()
{
let
obj
=
JSON
.
parse
(
getInspectorByKey
(
"SwiperF"
))
console
.
info
(
'ArkUX_Stage_Swiper_NotSet_0300
isShowBackground :'
+
JSON
.
stringify
(
obj
.
$attrs
.
isS
howBackground
));
console
.
info
(
'ArkUX_Stage_Swiper_NotSet_0300
showBackground :'
+
JSON
.
stringify
(
obj
.
$attrs
.
s
howBackground
));
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 backgroundColor :'
+
JSON
.
stringify
(
obj
.
$attrs
.
arrowBackgroundColor
));
...
...
@@ -1752,7 +1752,7 @@ export default function swiperSecTest() {
let
arrowSize
=
obj
.
$attrs
.
arrowSize
;
expect
(
parseFloat
(
arrowSize
))
.
assertEqual
(
0
)
expect
(
arrowSize
.
substr
(
arrowSize
.
length
-
2
,
2
))
.
assertEqual
(
"vp"
)
expect
(
obj
.
$attrs
.
isS
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
s
howBackground
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
isSidebarMiddle
)
.
assertEqual
(
"false"
)
expect
(
obj
.
$attrs
.
arrowBackgroundColor
)
.
assertEqual
(
"#00000000"
)
expect
(
obj
.
$attrs
.
arrowColor
)
.
assertEqual
(
"#00000000"
)
...
...
鸿蒙社区
@harmonycommunity
mentioned in commit
b87085c5
·
7月 30, 2023
mentioned in commit
b87085c5
mentioned in commit b87085c5433c5eb850fb2d1825d1317e4d93e124
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录