embed-prefers-plugins-for-images.html 512 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<script>
    if (window.layoutTestController) {
        layoutTestController.dumpAsText();
        layoutTestController.waitUntilDone();
    }
    
    function logSuccess()
    {
        document.getElementById("console").innerHTML = "PASS";
    }
</script>
<div id="console">FAIL</div>
<embed name="plugin" src="image.png" logSrc="1">
<script>
    if (plugin.testCallback)
        plugin.testCallback("logSuccess");
    if (window.layoutTestController)
        layoutTestController.notifyDone();
</script>