3 <script type=
"text/ecmascript">
7 testRunner.dumpAsText();
9 var image = document.getElementById('image');
11 if (image.height || image.width) {
12 console.innerHTML =
"FAILED";
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";
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>
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"/>