OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style> | 5 <style> |
6 body { | 6 body { |
7 overflow: hidden; | 7 overflow: hidden; |
8 } | 8 } |
9 .flipped { | 9 .flipped { |
10 margin: 10px; | 10 margin: 10px; |
(...skipping 20 matching lines...) Expand all Loading... |
31 margin: 5px; | 31 margin: 5px; |
32 background-color: green; | 32 background-color: green; |
33 } | 33 } |
34 | 34 |
35 #layers { | 35 #layers { |
36 opacity: 0; /* hide from pixel result */ | 36 opacity: 0; /* hide from pixel result */ |
37 } | 37 } |
38 </style> | 38 </style> |
39 <script> | 39 <script> |
40 if (window.testRunner) | 40 if (window.testRunner) |
41 testRunner.dumpAsText(true); | 41 testRunner.dumpAsTextWithPixelResults(); |
42 | 42 |
43 function dumpLayers() | 43 function dumpLayers() |
44 { | 44 { |
45 if (window.testRunner) | 45 if (window.testRunner) |
46 document.getElementById('layers').innerText = window.internals.layerTree
AsText(document); | 46 document.getElementById('layers').innerText = window.internals.layerTree
AsText(document); |
47 } | 47 } |
48 | 48 |
49 window.addEventListener('load', dumpLayers, false); | 49 window.addEventListener('load', dumpLayers, false); |
50 </script> | 50 </script> |
51 </head> | 51 </head> |
52 <body> | 52 <body> |
53 | 53 |
54 <div class="composited flipped"> | 54 <div class="composited flipped"> |
55 <div class="composited box"> | 55 <div class="composited box"> |
56 <div class="block"></div> | 56 <div class="block"></div> |
57 <div class="block"></div> | 57 <div class="block"></div> |
58 <div class="block"></div> | 58 <div class="block"></div> |
59 <div class="block"></div> | 59 <div class="block"></div> |
60 <div class="block"></div> | 60 <div class="block"></div> |
61 <div class="block"></div> | 61 <div class="block"></div> |
62 <div class="block"></div> | 62 <div class="block"></div> |
63 <div class="block"></div> | 63 <div class="block"></div> |
64 </div> | 64 </div> |
65 </div> | 65 </div> |
66 | 66 |
67 <pre id="layers">Layer tree goes here in DRT</pre> | 67 <pre id="layers">Layer tree goes here in DRT</pre> |
68 </body> | 68 </body> |
69 </html> | 69 </html> |
OLD | NEW |