Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / security / block-test-no-port.html
blobabff97627a0e3b2a0a34966173f57e6c3d2678fe
1 <html>
2 <script>
3 var baseURL = "255.255.255.255";
4 var currentPort = 0;
6 if (window.testRunner) {
7 testRunner.waitUntilDone();
8 testRunner.dumpResourceLoadCallbacks();
11 function finishTesting() {
12 if (window.testRunner) {
13 testRunner.dumpAsText();
14 setTimeout("testRunner.notifyDone()", 0);
18 onload = function() {
19 document.querySelector("#testIMG").src = "http://255.255.255.255/test.jpg";
21 </script>
22 <body>
23 <p>This test attempts to change the src of an IMG tag to a blocked IP with no port 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 automatically via DumpRenderTree. In addition, on some systems the results may depend on the behavior of the proxy.
24 </p>
25 <img id="testIMG" onError="finishTesting();"></img>
26 </body>
27 </html>