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

Side by Side Diff: LayoutTests/fast/events/event-view-toString.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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd"> 2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html> 3 <html>
4 <head> 4 <head>
5 <title>Test for bug 4233558</title> 5 <title>Test for bug 4233558</title>
6 <script type="text/javascript" charset="utf-8"> 6 <script type="text/javascript" charset="utf-8">
7 if (window.testRunner) { 7 if (window.testRunner) {
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 testRunner.waitUntilDone(); 9 testRunner.waitUntilDone();
10 } 10 }
(...skipping 11 matching lines...) Expand all
22 resultsDiv.innerHTML += " ERROR (" + e + ") getting value!<br/>"; 22 resultsDiv.innerHTML += " ERROR (" + e + ") getting value!<br/>";
23 } 23 }
24 if (window.testRunner) { 24 if (window.testRunner) {
25 testRunner.notifyDone(); 25 testRunner.notifyDone();
26 } 26 }
27 } 27 }
28 28
29 function loadHandler() { 29 function loadHandler() {
30 var resultsDiv = document.getElementById("resultsDiv"); 30 var resultsDiv = document.getElementById("resultsDiv");
31 if (window.eventSender) { 31 if (window.eventSender) {
32 // Mouse events only work after an initial layout
33 document.body.offsetLeft;
34 eventSender.mouseMoveTo(50, 50); 32 eventSender.mouseMoveTo(50, 50);
35 eventSender.mouseDown(); 33 eventSender.mouseDown();
36 eventSender.mouseUp(); 34 eventSender.mouseUp();
37 } else { 35 } else {
38 resultsDiv.innerHTML += "Manual test mode.<br/>"; 36 resultsDiv.innerHTML += "Manual test mode.<br/>";
39 } 37 }
40 } 38 }
41 </script> 39 </script>
42 </head> 40 </head>
43 <body onLoad="loadHandler()" onmousedown="clickBody(event)"> 41 <body onLoad="loadHandler()" onmousedown="clickBody(event)">
44 <p>Test for toString on event.view. This test simulates a click when run via Du mpRenderTree. Otherwise, click below and you should see "Success":</p> 42 <p>Test for toString on event.view. This test simulates a click when run via Du mpRenderTree. Otherwise, click below and you should see "Success":</p>
45 <div id="resultsDiv" /> 43 <div id="resultsDiv" />
46 </body> 44 </body>
47 </html> 45 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/drop-with-file-paths.html ('k') | LayoutTests/fast/events/frame-click-focus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698