提交 5fa9ea8c 编写于 作者: 辛宝Otto's avatar 辛宝Otto 🥊

test: 测试 ios PointEvent 相关参数

上级 d2e56768
...@@ -29,7 +29,7 @@ describe('event trigger', () => { ...@@ -29,7 +29,7 @@ describe('event trigger', () => {
clientY: 101, clientY: 101,
screenX: 101, screenX: 101,
screenY: 101 screenY: 101
}, ], },],
changedTouches: [{ changedTouches: [{
identifier: 1, identifier: 1,
pageX: 101, pageX: 101,
...@@ -38,7 +38,7 @@ describe('event trigger', () => { ...@@ -38,7 +38,7 @@ describe('event trigger', () => {
clientY: 101, clientY: 101,
screenX: 101, screenX: 101,
screenY: 101 screenY: 101
}, ], },],
}) })
const touchStartTouchTargetIdentifier = isAndroid ? '1.0' : '1' const touchStartTouchTargetIdentifier = isAndroid ? '1.0' : '1'
const touchStartTouchTargetValue = isAndroid ? '101.0' : '101' const touchStartTouchTargetValue = isAndroid ? '101.0' : '101'
...@@ -90,7 +90,7 @@ describe('event trigger', () => { ...@@ -90,7 +90,7 @@ describe('event trigger', () => {
clientY: 102, clientY: 102,
screenX: 102, screenX: 102,
screenY: 102 screenY: 102
}, ], },],
}) })
const touchMoveTouchTargetIdentifier = isAndroid ? '1.0' : '1' const touchMoveTouchTargetIdentifier = isAndroid ? '1.0' : '1'
...@@ -142,7 +142,7 @@ describe('event trigger', () => { ...@@ -142,7 +142,7 @@ describe('event trigger', () => {
clientY: 103, clientY: 103,
screenX: 103, screenX: 103,
screenY: 103 screenY: 103
}, ], },],
}) })
const touchEndTouchTargetIdentifier = isAndroid ? '1.0' : '1' const touchEndTouchTargetIdentifier = isAndroid ? '1.0' : '1'
const touchEndTouchTargetValue = isAndroid ? '103.0' : '103' const touchEndTouchTargetValue = isAndroid ? '103.0' : '103'
...@@ -306,7 +306,7 @@ describe('event trigger', () => { ...@@ -306,7 +306,7 @@ describe('event trigger', () => {
} }
}) })
it.only('mock tap event', async () => { it('mock tap event', async () => {
// ios only 坐标换算准确 // ios only 坐标换算准确
if (isIos) { if (isIos) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册