| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <p> | 4 <p> |
| 5 Test that only a single popup is allowed in response to a single | 5 Test that only a single popup is allowed in response to a single |
| 6 user action. The test passes if only one popup is created. | 6 user action. The test passes if only one popup is created. |
| 7 </p> | 7 </p> |
| 8 <button id="button" onclick="popup()">Click Here</button> | 8 <button id="button" onclick="popup()">Click Here</button> |
| 9 <div id="console"></div> | 9 <div id="console"></div> |
| 10 <script> | 10 <script> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 if (window.eventSender) { | 33 if (window.eventSender) { |
| 34 eventSender.mouseMoveTo(button.offsetLeft + button.offsetWid
th / 2, button.offsetTop + button.offsetHeight / 2); | 34 eventSender.mouseMoveTo(button.offsetLeft + button.offsetWid
th / 2, button.offsetTop + button.offsetHeight / 2); |
| 35 eventSender.mouseDown(); | 35 eventSender.mouseDown(); |
| 36 eventSender.mouseUp(); | 36 eventSender.mouseUp(); |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 </script> | 39 </script> |
| 40 </body> | 40 </body> |
| 41 </html> | 41 </html> |
| OLD | NEW |