summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/http/tests/misc/image-error.html
blob: 3fbeb3317bad54cb78d728e6150e4d6a1b26b9dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<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.php" onload="finished()" onerror="finished()">
</div>
<div id="console"></div>