OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
6 .trigger { | 6 .trigger { |
7 width: 20px; | 7 width: 20px; |
8 height: 20px; | 8 height: 20px; |
9 background-color: blue; | 9 background-color: blue; |
10 transform: translateZ(0); | 10 transform: translateZ(0); |
(...skipping 20 matching lines...) Expand all Loading... |
31 </head> | 31 </head> |
32 <script> | 32 <script> |
33 if (window.testRunner) { | 33 if (window.testRunner) { |
34 testRunner.dumpAsText(); | 34 testRunner.dumpAsText(); |
35 testRunner.waitUntilDone(); | 35 testRunner.waitUntilDone(); |
36 } | 36 } |
37 | 37 |
38 function doTest() | 38 function doTest() |
39 { | 39 { |
40 if (window.testRunner) { | 40 if (window.testRunner) { |
41 document.getElementById('layertree').innerText = window.internals.la
yerTreeAsText(document); | 41 document.getElementById('layertree').innerText = window.internals.la
yerTreeAsText(document, window.internals.OUTPUT_CHILDREN_AS_LAYER_LIST); |
42 testRunner.notifyDone(); | 42 testRunner.notifyDone(); |
43 } | 43 } |
44 } | 44 } |
45 | 45 |
46 window.addEventListener('load', doTest, false); | 46 window.addEventListener('load', doTest, false); |
47 </script> | 47 </script> |
48 <body> | 48 <body> |
49 <div class="trigger"></div> | 49 <div class="trigger"></div> |
50 | 50 |
51 <div class="container"> | 51 <div class="container"> |
52 <div class="child box"> | 52 <div class="child box"> |
53 <!-- This box doesn't need its own layer. --> | 53 <!-- This box doesn't need its own layer. --> |
54 </div> | 54 </div> |
55 </div> | 55 </div> |
56 <pre id="layertree"></pre> | 56 <pre id="layertree"></pre> |
57 </body> | 57 </body> |
58 </html> | 58 </html> |
OLD | NEW |