Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(865)

Unified Diff: LayoutTests/inspector/layer-tree-model.html

Issue 145133006: Remove the recalc style timer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moar raf Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/animations/display-none-terminates-animation.html ('k') | Source/core/dom/Document.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
+ InspectorTest.evaluateAndRunWhenTreeChanges("updateGeometry()", step3);
+ });
}
function step3()
{
- InspectorTest.addResult("Updated layer geometry");
- InspectorTest.dumpLayerTree();
- InspectorTest.completeTest();
+ InspectorTest.addResult("Updated layer geometry");
+ InspectorTest.dumpLayerTree();
+ InspectorTest.completeTest();
}
}
« no previous file with comments | « LayoutTests/animations/display-none-terminates-animation.html ('k') | Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698