| OLD | NEW |
| 1 <!DOCTYPE htlm> | 1 <!DOCTYPE htlm> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <p>This tests clicking on a region immediately after a file input field. WebKit
should not crash and you should see PASS below. | 4 <p>This tests clicking on a region immediately after a file input field. WebKit
should not crash and you should see PASS below. |
| 5 To manually test this, click on the black region below.</p> | 5 To manually test this, click on the black region below.</p> |
| 6 <div id="form" style="width: 200px; height: 200px; position: absolute; top: 20px
; left: 0px; background: black;"> | 6 <div id="form" style="width: 200px; height: 200px; position: absolute; top: 20px
; left: 0px; background: black;"> |
| 7 <input type="file" style="width: 100px; height: 50px; display: block; padding: 1
0px; background: white;"> | 7 <input type="file" style="width: 100px; height: 50px; display: block; padding: 1
0px; background: white;"> |
| 8 </div> | 8 </div> |
| 9 <script> | 9 <script> |
| 10 | 10 |
| 11 if (window.layoutTestController && window.eventSender) { | 11 if (window.layoutTestController && window.eventSender) { |
| 12 layoutTestController.dumpAsText(); | 12 layoutTestController.dumpAsText(); |
| 13 | 13 |
| 14 eventSender.mouseMoveTo(180, 50); | 14 eventSender.mouseMoveTo(180, 50); |
| 15 eventSender.leapForward(200); | 15 eventSender.leapForward(200); |
| 16 eventSender.mouseDown(); | 16 eventSender.mouseDown(); |
| 17 eventSender.leapForward(200); | 17 eventSender.leapForward(200); |
| 18 eventSender.mouseUp(); | 18 eventSender.mouseUp(); |
| 19 eventSender.leapForward(200); | 19 eventSender.leapForward(200); |
| 20 document.writeln('PASS'); | 20 document.writeln('PASS'); |
| 21 } | 21 } |
| 22 | 22 |
| 23 </script> | 23 </script> |
| 24 </body> | 24 </body> |
| 25 </html> | 25 </html> |
| OLD | NEW |