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

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

Issue 944343002: DevTools: migrate treeoutline from hasChildren to is/setExpandable(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
Index: LayoutTests/http/tests/inspector/elements-test.js
diff --git a/LayoutTests/http/tests/inspector/elements-test.js b/LayoutTests/http/tests/inspector/elements-test.js
index 69b9e44f7714553b9d8bbb1467002fb2484221af..806834286c66fe9bf30b03b1a03ae1b8c6a73baf 100644
--- a/LayoutTests/http/tests/inspector/elements-test.js
+++ b/LayoutTests/http/tests/inspector/elements-test.js
@@ -492,7 +492,7 @@ InspectorTest.dumpElementsTree = function(rootNode, depth, resultsArray)
{
if (!treeItem.root) {
var expander;
- if (treeItem.hasChildren) {
+ if (treeItem.isExpandable()) {
if (treeItem.expanded)
expander = "- ";
else
@@ -595,7 +595,7 @@ InspectorTest.expandElementsTree = function(callback)
var children = treeItem.children();
for (var i = 0; children && i < children.length; ++i) {
var child = children[i];
- if (child.hasChildren && !child.expanded) {
+ if (child.isExpandable() && !child.expanded) {
child.expand();
expandedSomething = true;
}

Powered by Google App Engine
This is Rietveld 408576698