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

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

Issue 720793003: DevTools: Replace visibleChildrenCount with hasVisibleChildren in ElementsTreeOutline. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Created 6 years, 1 month 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 | « no previous file | LayoutTests/inspector/elements/hide-shortcut.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7a4ccd533cef6ab68c103f8d6e4ddc332678ca85..8539fa118b3806e8a97d73e949c871923f04125d 100644
--- a/LayoutTests/http/tests/inspector/elements-test.js
+++ b/LayoutTests/http/tests/inspector/elements-test.js
@@ -21,7 +21,9 @@ InspectorTest.findNode = function(matchFunction, callback)
if (result)
return;
- var children = (node.children() || []).concat(node.shadowRoots()).concat(Object.values(node.pseudoElements() || {}));
+ var pseudoElementsMap = node.pseudoElements();
+ var pseudoElements = pseudoElementsMap ? pseudoElementsMap.valuesArray() : [];
+ var children = (node.children() || []).concat(node.shadowRoots()).concat(pseudoElements);
if (node.templateContent())
children.push(node.templateContent());
else if (node.importedDocument())
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/hide-shortcut.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698