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)
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)
callback();
}
}
-
}