OLD | NEW |
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 Loading... |
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; |
32 eventSender.mouseMoveTo(50, 50); | 34 eventSender.mouseMoveTo(50, 50); |
33 eventSender.mouseDown(); | 35 eventSender.mouseDown(); |
34 eventSender.mouseUp(); | 36 eventSender.mouseUp(); |
35 } else { | 37 } else { |
36 resultsDiv.innerHTML += "Manual test mode.<br/>"; | 38 resultsDiv.innerHTML += "Manual test mode.<br/>"; |
37 } | 39 } |
38 } | 40 } |
39 </script> | 41 </script> |
40 </head> | 42 </head> |
41 <body onLoad="loadHandler()" onmousedown="clickBody(event)"> | 43 <body onLoad="loadHandler()" onmousedown="clickBody(event)"> |
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> | 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> |
43 <div id="resultsDiv" /> | 45 <div id="resultsDiv" /> |
44 </body> | 46 </body> |
45 </html> | 47 </html> |
OLD | NEW |