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

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: fixup 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/styles/styles-update-links.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 311592c9467f56b4fb05967a52817112de9a4180..8489d560e64b57ccbc628eb89b31d565f26310ef 100644
--- a/LayoutTests/http/tests/inspector/elements-test.js
+++ b/LayoutTests/http/tests/inspector/elements-test.js
@@ -368,11 +368,17 @@ 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;
+ var sections = WebInspector.panels.elements.sidebarPanes.styles.sections;
+ for (var pseudoId in sections) {
+ var styleSections = 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;
};
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/styles/styles-update-links.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698