Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
842cbcb4
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看板
未验证
提交
842cbcb4
编写于
7月 25, 2023
作者:
O
openharmony_ci
提交者:
Gitee
7月 25, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9465 修复Swiper XTS用例失败
Merge pull request !9465 from 胡清云/bugfix_xts_0725
上级
fa445de9
6f2920b1
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
11 addition
and
11 deletion
+11
-11
arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets
...s_component/entry/src/main/ets/test/SwiperJsunit.test.ets
+1
-1
arkui/ace_ets_layout_test/entry/src/main/ets/test/Swiper/Swiper_ItemChange/swiperItemSize.test.ets
...ets/test/Swiper/Swiper_ItemChange/swiperItemSize.test.ets
+1
-1
arkui/ace_ets_layout_test/entry/src/main/ets/test/Swiper/Swiper_ItemChange/swiperItemVisibility.test.ets
...st/Swiper/Swiper_ItemChange/swiperItemVisibility.test.ets
+3
-3
arkui/ace_ets_layout_test/entry/src/main/ets/test/Swiper/Swiper_ParmsChange/swiperDisableSwipeFalse.test.ets
...wiper/Swiper_ParmsChange/swiperDisableSwipeFalse.test.ets
+1
-1
arkui/ace_ets_layout_test/entry/src/main/ets/test/Swiper/Swiper_ParmsChange/swiperItemSpace.test.ets
...s/test/Swiper/Swiper_ParmsChange/swiperItemSpace.test.ets
+2
-2
arkui/ace_ets_layout_test/entry/src/main/ets/test/Swiper/Swiper_ParmsChange/swiperMarPad.test.ets
.../ets/test/Swiper/Swiper_ParmsChange/swiperMarPad.test.ets
+1
-1
arkui/ace_ets_layout_test/entry/src/main/ets/test/Swiper/Swiper_ParmsChange/swiperMargin.test.ets
.../ets/test/Swiper/Swiper_ParmsChange/swiperMargin.test.ets
+1
-1
arkui/ace_ets_layout_test/entry/src/main/ets/test/Swiper/Swiper_ParmsChange/swiperPadding.test.ets
...ets/test/Swiper/Swiper_ParmsChange/swiperPadding.test.ets
+1
-1
未找到文件。
arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets
浏览文件 @
842cbcb4
...
...
@@ -417,7 +417,7 @@ export default function swiperJsunit() {
let strJsonNew = getInspectorByKey('swiper');
let objNew = JSON.parse(strJsonNew);
console.info("swiperTest_1700 component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.loop).assertEqual('
fals
e');
expect(objNew.$attrs.loop).assertEqual('
tru
e');
console.info('swiperTest_1700 END');
done();
});
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Swiper/Swiper_ItemChange/swiperItemSize.test.ets
浏览文件 @
842cbcb4
...
...
@@ -66,7 +66,7 @@ export default function swiperItemSize() {
let driver = await Driver.create();
//await driver.swipe(250, 230, 200, 230);
await CommonFunc.sleep(500);
await driver.swipe(vp2px(1
50), vp2px(100), vp2px(10
0), vp2px(100));
await driver.swipe(vp2px(1
80), vp2px(100), vp2px(2
0), vp2px(100));
await CommonFunc.sleep(1000);
// After flipping the page.
itemSizekey = CommonFunc.getComponentRect('itemSizekey');
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Swiper/Swiper_ItemChange/swiperItemVisibility.test.ets
浏览文件 @
842cbcb4
...
...
@@ -67,7 +67,7 @@ export default function swiperItemVisibility() {
expect(visiblekey.bottom).assertEqual(visiblekey01.bottom);
let driver = await Driver.create();
await CommonFunc.sleep(500);
await driver.swipe(vp2px(1
50), vp2px(100), vp2px(10
0), vp2px(100));
await driver.swipe(vp2px(1
80), vp2px(100), vp2px(2
0), vp2px(100));
//await driver.swipe(250, 230, 200, 230);
await CommonFunc.sleep(1000);
// 翻页后子组件2大小及位置与父组件一致,翻页成功
...
...
@@ -118,7 +118,7 @@ export default function swiperItemVisibility() {
expect(visiblekey.bottom).assertEqual(visiblekey05.bottom);
let driver = await Driver.create();
await CommonFunc.sleep(500);
await driver.swipe(vp2px(1
50), vp2px(100), vp2px(10
0), vp2px(100));
await driver.swipe(vp2px(1
80), vp2px(100), vp2px(2
0), vp2px(100));
//await driver.swipe(250, 230, 200, 230);
await CommonFunc.sleep(1000);
// 翻页后子组件6大小及位置与父组件一致,翻页成功
...
...
@@ -169,7 +169,7 @@ export default function swiperItemVisibility() {
visiblekey03 = CommonFunc.getComponentRect('visiblekey03');
let driver = await Driver.create();
await CommonFunc.sleep(500);
await driver.swipe(vp2px(1
50), vp2px(100), vp2px(10
0), vp2px(100));
await driver.swipe(vp2px(1
80), vp2px(100), vp2px(2
0), vp2px(100));
//await driver.swipe(250, 230, 200, 230);
await CommonFunc.sleep(1000);
// 翻页后子组件4大小及位置与父组件一致,翻页成功
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Swiper/Swiper_ParmsChange/swiperDisableSwipeFalse.test.ets
浏览文件 @
842cbcb4
...
...
@@ -68,7 +68,7 @@ export default function swiperDisableSwipeFalse() {
expect(disableFalse.bottom).assertEqual(disableFalse01.bottom);
let driver = await Driver.create();
await CommonFunc.sleep(500);
await driver.swipe(vp2px(1
50), vp2px(100), vp2px(10
0), vp2px(100));
await driver.swipe(vp2px(1
80), vp2px(100), vp2px(2
0), vp2px(100));
//await driver.swipe(250, 230, 200, 230);
await CommonFunc.sleep(1000);
// After flipping the page.
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Swiper/Swiper_ParmsChange/swiperItemSpace.test.ets
浏览文件 @
842cbcb4
...
...
@@ -74,7 +74,7 @@ export default function swiperItemSpace() {
let driver = await Driver.create();
await CommonFunc.sleep(500);
await driver.swipe(vp2px(1
50), vp2px(100), vp2px(10
0), vp2px(100));
await driver.swipe(vp2px(1
80), vp2px(100), vp2px(2
0), vp2px(100));
//await driver.swipe(250, 230, 200, 230);
await CommonFunc.sleep(1000);
itemspacekey = CommonFunc.getComponentRect('itemspacekey');
...
...
@@ -139,7 +139,7 @@ export default function swiperItemSpace() {
// After flipping the page.
let driver = await Driver.create();
await CommonFunc.sleep(500);
await driver.swipe(vp2px(1
50), vp2px(100), vp2px(10
0), vp2px(100));
await driver.swipe(vp2px(1
80), vp2px(100), vp2px(2
0), vp2px(100));
// await driver.swipe(250, 230, 200, 230);
await CommonFunc.sleep(1000);
itemspacekey = CommonFunc.getComponentRect('itemspacekey');
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Swiper/Swiper_ParmsChange/swiperMarPad.test.ets
浏览文件 @
842cbcb4
...
...
@@ -69,7 +69,7 @@ export default function swiperMarPad() {
let driver = await Driver.create();
await CommonFunc.sleep(500)
//await driver.swipe(250, 230, 200, 230);
await driver.swipe(vp2px(1
50), vp2px(100), vp2px(10
0), vp2px(100));
await driver.swipe(vp2px(1
80), vp2px(100), vp2px(2
0), vp2px(100));
await CommonFunc.sleep(1000);
swiperMarPad = CommonFunc.getComponentRect('swiperMarPad');
swiperMarPad01 = CommonFunc.getComponentRect('swiperMarPad01');
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Swiper/Swiper_ParmsChange/swiperMargin.test.ets
浏览文件 @
842cbcb4
...
...
@@ -70,7 +70,7 @@ export default function swiperMargin() {
let driver = await Driver.create();
await CommonFunc.sleep(500);
//await driver.swipe(250, 230, 200, 230);
await driver.swipe(vp2px(1
50), vp2px(100), vp2px(10
0), vp2px(100));
await driver.swipe(vp2px(1
80), vp2px(100), vp2px(2
0), vp2px(100));
await CommonFunc.sleep(1000);
swiperMargin = CommonFunc.getComponentRect('swiperMargin');
swiperMargin01 = CommonFunc.getComponentRect('swiperMargin01');
...
...
arkui/ace_ets_layout_test/entry/src/main/ets/test/Swiper/Swiper_ParmsChange/swiperPadding.test.ets
浏览文件 @
842cbcb4
...
...
@@ -68,7 +68,7 @@ export default function swiperPadding() {
// Page turning.
let driver = await Driver.create();
await CommonFunc.sleep(500);
await driver.swipe(vp2px(1
50), vp2px(100), vp2px(10
0), vp2px(100));
await driver.swipe(vp2px(1
80), vp2px(100), vp2px(2
0), vp2px(100));
//await driver.swipe(250, 230, 200, 230);
await CommonFunc.sleep(1000);
swiperPadding = CommonFunc.getComponentRect('swiperPadding');
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录