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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/touch/scroll-without-mouse-lacks-mousemove-events.html

Issue 2536723007: Removed android scrolling fake mouse moves and device_supports_mouse (Closed)
Patch Set: Made checks mirror what previous logic Created 4 years 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 if (window.internals)
6 window.internals.settings.setDeviceSupportsMouse(false);
7 else
8 alert("This test requires window.internals");
9
10 if (window.testRunner) { 5 if (window.testRunner) {
11 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
12 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
13 } 8 }
14 9
15 function listener() { 10 function listener() {
16 alert("FAIL: Received mousemove event."); 11 alert("FAIL: Received mousemove event.");
17 window.removeEventListener("mousemove", listener, false); 12 window.removeEventListener("mousemove", listener, false);
18 } 13 }
19 14
20 window.addEventListener("mousemove", listener, false); 15 window.addEventListener("mousemove", listener, false);
bokan 2016/12/02 18:04:04 Is there a converse test? That scrolling after mov
amaralp 2016/12/02 23:00:35 Yes, https://cs.chromium.org/chromium/src/third_pa
bokan 2016/12/07 00:09:53 Acknowledged.
21 16
22 window.addEventListener("scroll", function() { 17 window.addEventListener("scroll", function() {
23 window.setTimeout(function() { 18 window.setTimeout(function() {
24 testRunner.notifyDone(); 19 testRunner.notifyDone();
25 }, 200); 20 }, 200);
26 }, false); 21 }, false);
27 22
28 </script> 23 </script>
29 </head> 24 </head>
30 <body> 25 <body>
31 This test passes if it doesn't alert a message containing the word "fail". 26 This test passes if it doesn't alert a message containing the word "fail".
32 <div style="background-color: blue; height: 1000px"></div> 27 <div style="background-color: blue; height: 1000px"></div>
33 <script> 28 <script>
34 window.scrollTo(0, 500); 29 window.scrollTo(0, 500);
35 </script> 30 </script>
36 </body> 31 </body>
37 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698