OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script> | 4 <script> |
5 if (window.testRunner) { | 5 if (window.testRunner) { |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
8 } | 8 } |
9 function eventhandler() { | 9 function eventhandler() { |
10 inputNode = document.getElementById("imageInput"); | 10 inputNode = document.getElementById("imageInput"); |
11 inputNode.type = ""; | 11 inputNode.type = ""; |
12 setTimeout("cleanup()", 10); | 12 setTimeout("cleanup()", 10); |
13 } | 13 } |
14 | 14 |
15 function cleanup() { | 15 function cleanup() { |
16 if (window.testRunner) | 16 if (window.testRunner) |
17 { | 17 { |
18 testRunner.notifyDone(); | 18 testRunner.notifyDone(); |
19 } | 19 } |
20 } | 20 } |
21 </script> | 21 </script> |
22 <input> | 22 <input> |
23 <input id="imageInput" type="image" onerror="eventhandler()" src="http://1
27.0.0.1/not-likely-to-be-found.html" /> | 23 <input id="imageInput" type="image" onerror="eventhandler()" src="http://1
27.0.0.1/not-likely-to-be-found.html" /> |
24 </input> | 24 </input> |
25 Test Passes if it does not crash. | 25 Test Passes if it does not crash. |
26 </body> | 26 </body> |
27 </html> | 27 </html> |
OLD | NEW |