Source/WebCore: [V8] Crash in npObjectGetProperty() in V8NPObject.cpp
[WebKit-https.git] / LayoutTests / plugins / embed-prefers-plugins-for-images.html
1 <script>
2     if (window.layoutTestController) {
3         layoutTestController.dumpAsText();
4         layoutTestController.waitUntilDone();
5     }
6     
7     function runTest()
8     {
9         var plugin = document.getElementById("plugin");
10         
11         // Both QuickTime and TestNetscapePlugIn register for image/png.
12         if (plugin && (plugin.testCallback || plugin.GetQuickTimeVersion))
13             logSuccess();
14
15         if (window.layoutTestController)
16             layoutTestController.notifyDone();
17     }
18     
19     function logSuccess()
20     {
21         document.getElementById("console").innerHTML = "PASS";
22     }
23 </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