OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <script src="../../resources/js-test.js"></script> |
| 4 <body> |
| 5 <script> |
| 6 description("Test that removing invalid event listeners from image documents doe
sn't crash."); |
| 7 |
| 8 window.jsTestIsAsync = true; |
| 9 |
| 10 if (window.testRunner) { |
| 11 testRunner.dumpAsText(); |
| 12 testRunner.setCanOpenWindows(); |
| 13 testRunner.waitUntilDone(); |
| 14 } |
| 15 |
| 16 function runTest() |
| 17 { |
| 18 var newWindow = window.open("resources/dice.png"); |
| 19 newWindow.onload = function() { |
| 20 newWindow.addEventListener("resize", function () {;}); |
| 21 newWindow.removeEventListener("resize", 2); |
| 22 testPassed("No crash."); |
| 23 finishJSTest(); |
| 24 }; |
| 25 } |
| 26 runTest(); |
| 27 </script> |
| 28 </body> |
| 29 </html> |
OLD | NEW |