simon.fraser@apple.com | b6cf421 | 2012-01-06 23:39:07 +0000 | [diff] [blame] | 1 | <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.org | 1890413 | 2012-06-11 18:29:22 +0000 | [diff] [blame] | 12 | if (window.testRunner) { |
| 13 | testRunner.waitUntilDone(); |
| 14 | testRunner.dumpAsText(); |
commit-queue@webkit.org | e80b9a0 | 2012-06-18 21:38:09 +0000 | [diff] [blame] | 15 | testRunner.setBackingScaleFactor(2, finishTest); |
simon.fraser@apple.com | b6cf421 | 2012-01-06 23:39:07 +0000 | [diff] [blame] | 16 | } |
| 17 | } |
commit-queue@webkit.org | e80b9a0 | 2012-06-18 21:38:09 +0000 | [diff] [blame] | 18 | |
| 19 | function finishTest() { |
| 20 | setTimeout(function() { |
simon.fraser@apple.com | f1aba12 | 2012-10-08 21:55:10 +0000 | [diff] [blame] | 21 | document.getElementById('layer-tree').innerText = window.internals.layerTreeAsText(document); |
commit-queue@webkit.org | e80b9a0 | 2012-06-18 21:38:09 +0000 | [diff] [blame] | 22 | testRunner.notifyDone(); |
| 23 | }, 0); |
| 24 | } |
simon.fraser@apple.com | b6cf421 | 2012-01-06 23:39:07 +0000 | [diff] [blame] | 25 | </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> |