Add testing for --force-compositing-mode to windows.internal
[WebKit-https.git] / LayoutTests / platform / chromium / compositing / force-compositing-mode / force-composite-empty.html
1 <html>
2   <head>
3     <script>
4       if (window.internals)
5         window.internals.setForceCompositingMode(document, true);
6       function doTest() {
7         if (window.layoutTestController) {
8           document.getElementById("layertree").innerText = layoutTestController.layerTreeAsText();
9           layoutTestController.dumpAsText();
10         }
11       }
12       window.addEventListener("load", doTest, false);
13     </script>
14   </head>
15 <body>
16   <!-- in force compositing mode the body should get its own graphics layer -->
17   <pre id="layertree"></pre>
18 </body>
19 </html>