OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style type="text/css"> | 3 <style type="text/css"> |
4 body { | 4 body { |
5 margin: 0; | 5 margin: 0; |
6 overflow: hidden; | 6 overflow: hidden; |
7 } | 7 } |
8 | 8 |
9 .container { | 9 .container { |
10 visibility: hidden; | 10 visibility: hidden; |
(...skipping 24 matching lines...) Expand all Loading... |
35 height: 10px; | 35 height: 10px; |
36 width: 10px; | 36 width: 10px; |
37 } | 37 } |
38 pre { | 38 pre { |
39 opacity: 0; /* hide in pixel result */ | 39 opacity: 0; /* hide in pixel result */ |
40 height: 16px; /* avoid platform-dependent height difference of hidden te
xt layer-tree */ | 40 height: 16px; /* avoid platform-dependent height difference of hidden te
xt layer-tree */ |
41 } | 41 } |
42 </style> | 42 </style> |
43 <script> | 43 <script> |
44 if (window.testRunner) | 44 if (window.testRunner) |
45 testRunner.dumpAsText(true); | 45 testRunner.dumpAsTextWithPixelResults(); |
46 | 46 |
47 function dumpLayers() | 47 function dumpLayers() |
48 { | 48 { |
49 if (window.testRunner) | 49 if (window.testRunner) |
50 document.getElementById('layer-tree').innerText = window.internals.l
ayerTreeAsText(document); | 50 document.getElementById('layer-tree').innerText = window.internals.l
ayerTreeAsText(document); |
51 } | 51 } |
52 window.addEventListener('load', dumpLayers, false); | 52 window.addEventListener('load', dumpLayers, false); |
53 </script> | 53 </script> |
54 </head> | 54 </head> |
55 | 55 |
56 <body> | 56 <body> |
57 <!-- You should see a green box in the top left, and no red. --> | 57 <!-- You should see a green box in the top left, and no red. --> |
58 <div class="indicator box"></div> | 58 <div class="indicator box"></div> |
59 | 59 |
60 <div class="container"> | 60 <div class="container"> |
61 <div style="position: relative;"> | 61 <div style="position: relative;"> |
62 <div style="visibility:visible;"> | 62 <div style="visibility:visible;"> |
63 <div class="visible-box box"> | 63 <div class="visible-box box"> |
64 <div class="composited box"></div> | 64 <div class="composited box"></div> |
65 </div> | 65 </div> |
66 </div> | 66 </div> |
67 </div> | 67 </div> |
68 </div> | 68 </div> |
69 <pre id="layer-tree">Layer tree goes here in DRT</pre> | 69 <pre id="layer-tree">Layer tree goes here in DRT</pre> |
70 </body> | 70 </body> |
71 </html> | 71 </html> |
OLD | NEW |