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