| testRunner.waitUntilDone(); |
| var pluginDiv = document.getElementById("pluginDiv"); |
| // Create the plugin in the middle of the page. |
| pluginDiv.innerHTML = "<embed id=\"testPlugin\" type=\"application/x-webkit-test-netscape\" width=\"200\" height=\"200\" onpaintevent=\"didPaint()\" windowedPlugin=\"false\"></embed>"; |
| internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(); |
| testRunner.displayAndTrackRepaints(); |
| document.getElementById('result').innerHTML = "SUCCESS"; |
| setTimeout("notifyDone();", 50); |
| <body onload="setTimeout(onLoad(), 50);"> |
| This tests that dynamically added windowless plugins receive paint events on creation. |
| <div id="result">FAILURE</div> |
| <div id="pluginDiv" style="position: absolute; left: 300px; top: 300px; height: 400px; width: 400px; padding: 1em;"> |