Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
9d6ed37c
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
5995
Star
90
Fork
162
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
9d6ed37c
编写于
10月 18, 2024
作者:
zhaofengliang920817
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改 overflow-visible-event.test.js 测试例子。
上级
2131040f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
8 deletion
+14
-8
pages/CSS/overflow/overflow-visible-event.uvue
pages/CSS/overflow/overflow-visible-event.uvue
+13
-8
testSequencer.js
testSequencer.js
+1
-0
未找到文件。
pages/CSS/overflow/overflow-visible-event.uvue
浏览文件 @
9d6ed37c
...
@@ -100,12 +100,17 @@
...
@@ -100,12 +100,17 @@
jest_getRect() {
jest_getRect() {
const rect = uni.getElementById('child')?.getBoundingClientRect()
const rect = uni.getElementById('child')?.getBoundingClientRect()
if (rect != null) {
if (rect != null) {
let ratio = 1
let ratio = 1
const systemInfo = uni.getSystemInfoSync()
const titleBarHeight = systemInfo.screenHeight - systemInfo.windowHeight
if (uni.getSystemInfoSync().platform == 'android'){
if (uni.getSystemInfoSync().platform == 'android'){
ratio = uni.getSystemInfoSync().devicePixelRatio
ratio = uni.getSystemInfoSync().devicePixelRatio
}
}
this.jest_click_x = rect.x * ratio + 10
const systemInfo = uni.getSystemInfoSync()
this.jest_click_y = rect.bottom * ratio - 10
const titleBarHeight = systemInfo.screenHeight - systemInfo.windowHeight
this.jest_click_x = rect.x * ratio + 30
this.jest_click_y = (rect.bottom + titleBarHeight - 40) * ratio
}
}
},
},
jest_getParentRect() {
jest_getParentRect() {
...
@@ -129,8 +134,8 @@
...
@@ -129,8 +134,8 @@
if (uni.getSystemInfoSync().platform == 'android'){
if (uni.getSystemInfoSync().platform == 'android'){
ratio = uni.getSystemInfoSync().devicePixelRatio
ratio = uni.getSystemInfoSync().devicePixelRatio
}
}
this.jest_click_x = rect.x * ratio +
1
0
this.jest_click_x = rect.x * ratio +
3
0
this.jest_click_y = (rect.top + titleBarHeight +
1
0) * ratio
this.jest_click_y = (rect.top + titleBarHeight +
3
0) * ratio
}
}
},
},
jest_scrollToDeepOverflow() {
jest_scrollToDeepOverflow() {
...
@@ -146,9 +151,9 @@
...
@@ -146,9 +151,9 @@
}
}
const titleBarHeight = systemInfo.screenHeight - systemInfo.windowHeight
const titleBarHeight = systemInfo.screenHeight - systemInfo.windowHeight
const afterRect = uni.getElementById('deep-overflow')?.getBoundingClientRect()
const afterRect = uni.getElementById('deep-overflow')?.getBoundingClientRect()
if (afterRect != null) {
if (afterRect != null) {
this.jest_click_x = afterRect.x * ratio +
1
0
this.jest_click_x = afterRect.x * ratio +
3
0
this.jest_click_y = (afterRect.top + titleBarHeight +
1
0) * ratio
this.jest_click_y = (afterRect.top + titleBarHeight +
3
0) * ratio
}
}
}, 200)
}, 200)
}
}
...
...
testSequencer.js
浏览文件 @
9d6ed37c
...
@@ -8,6 +8,7 @@ const sortTestFilePaths = [
...
@@ -8,6 +8,7 @@ const sortTestFilePaths = [
"
pages/component/global-events/touch-events.test.js
"
,
"
pages/component/global-events/touch-events.test.js
"
,
"
pages/component/global-events/touch-events-bubbles.test.js
"
,
"
pages/component/global-events/touch-events-bubbles.test.js
"
,
"
pages/component/swiper/swiper2.test.js
"
,
"
pages/component/swiper/swiper2.test.js
"
,
"
pages/CSS/overflow/overflow-visible-event.test.js
"
,
"
pages/component/rich-text/rich-text-complex.test.js
"
"
pages/component/rich-text/rich-text-complex.test.js
"
]
]
class
CustomSequencer
extends
Sequencer
{
class
CustomSequencer
extends
Sequencer
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录