embed-prefers-plugins-for-images.html 815 Bytes
Newer Older
1 2 3 4 5 6
<script>
    if (window.layoutTestController) {
        layoutTestController.dumpAsText();
        layoutTestController.waitUntilDone();
    }
    
7 8 9
    function runTest()
    {
        var plugin = document.getElementById("plugin");
10 11 12 13
        
        // Both QuickTime and TestNetscapePlugIn register for image/png.
        if (plugin && (plugin.testCallback || plugin.GetQuickTimeVersion))
            logSuccess();
14

15 16
        if (window.layoutTestController)
            layoutTestController.notifyDone();
17 18
    }
    
19
    function logSuccess()
20 21 22 23
    {
        document.getElementById("console").innerHTML = "PASS";
    }
</script>
24
<body onload="runTest()">
25
<p>Test that WebKit will load a plug-in to render an image before rendering it natively.</p>
26
<div id="console">FAIL</div>
27
<embed id="plugin" src="image.png">
28