embed-prefers-plugins-for-images.html 715 Bytes
Newer Older
1 2 3 4 5 6
<script>
    if (window.layoutTestController) {
        layoutTestController.dumpAsText();
        layoutTestController.waitUntilDone();
    }
    
7 8 9 10 11 12 13 14 15 16 17 18
    function runTest()
    {
        var plugin = document.getElementById("plugin");
        if (plugin && plugin.testCallback) {
            plugin.testCallback("finishTest");
            return;
        }

        layoutTestController.notifyDone();
    }
    
    function finishTest()
19 20
    {
        document.getElementById("console").innerHTML = "PASS";
21 22
        if (window.layoutTestController)
            layoutTestController.notifyDone();
23 24
    }
</script>
25
<body onload="runTest()">
26
<div id="console">FAIL</div>
27
<embed id="plugin" src="image.png" logSrc="1">
28