diff --git a/pages/CSS/overflow/overflow-visible-event.test.js b/pages/CSS/overflow/overflow-visible-event.test.js
index 3d7af0ee8dd5a950ba2e9df58f3a8a63ce669063..2fe4071c0aa0a5a113a8ad3db8639c835448fb7b 100644
--- a/pages/CSS/overflow/overflow-visible-event.test.js
+++ b/pages/CSS/overflow/overflow-visible-event.test.js
@@ -23,43 +23,13 @@ describe('/pages/CSS/overflow/overflow-visible-event.uvue', () => {
})
});
- it('Check Overflow Visible Part Click', async () => {
+ it('Check Overflow Visible Part Click', async () => {
res = await page.callMethod('jest_getRect')
const point_x = await page.data('jest_click_x');
const point_y = await page.data('jest_click_y');
await program.adbCommand("input tap" + " " + point_x + " " + point_y)
- await page.waitFor(500);
- res = await page.data('jest_result');
- expect(res).toBe(true)
- });
-
- // 此测试针对开发者使用 translate 移动view
- it('Check Overflow Visible Part Use translate Drag', async ()=> {
- await page.callMethod('jest_getRect')
- const point_x = await page.data('jest_click_x');
- const point_y = await page.data('jest_click_y');
- const distance = 100;
- const destY = point_y + 100
- const duration = 1000
- await program.adbCommand("input swipe" + " " + point_x + " " + point_y + " " + point_x + " " + destY + " " + duration)
- await page.waitFor(1500);
- await page.callMethod('jest_getParentRect')
- const currentParentTop = await page.data('jest_parent_top');
- const offset = 2
- const diff = Math.abs(currentParentTop - distance) < offset
- console.log("current ", currentParentTop);
- console.log("diff", diff);
- expect(diff).toBe(true)
- })
-
- it('Check Overflow Visible Block View Click', async () => {
- await page.callMethod('jest_getAbsoluteViewRect')
- const point_x = await page.data('jest_click_x');
- const point_y = await page.data('jest_click_y');
- console.log("input tap" + " " + point_x + " " + point_y);
- await program.adbCommand("input tap" + " " + point_x + " " + point_y)
await page.waitFor(500);
res = await page.data('jest_result');
expect(res).toBe(true)
- })
+ });
});
diff --git a/pages/CSS/overflow/overflow-visible-event.uvue b/pages/CSS/overflow/overflow-visible-event.uvue
index 5ae85d83be696e1a9818b201d5670fc30072e563..fcf55189229471d1f841e50022d3673f94b59db0 100644
--- a/pages/CSS/overflow/overflow-visible-event.uvue
+++ b/pages/CSS/overflow/overflow-visible-event.uvue
@@ -1,137 +1,71 @@
-
-
-
- overflow=visible 父view(绿色),子view(红色),点击超出父view区域的部分也可触发事件。
-
-
-
-
-
-
- overflow=visible组件的子view (绿色)被position:
- absolute的view(红色)遮挡时,点击事件测试。
-
-
-
-
-
-
-
-
- overflow=visible组件设置hover-class的测试
-
-
-
-
-
-
-
-
-
-
-
-
-