Index: LayoutTests/http/tests/inspector/layers-test.js |
diff --git a/LayoutTests/http/tests/inspector/layers-test.js b/LayoutTests/http/tests/inspector/layers-test.js |
index ac66c3cc49ac84702fe17eb5043d6f0976e25eb2..958e707a624bb22225e08d5f3da014e57cd6edd9 100644 |
--- a/LayoutTests/http/tests/inspector/layers-test.js |
+++ b/LayoutTests/http/tests/inspector/layers-test.js |
@@ -11,7 +11,7 @@ function initialize_LayerTreeTests() |
InspectorTest.labelForLayer = function(layer) |
{ |
var node = WebInspector.domAgent.nodeForId(layer.nodeIdForSelfOrAncestor()); |
- var label = WebInspector.DOMPresentationUtils.fullQualifiedSelector(node, false); |
+ var label = node ? WebInspector.DOMPresentationUtils.fullQualifiedSelector(node, false) : "<invalid node id>"; |
var height = layer.height(); |
var width = layer.width(); |
if (height <= 200 && width <= 200) |