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

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

Issue 699873002: DevTools: [SSP] refactoring to remove styleRule.section property (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/front_end/elements/StylesSidebarPane.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 function getInspectorHighlightJSON(nodeId, opt_frameId) 1 function getInspectorHighlightJSON(nodeId, opt_frameId)
2 { 2 {
3 var doc = document; 3 var doc = document;
4 if (opt_frameId) 4 if (opt_frameId)
5 doc = document.getElementById(opt_frameId).contentDocument; 5 doc = document.getElementById(opt_frameId).contentDocument;
6 return window.internals.inspectorHighlightJSON(doc.getElementById(nodeId)); 6 return window.internals.inspectorHighlightJSON(doc.getElementById(nodeId));
7 } 7 }
8 8
9 var initialize_ElementTest = function() { 9 var initialize_ElementTest = function() {
10 10
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 for (var i = 0; i < sections.length; ++i) { 228 for (var i = 0; i < sections.length; ++i) {
229 var section = sections[i]; 229 var section = sections[i];
230 if (section.computedStyle && excludeComputed) 230 if (section.computedStyle && excludeComputed)
231 continue; 231 continue;
232 if (section.rule && excludeMatched) 232 if (section.rule && excludeMatched)
233 continue; 233 continue;
234 if (section.element && section.element.classList.contains("user-rule ") && !WebInspector.settings.showUserAgentStyles.get()) 234 if (section.element && section.element.classList.contains("user-rule ") && !WebInspector.settings.showUserAgentStyles.get())
235 continue; 235 continue;
236 if (section.element.previousSibling && section.element.previousSibli ng.className === "sidebar-separator") 236 if (section.element.previousSibling && section.element.previousSibli ng.className === "sidebar-separator")
237 InspectorTest.addResult("======== " + section.element.previousSi bling.textContent + " ========"); 237 InspectorTest.addResult("======== " + section.element.previousSi bling.textContent + " ========");
238 InspectorTest.addResult((section.expanded ? "[expanded] " : "[collap sed] ") + (section.noAffect ? "[no-affect] " : "")); 238 InspectorTest.addResult((section.expanded ? "[expanded] " : "[collap sed] ") + (section.element.classList.contains("no-affect") ? "[no-affect] " : "" ));
239 var chainEntries = section.titleElement.querySelectorAll(".media-lis t .media"); 239 var chainEntries = section.titleElement.querySelectorAll(".media-lis t .media");
240 chainEntries = Array.prototype.slice.call(chainEntries); 240 chainEntries = Array.prototype.slice.call(chainEntries);
241 if (section.titleElement.children[1]) 241 if (section.titleElement.children[1])
242 chainEntries.push(section.titleElement.children[1]); 242 chainEntries.push(section.titleElement.children[1]);
243 243
244 for (var j = 0; j < chainEntries.length; ++j) { 244 for (var j = 0; j < chainEntries.length; ++j) {
245 var chainEntry = chainEntries[j]; 245 var chainEntry = chainEntries[j];
246 var entryLine = includeSelectorGroupMarks ? buildMarkedSelectors (chainEntry.children[1]) : chainEntry.children[1].textContent; 246 var entryLine = includeSelectorGroupMarks ? buildMarkedSelectors (chainEntry.children[1]) : chainEntry.children[1].textContent;
247 if (chainEntry.children[2]) 247 if (chainEntry.children[2])
248 entryLine += " " + chainEntry.children[2].textContent; 248 entryLine += " " + chainEntry.children[2].textContent;
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 function innerCallback(result) 788 function innerCallback(result)
789 { 789 {
790 InspectorTest.addResult(nodeId + ": " + result.description); 790 InspectorTest.addResult(nodeId + ": " + result.description);
791 callback(); 791 callback();
792 } 792 }
793 opt_frameId = opt_frameId || ""; 793 opt_frameId = opt_frameId || "";
794 InspectorTest.evaluateInPage("getInspectorHighlightJSON(\"" + nodeId + "\", \"" + opt_frameId + "\")", innerCallback); 794 InspectorTest.evaluateInPage("getInspectorHighlightJSON(\"" + nodeId + "\", \"" + opt_frameId + "\")", innerCallback);
795 } 795 }
796 796
797 }; 797 };
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/elements/StylesSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698