6 if (window
.testRunner
) {
7 testRunner
.dumpAsText();
8 testRunner
.waitUntilDone();
14 var pluginDiv
= document
.getElementById("pluginDiv");
15 // Create the plugin in the middle of the page.
16 pluginDiv
.innerHTML
= "<embed id=\"testPlugin\" type=\"application/x-webkit-test-netscape\" width=\"200\" height=\"200\" onpaintevent=\"didPaint()\" windowedPlugin=\"false\"></embed>";
18 internals
.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks();
19 testRunner
.layoutAndPaintAsync();
22 function notifyDone() {
23 document
.getElementById('result').innerHTML
= "SUCCESS";
24 testRunner
.notifyDone();
29 setTimeout("notifyDone();", 50);
33 <body onload=
"setTimeout(onLoad(), 50);">
34 This tests that dynamically added windowless plugins receive paint events on creation.
36 <div id=
"result">FAILURE
</div>
38 <div id=
"pluginDiv" style=
"position: absolute; left: 300px; top: 300px; height: 400px; width: 400px; padding: 1em;">