Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / touch / scroll-without-mouse-lacks-mousemove-events.html
blob101a0676b2c20806b2211ef64d8d14c66de45fae
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.internals)
6 window.internals.settings.setDeviceSupportsMouse(false);
7 else
8 alert("This test requires window.internals");
10 if (window.testRunner) {
11 testRunner.dumpAsText();
12 testRunner.waitUntilDone();
15 function listener() {
16 alert("FAIL: Received mousemove event.");
17 window.removeEventListener("mousemove", listener, false);
20 window.addEventListener("mousemove", listener, false);
22 window.addEventListener("scroll", function() {
23 window.setTimeout(function() {
24 testRunner.notifyDone();
25 }, 200);
26 }, false);
28 </script>
29 </head>
30 <body>
31 This test passes if it doesn't alert a message containing the word "fail".
32 <div style="background-color: blue; height: 1000px"></div>
33 <script>
34 window.scrollTo(0, 500);
35 </script>
36 </body>
37 </html>