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

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

Issue 220403005: DevTools: synchronize links in StylesSidebarPane on edits. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: extract common parts into _applyNewStyle method Created 6 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/styles/resources/styles-update-links.css » ('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 e5fcdd250766209c838f199d497c3d0cbb45a378..b969a49de0767e9b5c8020b108b176cd7e495b48 100644
--- a/LayoutTests/http/tests/inspector/elements-test.js
+++ b/LayoutTests/http/tests/inspector/elements-test.js
@@ -218,7 +218,11 @@ InspectorTest.dumpSelectedElementStyles = function(excludeComputed, excludeMatch
if (section.element.previousSibling && section.element.previousSibling.className === "sidebar-separator")
InspectorTest.addResult("======== " + section.element.previousSibling.textContent + " ========");
InspectorTest.addResult((section.expanded ? "[expanded] " : "[collapsed] ") + (section.noAffect ? "[no-affect] " : ""));
- var chainEntries = section.titleElement.children;
+ var chainEntries = section.titleElement.querySelectorAll(".media-list .media");
+ chainEntries = Array.prototype.slice.call(chainEntries);
+ if (section.titleElement.children[1])
+ chainEntries.push(section.titleElement.children[1]);
+
for (var j = 0; j < chainEntries.length; ++j) {
var chainEntry = chainEntries[j];
var entryLine = includeSelectorGroupMarks ? buildMarkedSelectors(chainEntry.children[1]) : chainEntry.children[1].textContent;
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/styles/resources/styles-update-links.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698