aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/pager-tap-slop-test.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/pager-tap-slop-test.js b/tools/pager-tap-slop-test.js
index bcc790c..09f761a 100644
--- a/tools/pager-tap-slop-test.js
+++ b/tools/pager-tap-slop-test.js
@@ -99,9 +99,9 @@ try {
await drag(195, 420, 6, 14);
s = await st();
check('14px down and a little across: a tap — it plays on, still there', s.paused === false && s.on === 'tall.webm', JSON.stringify(s));
- await drag(195, 420, 0, -25, 1);
+ await drag(195, 420, 0, -20, 1);
s = await st();
- check('a quick 25px flick: still a tap — paused, not paged', s.paused === true && s.on === 'tall.webm', JSON.stringify(s));
+ check('a quick 20px flick: still a tap — paused, not paged', s.paused === true && s.on === 'tall.webm', JSON.stringify(s));
await drag(195, 420, 0, 0, 1);
s = await st();
check('a still tap plays it again', s.paused === false && s.on === 'tall.webm', JSON.stringify(s));
@@ -123,6 +123,16 @@ try {
await drag(195, 500, 0, -80, 2);
s = await st();
check('a quick 80px flick up: the next post', s.on === was, JSON.stringify(s));
+ await drag(195, 500, 0, 300, 8);
+ await drag(195, 500, 0, -40, 2);
+ s = await st();
+ check('a quick 40px flick up: the next post too', s.on === was, JSON.stringify(s));
+ await drag(195, 500, 0, 300, 8);
+ await page.touchscreen.touchStart(195, 500);
+ for (let i = 1; i <= 12; i++) { await page.touchscreen.touchMove(195, 500 - 9 * i); await sleep(30); }
+ await page.touchscreen.touchEnd(); await sleep(900);
+ s = await st();
+ check('a steady 108px drag up (an eighth of the screen): the next post', s.on === was, JSON.stringify(s));
console.log('\n[snappy: let go, and it lands at once]');
await drag(195, 500, 0, 300, 8);