OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
fs
2016/08/16 10:54:59
You can drop <html>, <body> and their correspondin
sivag
2016/08/16 13:44:02
Done.
| |
3 <script src="../../resources/js-test.js"></script> | 3 <title>Test that removing invalid event listeners from image documents doesn't c rash.</title> |
4 <script src="../../resources/testharness.js"></script> | |
5 <script src="../../resources/testharnessreport.js"></script> | |
4 <body> | 6 <body> |
5 <script> | 7 <script> |
6 description("Test that removing invalid event listeners from image documents doe sn't crash."); | 8 async_test(function(t) { |
7 | |
8 window.jsTestIsAsync = true; | |
9 | |
10 if (window.testRunner) { | |
11 testRunner.dumpAsText(); | |
12 testRunner.setCanOpenWindows(); | |
fs
2016/08/16 10:54:59
Don't you still need this?
sivag
2016/08/16 13:44:02
Done.
| |
13 testRunner.waitUntilDone(); | |
14 } | |
15 | |
16 function runTest() | |
17 { | |
18 var newWindow = window.open("resources/dice.png"); | 9 var newWindow = window.open("resources/dice.png"); |
19 newWindow.onload = function() { | 10 newWindow.onload = t.step_func_done(function() { |
20 newWindow.addEventListener("resize", function () {;}); | 11 newWindow.addEventListener("resize", function () {;}); |
21 newWindow.removeEventListener("resize", 2); | 12 newWindow.removeEventListener("resize", 2); |
22 testPassed("No crash."); | 13 }); |
23 finishJSTest(); | 14 }); |
24 }; | |
25 } | |
26 runTest(); | |
27 </script> | 15 </script> |
28 </body> | 16 </body> |
29 </html> | 17 </html> |
OLD | NEW |