blob: 2a8ab3f232333119726dda04b6921b570bd06556 [file] [log] [blame]
simon.fraser@apple.comb6cf4212012-01-06 23:39:07 +00001<html>
2 <style>
3 #composited {
4 width: 1800px;
5 height: 10px;
6 -webkit-transform: translateZ(0);
7 background-color: blue;
8 }
9 </style>
10 <script>
11 function startTest() {
rniwa@webkit.org18904132012-06-11 18:29:22 +000012 if (window.testRunner) {
13 testRunner.waitUntilDone();
14 testRunner.dumpAsText();
commit-queue@webkit.orge80b9a02012-06-18 21:38:09 +000015 testRunner.setBackingScaleFactor(2, finishTest);
simon.fraser@apple.comb6cf4212012-01-06 23:39:07 +000016 }
17 }
commit-queue@webkit.orge80b9a02012-06-18 21:38:09 +000018
19 function finishTest() {
20 setTimeout(function() {
simon.fraser@apple.comf1aba122012-10-08 21:55:10 +000021 document.getElementById('layer-tree').innerText = window.internals.layerTreeAsText(document);
commit-queue@webkit.orge80b9a02012-06-18 21:38:09 +000022 testRunner.notifyDone();
23 }, 0);
24 }
simon.fraser@apple.comb6cf4212012-01-06 23:39:07 +000025 </script>
26 </head>
27 <body onload="startTest();">
28 <div id="composited"></div>
29<pre id="layer-tree">Layer tree goes here in DRT</pre>
30 </body>
31</html>