| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <a id="link" onclick="test()">click here</a> | 7 <a id="link" onclick="test()">click here</a> |
| 8 <object type="application/x-shockwave-flash" id="obj"></object> | 8 <object type="application/x-shockwave-flash" id="obj"></object> |
| 9 <pre id="console"></pre> | 9 <pre id="console"></pre> |
| 10 <script> | 10 <script> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 var obj = document.querySelector("#obj"); | 31 var obj = document.querySelector("#obj"); |
| 32 obj.focus(); | 32 obj.focus(); |
| 33 obj.click(); | 33 obj.click(); |
| 34 var mousedown = document.createEvent("MouseEvents"); | 34 var mousedown = document.createEvent("MouseEvents"); |
| 35 mousedown.initMouseEvent("mousedown", true, true, window, 0, 0, 0, 0, 0,
false, false, false, false, 0, null); | 35 mousedown.initMouseEvent("mousedown", true, true, window, 0, 0, 0, 0, 0,
false, false, false, false, 0, null); |
| 36 obj.dispatchEvent(mousedown); | 36 obj.dispatchEvent(mousedown); |
| 37 var mouseup = document.createEvent("MouseEvents"); | 37 var mouseup = document.createEvent("MouseEvents"); |
| 38 mouseup.initMouseEvent("mouseup", true, true, window, 0, 0, 0, 0, 0, fal
se, false, false, false, 0, null); | 38 mouseup.initMouseEvent("mouseup", true, true, window, 0, 0, 0, 0, 0, fal
se, false, false, false, 0, null); |
| 39 obj.dispatchEvent(mouseup); | 39 obj.dispatchEvent(mouseup); |
| 40 // ... and we should not be able to open a new popup. | 40 // ... and we should not be able to open a new popup. |
| 41 shouldBeUndefined("window.open('about:blank')"); | 41 shouldBeNull("window.open('about:blank')"); |
| 42 finishJSTest(); | 42 finishJSTest(); |
| 43 } | 43 } |
| 44 </script> | 44 </script> |
| 45 </body> | 45 </body> |
| 46 </html> | 46 </html> |
| OLD | NEW |