Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / elements / styles / pseudo-elements.html
index 02a0f6d..f7e861a 100644 (file)
@@ -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)
@@ -194,17 +194,28 @@ function test()
         function domCallback()
         {
             WebInspector.domModel.removeEventListener(eventName, domCallback, this);
-            WebInspector.inspectorView.panel("elements").treeOutline.addEventListener(WebInspector.ElementsTreeOutline.Events.ElementsTreeUpdated, treeCallback, this);
+            InspectorTest.firstElementsTreeOutline().addEventListener(WebInspector.ElementsTreeOutline.Events.ElementsTreeUpdated, treeCallback, this);
         }
 
         function treeCallback()
         {
-            WebInspector.inspectorView.panel("elements").treeOutline.removeEventListener(WebInspector.ElementsTreeOutline.Events.ElementsTreeUpdated, treeCallback, this);
+            InspectorTest.firstElementsTreeOutline().removeEventListener(WebInspector.ElementsTreeOutline.Events.ElementsTreeUpdated, treeCallback, this);
             InspectorTest.dumpElementsTree(containerNode);
             next();
         }
     }
 
+    function expandAndDumpTree(next)
+    {
+          InspectorTest.addResult("== Expanding: ==");
+          InspectorTest.expandElementsTree(callback);
+          function callback()
+          {
+              InspectorTest.dumpElementsTree(containerNode);
+              next();
+          }
+    }
+
     function selectNodeAndDumpStyles(id, pseudoTypeName, callback)
     {
         if (pseudoTypeName)