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

Unified Diff: LayoutTests/inspector/elements/hide-shortcut.html

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
Index: LayoutTests/inspector/elements/hide-shortcut.html
diff --git a/LayoutTests/inspector/elements/hide-shortcut.html b/LayoutTests/inspector/elements/hide-shortcut.html
index a93a451d185c0835edcc248d850c33a725f10886..275c7ab101972cbd2f2100d07aa16940b6f371d4 100644
--- a/LayoutTests/inspector/elements/hide-shortcut.html
+++ b/LayoutTests/inspector/elements/hide-shortcut.html
@@ -89,22 +89,22 @@ function test()
function testToggleHideBeforePseudoShortcutOn(next)
{
- testPseudoToggle(WebInspector.DOMNode.PseudoElementNames.Before, next);
+ testPseudoToggle(parentNode.beforePseudoElement(), next);
},
function testToggleHideAfterPseudoShortcutOn(next)
{
- testPseudoToggle(WebInspector.DOMNode.PseudoElementNames.After, next);
+ testPseudoToggle(parentNode.afterPseudoElement(), next);
},
function testToggleHideBeforePseudoShortcutOff(next)
{
- testPseudoToggle(WebInspector.DOMNode.PseudoElementNames.Before, next);
+ testPseudoToggle(parentNode.beforePseudoElement(), next);
},
function testToggleHideAfterPseudoShortcutOff(next)
{
- testPseudoToggle(WebInspector.DOMNode.PseudoElementNames.After, next);
+ testPseudoToggle(parentNode.afterPseudoElement(), next);
},
function testToggleHideShortcutOnInFrame(next)
@@ -126,9 +126,8 @@ function test()
}
]);
- function testPseudoToggle(pseudoType, next)
+ function testPseudoToggle(pseudoNode, next)
{
- var pseudoNode = parentNode.pseudoElements()[pseudoType];
treeOutline._toggleHideShortcut(pseudoNode, callback);
function callback()
@@ -138,7 +137,7 @@ function test()
function callback2(style)
{
- InspectorTest.addResult("::" + pseudoType + " node visibility: '" + style.getLiveProperty("visibility").value + "'");
+ InspectorTest.addResult("::" + pseudoNode.pseudoType() + " node visibility: '" + style.getLiveProperty("visibility").value + "'");
next();
}
}
« no previous file with comments | « LayoutTests/http/tests/inspector/elements-test.js ('k') | LayoutTests/inspector/elements/styles/pseudo-elements.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698