| OLD | NEW |
| 1 <head> | 1 <head> |
| 2 <script> | 2 <script> |
| 3 function test() | 3 function test() |
| 4 { | 4 { |
| 5 if (window.testRunner) | 5 if (window.testRunner) |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 if (window.eventSender) { | 7 if (window.eventSender) { |
| 8 // Mouse events only work after an initial layout |
| 9 document.body.offsetLeft; |
| 8 eventSender.mouseMoveTo(20, 70); | 10 eventSender.mouseMoveTo(20, 70); |
| 9 eventSender.mouseDown(); | 11 eventSender.mouseDown(); |
| 10 eventSender.mouseUp(); | 12 eventSender.mouseUp(); |
| 11 } | 13 } |
| 12 } | 14 } |
| 13 | 15 |
| 14 function selectClicked() { | 16 function selectClicked() { |
| 15 var message = "Passed"; | 17 var message = "Passed"; |
| 16 var paragraph = document.createElement('p'); | 18 var paragraph = document.createElement('p'); |
| 17 paragraph.appendChild(document.createTextNode(message)); | 19 paragraph.appendChild(document.createTextNode(message)); |
| 18 document.getElementById('console').appendChild(paragraph); | 20 document.getElementById('console').appendChild(paragraph); |
| 19 } | 21 } |
| 20 </script> | 22 </script> |
| 21 </head> | 23 </head> |
| 22 <body onload="test();"> | 24 <body onload="test();"> |
| 23 <p>This tests clicking on an empty select. If successful, the console message sa
ys Passed. See bug 11765. | 25 <p>This tests clicking on an empty select. If successful, the console message sa
ys Passed. See bug 11765. |
| 24 <form> | 26 <form> |
| 25 <select onclick="selectClicked()" style="width:100px;height:100px;" id="select"
size=2> | 27 <select onclick="selectClicked()" style="width:100px;height:100px;" id="select"
size=2> |
| 26 </select> | 28 </select> |
| 27 </form> | 29 </form> |
| 28 <p id="console"></p> | 30 <p id="console"></p> |
| 29 </body> | 31 </body> |
| OLD | NEW |