| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <style> | 4 <style> |
| 5 body { | 5 body { |
| 6 overflow: hidden; | 6 overflow: hidden; |
| 7 } | 7 } |
| 8 .container { | 8 .container { |
| 9 width: 500px; | 9 width: 500px; |
| 10 height: 300px; | 10 height: 300px; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 width: 50px; | 31 width: 50px; |
| 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> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 63 <div class="composited block"> | 63 <div class="composited block"> |
| 64 <div class="composited box"></div> | 64 <div class="composited box"></div> |
| 65 </div> | 65 </div> |
| 66 <div class="block"></div> | 66 <div class="block"></div> |
| 67 <div class="block"></div> | 67 <div class="block"></div> |
| 68 </div> | 68 </div> |
| 69 | 69 |
| 70 <pre id="layers">Layer tree goes here in DRT</pre> | 70 <pre id="layers">Layer tree goes here in DRT</pre> |
| 71 </body> | 71 </body> |
| 72 </html> | 72 </html> |
| OLD | NEW |