Chromium Code Reviews| Index: LayoutTests/inspector/layer-tree-model.html |
| diff --git a/LayoutTests/inspector/layer-tree-model.html b/LayoutTests/inspector/layer-tree-model.html |
| index f8d640bd968cb36d94c3a524812d2106cc8d3814..c7967bc8df1dec87a824394e7d105aa96de2f5a6 100644 |
| --- a/LayoutTests/inspector/layer-tree-model.html |
| +++ b/LayoutTests/inspector/layer-tree-model.html |
| @@ -42,25 +42,31 @@ function test() |
| function step1() |
| { |
| - // Assure layer objects are not re-created during updates. |
| - InspectorTest._layerTreeModel.forEachLayer(addDepthMarker); |
| - InspectorTest.addResult("Initial layer tree"); |
| - InspectorTest.dumpLayerTree(); |
| - InspectorTest.evaluateAndRunWhenTreeChanges("updateTree()", step2); |
| + // Assure layer objects are not re-created during updates. |
| + InspectorTest._layerTreeModel.forEachLayer(addDepthMarker); |
| + InspectorTest.addResult("Initial layer tree"); |
| + InspectorTest.dumpLayerTree(); |
| + // Before calling updateTree(), wait for the tree change generated by dumping the layer tree. |
| + InspectorTest.evaluateAndRunWhenTreeChanges("void(0)", function() { |
| + InspectorTest.evaluateAndRunWhenTreeChanges("updateTree()", step2); |
| + }); |
| } |
| function step2() |
| { |
| - InspectorTest.addResult("Updated layer tree"); |
| - InspectorTest.dumpLayerTree(); |
| - InspectorTest.evaluateAndRunWhenTreeChanges("updateGeometry()", step3); |
| + InspectorTest.addResult("Updated layer tree"); |
| + InspectorTest.dumpLayerTree(); |
| + // Before calling updateGeometry(), wait for the tree change generated by dumping the layer tree. |
| + InspectorTest.evaluateAndRunWhenTreeChanges("void(0)", function() { |
|
esprehn
2014/01/27 20:49:42
Woah, crazy.
|
| + InspectorTest.evaluateAndRunWhenTreeChanges("updateGeometry()", step3); |
| + }); |
| } |
| function step3() |
| { |
| - InspectorTest.addResult("Updated layer geometry"); |
| - InspectorTest.dumpLayerTree(); |
| - InspectorTest.completeTest(); |
| + InspectorTest.addResult("Updated layer geometry"); |
| + InspectorTest.dumpLayerTree(); |
| + InspectorTest.completeTest(); |
| } |
| } |