提交 ea77e56e 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test(general event): 优化测试例

上级 acc8f1f0
...@@ -222,11 +222,25 @@ describe('event trigger sequence', () => { ...@@ -222,11 +222,25 @@ describe('event trigger sequence', () => {
if (isAndroid || isIos) { if (isAndroid || isIos) {
if (isAndroid) { if (isAndroid) {
await program.tap({ if (platformInfo.indexOf('6') != -1) {
x: 200, await program.tap({
y: 1000, x: 200,
duration: 1000 y: 700,
}) duration: 1000
})
} else if (platformInfo.indexOf('12') != -1) {
await program.tap({
x: 300,
y: 1100,
duration: 1000
})
} else {
await program.tap({
x: 200,
y: 1000,
duration: 1000
})
}
} else if (isIos) { } else if (isIos) {
await program.tap({ await program.tap({
x: 200, x: 200,
...@@ -279,4 +293,4 @@ describe('event trigger sequence', () => { ...@@ -279,4 +293,4 @@ describe('event trigger sequence', () => {
} }
} }
}) })
}) })
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册