blob: 68c0f0baee2e7e047bf3b2db329f3257f7fb40f0 [file] [log] [blame]
<script>
if (window.testRunner) {
testRunner.dumpAsText()
testRunner.waitUntilDone();
}
function finished()
{
document.getElementById('console').innerHTML = "The image size is: " + document.getElementById('result').width + "x" + document.getElementById('result').height;
if (window.testRunner)
testRunner.notifyDone();
}
</script>
<div id="target">
This test is making sure that even though the image returns a 404, it still gets loaded and displayed. This is done for legacy compat reasons,
and is the opposite of how the object element behaves.<br>
<img id="result" src="resources/404image.py" onload="finished()" onerror="finished()">
</div>
<div id="console"></div>