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

Side by Side Diff: LayoutTests/fast/events/frame-scroll-fake-mouse-move.html

Issue 1133693002: Update most LayoutTests to be agnostic to scrollTopLeftInterop mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tdresser cr feedback Created 5 years, 7 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 | Annotate | Revision Log
OLDNEW
1 <body style="height: 200%"> 1 <body style="height: 200%">
2 <div onmouseover="mouseOver(event)" style="margin: 300px 0; width: 100px; height : 100px; background-color: blue;"></div> 2 <div onmouseover="mouseOver(event)" style="margin: 300px 0; width: 100px; height : 100px; background-color: blue;"></div>
3 <div id="result">Test did not run</div> 3 <div id="result">Test did not run</div>
4 <script> 4 <script>
5 var passed = false; 5 var passed = false;
6 6
7 function mouseOver(event) 7 function mouseOver(event)
8 { 8 {
9 passed = true; 9 passed = true;
10 } 10 }
11 11
12 function finish() 12 function finish()
13 { 13 {
14 document.getElementById("result").innerText = passed ? "PASS" : "FAIL"; 14 document.getElementById("result").innerText = passed ? "PASS" : "FAIL";
15 testRunner.notifyDone(); 15 testRunner.notifyDone();
16 } 16 }
17 17
18 if (window.testRunner) { 18 if (window.testRunner) {
19 testRunner.dumpAsText(); 19 testRunner.dumpAsText();
20 testRunner.waitUntilDone(); 20 testRunner.waitUntilDone();
21 21
22 // WebKit schedules a fake mouse move event as part of installing the We bView in 22 // WebKit schedules a fake mouse move event as part of installing the We bView in
23 // a window. For the test to be valid, it must begin only after that eve nt 23 // a window. For the test to be valid, it must begin only after that eve nt
24 // gets dispatched. 24 // gets dispatched.
25 setTimeout(function() 25 setTimeout(function()
26 { 26 {
27 eventSender.mouseMoveTo(50, 100); 27 eventSender.mouseMoveTo(50, 100);
28 document.body.scrollTop = 250; 28 document.scrollingElement.scrollTop = 250;
29 setTimeout(finish, 200); 29 setTimeout(finish, 200);
30 }, 200); 30 }, 200);
31 } 31 }
32 </script> 32 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698