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

Unified Diff: LayoutTests/inspector/elements/styles/pseudo-elements.html

Issue 467233002: DevTools: Make sure ElementsTreeOutline is correctly rendered when element's hasChildren state chan… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comments addressed Created 6 years, 4 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
Index: LayoutTests/inspector/elements/styles/pseudo-elements.html
diff --git a/LayoutTests/inspector/elements/styles/pseudo-elements.html b/LayoutTests/inspector/elements/styles/pseudo-elements.html
index 3d9753705800f427c457d6797635ef85925164d3..f7e861ae3b2c3d5c66dd2737e8556fcc8fc6c92c 100644
--- a/LayoutTests/inspector/elements/styles/pseudo-elements.html
+++ b/LayoutTests/inspector/elements/styles/pseudo-elements.html
@@ -153,7 +153,7 @@ function test()
function addAfter(next)
{
- executeAndDumpTree("addAfterRule()", WebInspector.DOMModel.Events.NodeInserted, next);
+ executeAndDumpTree("addAfterRule()", WebInspector.DOMModel.Events.NodeInserted, expandAndDumpTree.bind(this, next));
},
function addBefore(next)
@@ -205,6 +205,17 @@ function test()
}
}
+ function expandAndDumpTree(next)
+ {
+ InspectorTest.addResult("== Expanding: ==");
+ InspectorTest.expandElementsTree(callback);
+ function callback()
+ {
+ InspectorTest.dumpElementsTree(containerNode);
+ next();
+ }
+ }
+
function selectNodeAndDumpStyles(id, pseudoTypeName, callback)
{
if (pseudoTypeName)

Powered by Google App Engine
This is Rietveld 408576698