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

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

Issue 698113006: DevTools: [SSP] update ranges for all section in sidebar pane (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline test 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/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 311592c9467f56b4fb05967a52817112de9a4180..506072cbc561260b85235239615d699a9bfc0478 100644
--- a/LayoutTests/http/tests/inspector/elements-test.js
+++ b/LayoutTests/http/tests/inspector/elements-test.js
@@ -368,11 +368,16 @@ InspectorTest.getElementStylePropertyTreeItem = function(propertyName)
// FIXME: this returns the first tree item found (may fail for same-named properties in a style).
InspectorTest.getMatchedStylePropertyTreeItem = function(propertyName)
{
- var styleSections = WebInspector.panels.elements.sidebarPanes.styles.sections[0];
- for (var i = 1; i < styleSections.length; ++i) {
- var treeItem = InspectorTest.getFirstPropertyTreeItemForSection(styleSections[i], propertyName);
- if (treeItem)
- return treeItem;
+ for (var pseudoId in WebInspector.panels.elements.sidebarPanes.styles.sections) {
vsevik 2014/11/05 06:49:11 Extract WebInspector.panels.elements.sidebarPanes.
lushnikov 2014/11/05 08:51:09 Done.
+ var styleSections = WebInspector.panels.elements.sidebarPanes.styles.sections[pseudoId];
+ for (var i = 0; i < styleSections.length; ++i) {
+ var section = styleSections[i];
+ if (section.computedStyle)
+ continue;
+ var treeItem = InspectorTest.getFirstPropertyTreeItemForSection(section, propertyName);
+ if (treeItem)
+ return treeItem;
+ }
}
return null;
};

Powered by Google App Engine
This is Rietveld 408576698