| OLD | NEW |
| 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 Loading... |
| 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 function innerCallback(result) | 782 function innerCallback(result) |
| 783 { | 783 { |
| 784 InspectorTest.addResult(nodeId + ": " + result.description); | 784 InspectorTest.addResult(nodeId + ": " + result.description); |
| 785 callback(); | 785 callback(); |
| 786 } | 786 } |
| 787 opt_frameId = opt_frameId || ""; | 787 opt_frameId = opt_frameId || ""; |
| 788 InspectorTest.evaluateInPage("getInspectorHighlightJSON(\"" + nodeId + "\",
\"" + opt_frameId + "\")", innerCallback); | 788 InspectorTest.evaluateInPage("getInspectorHighlightJSON(\"" + nodeId + "\",
\"" + opt_frameId + "\")", innerCallback); |
| 789 } | 789 } |
| 790 | 790 |
| 791 }; | 791 }; |
| OLD | NEW |