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

Side by Side Diff: LayoutTests/fast/events/mouseout-on-window.html

Issue 15508003: Revert "Don't force layout for mouse event hit tests" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 addEventListener("mouseout", function(event){ 4 addEventListener("mouseout", function(event){
5 if (event.clientX < 0 && event.clientY < 0) 5 if (event.clientX < 0 && event.clientY < 0)
6 document.getElementById("target").innerHTML = "PASS: Received mouseout e vent."; 6 document.getElementById("target").innerHTML = "PASS: Received mouseout e vent.";
7 }, true); 7 }, true);
8 8
9 </script> 9 </script>
10 </head> 10 </head>
11 <body> 11 <body>
12 This test ensures that mouse out events are sent to the window.<br /> 12 This test ensures that mouse out events are sent to the window.<br />
13 <div id="target"> 13 <div id="target">
14 FAIL: No mouseout was sent. 14 FAIL: No mouseout was sent.
15 </div> 15 </div>
16 <script> 16 <script>
17 if (window.testRunner) 17 if (window.testRunner)
18 testRunner.dumpAsText(); 18 testRunner.dumpAsText();
19 if (window.eventSender) { 19 if (window.eventSender) {
20 // Mouse events only work after an initial layout
21 document.body.offsetLeft;
22 // Initial move on windows is used to force the webview to 20 // Initial move on windows is used to force the webview to
23 // initialise the windows mouse event tracker. 21 // initialise the windows mouse event tracker.
24 eventSender.mouseMoveTo(5, 5); 22 eventSender.mouseMoveTo(5, 5);
25 eventSender.mouseMoveTo(-5, -5); 23 eventSender.mouseMoveTo(-5, -5);
26 } 24 }
27 </script> 25 </script>
28 </body> 26 </body>
29 </html> 27 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/mouseclick-target-and-positioning.html ('k') | LayoutTests/fast/events/mouseup-outside-document.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698