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

Side by Side Diff: LayoutTests/fast/events/window-events-capture.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 4
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 function test() 9 function test()
10 { 10 {
11 if (window.eventSender) { 11 if (window.eventSender) {
12 // Mouse events only work after an initial layout
13 document.body.offsetLeft;
14 eventSender.mouseMoveTo(52, 52); 12 eventSender.mouseMoveTo(52, 52);
15 eventSender.mouseDown(); 13 eventSender.mouseDown();
16 eventSender.mouseUp(); 14 eventSender.mouseUp();
17 } 15 }
18 window.setTimeout('finish()', 0); 16 window.setTimeout('finish()', 0);
19 } 17 }
20 18
21 function finish() 19 function finish()
22 { 20 {
23 if (window.testRunner) 21 if (window.testRunner)
(...skipping 14 matching lines...) Expand all
38 </head> 36 </head>
39 <body onload="test()"> 37 <body onload="test()">
40 38
41 This tests that window events will fire in the capture phase. 39 This tests that window events will fire in the capture phase.
42 <div id="div2" style="position: absolute; top: 50; left: 50; border: solid t hin" onclick="log('stopPropagation called.'); event.stopPropagation();"> 40 <div id="div2" style="position: absolute; top: 50; left: 50; border: solid t hin" onclick="log('stopPropagation called.'); event.stopPropagation();">
43 <a href="javascript:log('Default behavior for link')">Click here</a> 41 <a href="javascript:log('Default behavior for link')">Click here</a>
44 </div> 42 </div>
45 43
46 <div id="result" style="position: absolute; top: 100; left: 50;"><br></div> 44 <div id="result" style="position: absolute; top: 100; left: 50;"><br></div>
47 </body> 45 </body>
48 </html> 46 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/window-events-bubble2.html ('k') | LayoutTests/fast/events/zoom-dblclick.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698