| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <script> | 2 <script> |
| 3 var baseURL = "255.255.255.255"; | 3 var baseURL = "255.255.255.255"; |
| 4 var currentPort = 0; | 4 var currentPort = 0; |
| 5 | 5 |
| 6 if (window.testRunner) { | 6 if (window.testRunner) { |
| 7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
| 8 testRunner.dumpResourceLoadCallbacks(); | 8 testRunner.dumpResourceLoadCallbacks(); |
| 9 } | 9 } |
| 10 | 10 |
| 11 function finishTesting() { | 11 function finishTesting() { |
| 12 if (window.testRunner) { | 12 if (window.testRunner) { |
| 13 testRunner.dumpAsText(); | 13 testRunner.dumpAsText(); |
| 14 setTimeout("testRunner.notifyDone()", 0); | 14 setTimeout("testRunner.notifyDone()", 0); |
| 15 } | 15 } |
| 16 } | 16 } |
| 17 |
| 18 onload = function() { |
| 19 document.querySelector("#testIMG").src = "http://255.255.255.255/test.jp
g"; |
| 20 } |
| 17 </script> | 21 </script> |
| 18 <body> | 22 <body> |
| 19 <p>This test attempts to change the src of an IMG tag to a blocked IP with no po
rt to confirm that WebKit returns the correct error for it - blocked instead of
cannot find. Due to the nature of this test, the results can only be processed a
utomatically via DumpRenderTree. In addition, on some systems the results may de
pend on the behavior of the proxy. | 23 <p>This test attempts to change the src of an IMG tag to a blocked IP with no po
rt to confirm that WebKit returns the correct error for it - blocked instead of
cannot find. Due to the nature of this test, the results can only be processed a
utomatically via DumpRenderTree. In addition, on some systems the results may de
pend on the behavior of the proxy. |
| 20 </p> | 24 </p> |
| 21 <img id="testIMG" src="http://255.255.255.255/test.jpg" onError="finishTesting()
;"></img> | 25 <img id="testIMG" onError="finishTesting();"></img> |
| 22 </body> | 26 </body> |
| 23 </html> | 27 </html> |
| OLD | NEW |