Source/WebCore: [V8] Crash in npObjectGetProperty() in V8NPObject.cpp
[WebKit-https.git] / LayoutTests / plugins / windowless_plugin_paint_test.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5   <script>\r
6     if (window.layoutTestController) {\r
7         layoutTestController.dumpAsText();\r
8         layoutTestController.waitUntilDone();\r
9     }
10
11     var paintCount = 0;\r
12 \r
13     function onLoad() {\r
14         var pluginDiv = document.getElementById("pluginDiv");\r
15         // Create the plugin in the middle of the page.\r
16         pluginDiv.innerHTML = "<embed id=\"testPlugin\" type=\"application/x-webkit-test-netscape\" width=\"200\" height=\"200\" onpaintevent=\"didPaint()\" windowedPlugin=\"false\"></embed>";\r
17         layoutTestController.displayInvalidatedRegion();\r
18       }\r
19 \r
20     function notifyDone() {\r
21         document.getElementById('result').innerHTML = "SUCCESS";\r
22         layoutTestController.notifyDone();\r
23     }\r
24       \r
25     function didPaint() {\r
26         paintCount++;\r
27         setTimeout("notifyDone();", 50);\r
28     }
29   </script>
30 </head>
31 <body onload="setTimeout(onLoad(), 50);">
32   This tests that dynamically added windowless plugins receive paint events on creation.
33
34   <div id="result">FAILURE</div>
35
36   <div id="pluginDiv" style="position: absolute; left: 300px; top: 300px; height: 400px; width: 400px; padding: 1em;">
37   </div>
38 </body>
39 </html>