OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 .layer { | 4 .layer { |
5 -webkit-transform: translateZ(10px); | 5 -webkit-transform: translateZ(10px); |
6 opacity: 0.8; | 6 opacity: 0.8; |
7 } | 7 } |
8 </style> | 8 </style> |
9 <script src="../../http/tests/inspector/inspector-test.js"></script> | 9 <script src="../../http/tests/inspector/inspector-test.js"></script> |
10 <script src="../../http/tests/inspector/layers-test.js"></script> | 10 <script src="../../http/tests/inspector/layers-test.js"></script> |
(...skipping 21 matching lines...) Expand all Loading... |
32 function addDepthMarker(layer) | 32 function addDepthMarker(layer) |
33 { | 33 { |
34 layer.__extraData = layer.parent() ? layer.parent().__extraData + 1 : 0; | 34 layer.__extraData = layer.parent() ? layer.parent().__extraData + 1 : 0; |
35 } | 35 } |
36 | 36 |
37 InspectorTest.requestLayers(step1); | 37 InspectorTest.requestLayers(step1); |
38 | 38 |
39 function step1() | 39 function step1() |
40 { | 40 { |
41 // Assure layer objects are not re-created during updates. | 41 // Assure layer objects are not re-created during updates. |
42 InspectorTest._layerTreeModel.forEachLayer(addDepthMarker); | 42 InspectorTest.layerTreeModel.forEachLayer(addDepthMarker); |
43 InspectorTest.addResult("Initial layer tree"); | 43 InspectorTest.addResult("Initial layer tree"); |
44 InspectorTest.dumpLayerTree(); | 44 InspectorTest.dumpLayerTree(); |
45 InspectorTest.evaluateAndRunWhenTreeChanges("requestAnimationFrame(updat
eTree)", step2); | 45 InspectorTest.evaluateAndRunWhenTreeChanges("requestAnimationFrame(updat
eTree)", step2); |
46 } | 46 } |
47 | 47 |
48 function step2() | 48 function step2() |
49 { | 49 { |
50 InspectorTest.addResult("Updated layer tree"); | 50 InspectorTest.addResult("Updated layer tree"); |
51 InspectorTest.dumpLayerTree(); | 51 InspectorTest.dumpLayerTree(); |
52 InspectorTest.evaluateAndRunWhenTreeChanges("requestAnimationFrame(updat
eGeometry)", step3); | 52 InspectorTest.evaluateAndRunWhenTreeChanges("requestAnimationFrame(updat
eGeometry)", step3); |
(...skipping 13 matching lines...) Expand all Loading... |
66 <div id="a" style="width: 200px; height: 200px" class="layer"> | 66 <div id="a" style="width: 200px; height: 200px" class="layer"> |
67 <div class="layer" id="b1" style="width: 150px; height: 100px"></div> | 67 <div class="layer" id="b1" style="width: 150px; height: 100px"></div> |
68 <div id="b2" class="layer" style="width: 140px; height: 110px"> | 68 <div id="b2" class="layer" style="width: 140px; height: 110px"> |
69 <div id="c" class="layer" style="width: 100px; height: 90px"></div> | 69 <div id="c" class="layer" style="width: 100px; height: 90px"></div> |
70 </div> | 70 </div> |
71 <div id="b3" class="layer" style="width: 140px; height: 110px"></div> | 71 <div id="b3" class="layer" style="width: 140px; height: 110px"></div> |
72 </div> | 72 </div> |
73 <iframe id="frame" src="resources/composited-iframe.html" width="200" height="20
0"></div> | 73 <iframe id="frame" src="resources/composited-iframe.html" width="200" height="20
0"></div> |
74 </body> | 74 </body> |
75 </html> | 75 </html> |
OLD | NEW |