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

Unified Diff: LayoutTests/http/tests/inspector/layers-test.js

Issue 195813010: DevTools: avoid using stale front-end node ids. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 9 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/layers/layer-tree-model.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/layers/layer-tree-model.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698