Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f6b43765
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看板
未验证
提交
f6b43765
编写于
7月 11, 2023
作者:
O
openharmony_ci
提交者:
Gitee
7月 11, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9253 增加list 限位动效相关接口XTS测试
Merge pull request !9253 from sunjiakun/master
上级
e03db841
da7f62ae
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
421 addition
and
0 deletion
+421
-0
arkui/ace_ets_components_ux/ace_ets_component_list/src/main/ets/TestAbility/pages/Index.ets
...s_component_list/src/main/ets/TestAbility/pages/Index.ets
+67
-0
arkui/ace_ets_components_ux/ace_ets_component_list/src/main/ets/test/list.ets
...ents_ux/ace_ets_component_list/src/main/ets/test/list.ets
+354
-0
未找到文件。
arkui/ace_ets_components_ux/ace_ets_component_list/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
f6b43765
...
@@ -165,6 +165,73 @@ struct Index {
...
@@ -165,6 +165,73 @@ struct Index {
}
}
.key("RollBack")
.key("RollBack")
.multiSelectable(true)
.multiSelectable(true)
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_0100")
.scrollSnapAlign(ScrollSnapAlign.NONE)
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_0200")
.scrollSnapAlign(ScrollSnapAlign.START)
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_0300")
.scrollSnapAlign(ScrollSnapAlign.CENTER)
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_0400")
.scrollSnapAlign(ScrollSnapAlign.END)
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_0500")
.scrollSnapAlign(null)
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_0600")
.scrollSnapAlign("")
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_0700")
.scrollSnapAlign(undefined)
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_0800")
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_0900")
.scrollSnapAlign("ScrollSnapAlign.START")
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_1000")
.scrollSnapAlign(ScrollSnapAlign.START)
.scrollSnapAlign(ScrollSnapAlign.NONE)
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_1100")
.scrollSnapAlign(ScrollSnapAlign.NONE)
.scrollSnapAlign(ScrollSnapAlign.START)
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_1200")
.scrollSnapAlign(ScrollSnapAlign.START)
.scrollSnapAlign("")
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_1300")
.scrollSnapAlign("")
.scrollSnapAlign(ScrollSnapAlign.START)
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_1400")
.scrollSnapAlign(0)
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_1500")
.scrollSnapAlign(1)
List(){
}
.key("ArkUX_Stage_List_LimitAnimation_1600")
.scrollSnapAlign(6)
}
}
.width('100%')
.width('100%')
}
}
...
...
arkui/ace_ets_components_ux/ace_ets_component_list/src/main/ets/test/list.ets
浏览文件 @
f6b43765
...
@@ -381,5 +381,359 @@ export default function abilityTest() {
...
@@ -381,5 +381,359 @@ export default function abilityTest() {
done()
done()
})
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_0100
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test List's scrollSnapAlign interface incoming to ScrollSnapAlign.NONE
*/
it('ArkUX_Stage_List_LimitAnimation_0100',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_0100"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_0100 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.NONE")
} catch (err) {
expect().assertFail();
console.log('ArkUX_Stage_List_LimitAnimation_0100 ERR ' + JSON.stringify(err));
}
done()
},500);
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_0200
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test List's scrollSnapAlign interface incoming to ScrollSnapAlign.START
*/
it('ArkUX_Stage_List_LimitAnimation_0200',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_0200"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_0200 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.START")
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_List_LimitAnimation_0200 ERR ' + JSON.stringify(err));
}
done()
},500);
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_0300
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test List's scrollSnapAlign interface incoming to ScrollSnapAlign.CENTER
*/
it('ArkUX_Stage_List_LimitAnimation_0300',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_0300"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_0300 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.CENTER")
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_List_LimitAnimation_0300 ERR ' + JSON.stringify(err));
}
done()
},500);
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_0400
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test List's scrollSnapAlign interface incoming to ScrollSnapAlign.END
*/
it('ArkUX_Stage_List_LimitAnimation_0400',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_0400"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_0400 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.END")
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_List_LimitAnimation_0400 ERR ' + JSON.stringify(err));
}
done()
},500);
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_0500
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test List's scrollSnapAlign interface incoming to null
*/
it('ArkUX_Stage_List_LimitAnimation_0500',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_0500"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_0500 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.NONE")
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_List_LimitAnimation_0500 ERR ' + JSON.stringify(err));
}
done()
},500);
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_0600
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test List's scrollSnapAlign interface incoming to ""
*/
it('ArkUX_Stage_List_LimitAnimation_0600',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_0600"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_0600 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.NONE")
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_List_LimitAnimation_0600 ERR ' + JSON.stringify(err));
}
done()
},500);
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_0700
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test List's scrollSnapAlign interface incoming to undefined
*/
it('ArkUX_Stage_List_LimitAnimation_0700',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_0700"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_0700 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.NONE")
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_List_LimitAnimation_0700 ERR ' + JSON.stringify(err));
}
done()
},500);
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_0800
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test List does not call scrollSnapAlign
*/
it('ArkUX_Stage_List_LimitAnimation_0800',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_0800"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_0800 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.NONE")
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_List_LimitAnimation_0800 ERR ' + JSON.stringify(err));
}
done()
},500);
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_0900
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test List's scrollSnapAlign interface incoming to "ScrollSnapAlign.START"
*/
it('ArkUX_Stage_List_LimitAnimation_0900',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_0900"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_0900 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.NONE")
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_List_LimitAnimation_0900 ERR ' + JSON.stringify(err));
}
done()
},500);
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_1000
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test the scrollSnapAlign interface of the list, pass in ScrollSnapAlign.Start,
* and then pass in ScrollSnapAlign.NONE
*/
it('ArkUX_Stage_List_LimitAnimation_1000',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_1000"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_1000 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.NONE")
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_List_LimitAnimation_1000 ERR ' + JSON.stringify(err));
}
done()
},500);
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_1100
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test the scrollSnapAlign interface of the list, pass in ScrollSnapAlign.NONE,
* and then pass in ScrollSnapAlign.Start
*/
it('ArkUX_Stage_List_LimitAnimation_1100',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_1100"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_1100 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.START")
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_List_LimitAnimation_1100 ERR ' + JSON.stringify(err));
}
done()
},500);
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_1200
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test the scrollSnapAlign interface of the list, pass in ScrollSnapAlign.Start,
* and then pass in ""
*/
it('ArkUX_Stage_List_LimitAnimation_1200',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_1200"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_1200 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.NONE")
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_List_LimitAnimation_1200 ERR ' + JSON.stringify(err));
}
done()
},500);
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_1300
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test the scrollSnapAlign interface of the list, pass in "",
* and then pass in ScrollSnapAlign.Start
*/
it('ArkUX_Stage_List_LimitAnimation_1300',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_1300"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_1300 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.START")
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_List_LimitAnimation_1300 ERR ' + JSON.stringify(err));
}
done()
},500);
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_1400
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test List's scrollSnapAlign interface incoming to 0
*/
it('ArkUX_Stage_List_LimitAnimation_1400',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_1400"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_1400 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.NONE")
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_List_LimitAnimation_1400 ERR ' + JSON.stringify(err));
}
done()
},500);
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_1500
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test List's scrollSnapAlign interface incoming to 1
*/
it('ArkUX_Stage_List_LimitAnimation_1500',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_1500"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_1500 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.START")
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_List_LimitAnimation_1500 ERR ' + JSON.stringify(err));
}
done()
},500);
})
/**
* @tc.number ArkUX_Stage_List_LimitAnimation_1600
* @tc.name The List/Grid component has basic sliding operation animations,
* including stepless style animations and limit style animations
* @tc.desc Test List's scrollSnapAlign interface incoming to 6
*/
it('ArkUX_Stage_List_LimitAnimation_1600',0, function (done) {
setTimeout(() => {
try {
let scrollSnapAlign = JSON.parse(getInspectorByKey("ArkUX_Stage_List_LimitAnimation_1600"))
.$attrs.scrollSnapAlign
console.log("====> ArkUX_Stage_List_LimitAnimation_1600 listItemLeft:" + scrollSnapAlign )
expect(scrollSnapAlign).assertEqual("ScrollSnapAlign.NONE")
} catch (err) {
expect().assertFail();
console.info('ArkUX_Stage_List_LimitAnimation_1600 ERR ' + JSON.stringify(err));
}
done()
},500);
})
})
})
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录