Index: third_party/WebKit/LayoutTests/inspector/components/datagrid-test.js |
diff --git a/third_party/WebKit/LayoutTests/inspector/components/datagrid-test.js b/third_party/WebKit/LayoutTests/inspector/components/datagrid-test.js |
index 55f0262ccebaf4eccb970b6ca442b67a8aee00a6..e4a8f5e1e3342ff9347021b0dc56b6c83d5eb727 100644 |
--- a/third_party/WebKit/LayoutTests/inspector/components/datagrid-test.js |
+++ b/third_party/WebKit/LayoutTests/inspector/components/datagrid-test.js |
@@ -28,21 +28,21 @@ InspectorTest.validateDataGrid = function(root) |
var children = root.children; |
for (var i = 0; i < children.length; ++i) { |
var child = children[i]; |
- if (child.parent !== root) |
+ if (child.parent() !== root) |
throw "Wrong parent for child " + child.data.id + " of " + root.data.id; |
if (child.nextSibling !== (i + 1 === children.length ? null : children[i + 1])) |
throw "Wrong child.nextSibling for " + child.data.id + " (" + i + " of " + children.length + ") "; |
if (child.previousSibling !== (i ? children[i - 1] : null)) |
throw "Wrong child.previousSibling for " + child.data.id + " (" + i + " of " + children.length + ") "; |
- if (child.parent && !child.parent._isRoot && child.depth !== root.depth + 1) |
+ if (child.parent() && !child.parent()._isRoot && child.depth !== root.depth + 1) |
throw "Wrong depth for " + child.data.id + " expected " + (root.depth + 1) + " but got " + child.depth; |
InspectorTest.validateDataGrid(child); |
} |
var selectedNode = root.dataGrid.selectedNode; |
- if (!root.parent && selectedNode) { |
+ if (!root.parent() && selectedNode) { |
if (!selectedNode.selectable) |
throw "Selected node is not selectable"; |
- for (var node = selectedNode; node && node !== root; node = node.parent) { } |
+ for (var node = selectedNode; node && node !== root; node = node.parent()) { } |
if (!node) |
throw "Selected node (" + selectedNode.data.id + ") is not within the DataGrid"; |
} |