Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/touch/resources/touch-stale-node-crash.js

Issue 2027473002: Deprecate use of user gestures during scroll-related touch events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 document.ontouchstart = touchStartHandler; 1 document.ontouchstart = touchStartHandler;
2 2
3 function touchStartHandler(e) 3 function touchStartHandler(e)
4 { 4 {
5 var target = e.touches[0].target; 5 var target = e.touches[0].target;
6 document.body.removeChild(target); 6 document.body.removeChild(target);
7 window.location = 'resources/send-touch-up.html';
8 } 7 }
9 8
10 description("If this test does not crash then you pass!"); 9 description("If this test does not crash then you pass!");
11 10
12 if (window.testRunner) 11 if (window.testRunner)
13 testRunner.waitUntilDone(); 12 testRunner.waitUntilDone();
14 13
15 if (window.eventSender) { 14 if (window.eventSender) {
16 eventSender.clearTouchPoints(); 15 eventSender.clearTouchPoints();
17 eventSender.addTouchPoint(50, 150); 16 eventSender.addTouchPoint(50, 150);
18 eventSender.touchStart(); 17 eventSender.touchStart();
18 window.location = 'resources/send-touch-up.html';
19 } else 19 } else
20 debug('This test requires DRT.'); 20 debug('This test requires DRT.');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698