Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / misc / image-blocked-src-no-change.html
blob3c805a7d65ea45301935d145fb37d0144ca34165
1 <html>
2 <head>
3 <script type="text/ecmascript">
4 function changeSrc()
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 var image = document.getElementById('image');
11 if (image.height || image.width) {
12 console.innerHTML = "FAILED";
13 return;
16 // We reset the image src to the same url to check that it was
17 image.src = "file:///tmp/LayoutTests/http/tests/security/resources/compass.jpg";
19 </script>
20 </head>
21 <body onload="changeSrc()">
22 <p> Test case for <a href="https://bugs.webkit.org/show_bug.cgi?id=17897"> bug 17897 </a>: Not Rendering Images Imported from XHTML Document </p>
23 <p> This test checks that setting an image url should lead to load even if the image was in error and the url is not changed. </p>
24 <p> For this test to pass, you should see 2 messages in the console </p>
25 <p id='console'> </p>
26 <!-- This image should be blocked (see security/local-image-from-remote.html) -->
27 <img id='image' src="file:///tmp/LayoutTests/http/tests/security/resources/compass.jpg"/>
28 </body>
29 </html>