Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / inspector / layers-test.js
index 76ec232..6e019d7 100644 (file)
@@ -11,7 +11,7 @@ function initialize_LayerTreeTests()
     InspectorTest.labelForLayer = function(layer)
     {
         var node = WebInspector.domAgent.nodeForId(layer.nodeIdForSelfOrAncestor());
-        var label = WebInspector.DOMPresentationUtils.appropriateSelectorFor(node, false);
+        var label = WebInspector.DOMPresentationUtils.fullQualifiedSelector(node, false);
         var height = layer.height();
         var width = layer.width();
         if (height <= 200 && width <= 200)
@@ -67,8 +67,9 @@ function initialize_LayerTreeTests()
             InspectorTest._layerTreeModel.removeEventListener(WebInspector.LayerTreeModel.Events.LayerTreeChanged, eventHandler);
             callback();
         }
-        InspectorTest._layerTreeModel.addEventListener(WebInspector.LayerTreeModel.Events.LayerTreeChanged, eventHandler);
-        InspectorTest.evaluateInPage(expression, function() {});
+        InspectorTest.evaluateInPage(expression, function() {
+            InspectorTest._layerTreeModel.addEventListener(WebInspector.LayerTreeModel.Events.LayerTreeChanged, eventHandler);
+        });
     }
 
     InspectorTest.findLayerByNodeIdAttribute = function(nodeIdAttribute)
@@ -100,5 +101,4 @@ function initialize_LayerTreeTests()
             callback();
         }
     }
-
 }