| OLD | NEW |
| 1 var initialize_ElementTest = function() { | 1 var initialize_ElementTest = function() { |
| 2 | 2 |
| 3 InspectorTest.preloadPanel("elements"); | 3 InspectorTest.preloadPanel("elements"); |
| 4 | 4 |
| 5 InspectorTest.inlineStyleSection = function() | 5 InspectorTest.inlineStyleSection = function() |
| 6 { | 6 { |
| 7 return WebInspector.panels.elements.sidebarPanes.styles._sectionBlocks[0].se
ctions[0]; | 7 return WebInspector.panels.elements.sidebarPanes.styles._sectionBlocks[0].se
ctions[0]; |
| 8 } | 8 } |
| 9 | 9 |
| 10 InspectorTest.computedStyleWidget = function() | 10 InspectorTest.computedStyleWidget = function() |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 } | 348 } |
| 349 } | 349 } |
| 350 | 350 |
| 351 InspectorTest.dumpSelectedElementStyles = function(excludeComputed, excludeMatch
ed, omitLonghands, includeSelectorGroupMarks) | 351 InspectorTest.dumpSelectedElementStyles = function(excludeComputed, excludeMatch
ed, omitLonghands, includeSelectorGroupMarks) |
| 352 { | 352 { |
| 353 var sectionBlocks = WebInspector.panels.elements.sidebarPanes.styles._sectio
nBlocks; | 353 var sectionBlocks = WebInspector.panels.elements.sidebarPanes.styles._sectio
nBlocks; |
| 354 if (!excludeComputed) | 354 if (!excludeComputed) |
| 355 InspectorTest.dumpComputedStyle(); | 355 InspectorTest.dumpComputedStyle(); |
| 356 for (var block of sectionBlocks) { | 356 for (var block of sectionBlocks) { |
| 357 for (var section of block.sections) { | 357 for (var section of block.sections) { |
| 358 if (section.rule() && excludeMatched) | 358 if (section.style().parentRule && excludeMatched) |
| 359 continue; | 359 continue; |
| 360 if (section.element.previousSibling && section.element.previousSibli
ng.className === "sidebar-separator") { | 360 if (section.element.previousSibling && section.element.previousSibli
ng.className === "sidebar-separator") { |
| 361 var nodeDescription = ""; | 361 var nodeDescription = ""; |
| 362 if (section.element.previousSibling.firstElementChild) | 362 if (section.element.previousSibling.firstElementChild) |
| 363 nodeDescription = section.element.previousSibling.firstEleme
ntChild.shadowRoot.lastChild.textContent; | 363 nodeDescription = section.element.previousSibling.firstEleme
ntChild.shadowRoot.lastChild.textContent; |
| 364 InspectorTest.addResult("======== " + section.element.previousSi
bling.textContent + nodeDescription + " ========"); | 364 InspectorTest.addResult("======== " + section.element.previousSi
bling.textContent + nodeDescription + " ========"); |
| 365 } | 365 } |
| 366 printStyleSection(section, omitLonghands, includeSelectorGroupMarks)
; | 366 printStyleSection(section, omitLonghands, includeSelectorGroupMarks)
; |
| 367 } | 367 } |
| 368 } | 368 } |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 for (var ui of nodeRow.animations) { | 970 for (var ui of nodeRow.animations) { |
| 971 InspectorTest.addResult(ui.animation().type()); | 971 InspectorTest.addResult(ui.animation().type()); |
| 972 InspectorTest.addResult(ui._nameElement.outerHTML); | 972 InspectorTest.addResult(ui._nameElement.outerHTML); |
| 973 InspectorTest.addResult(ui._svg.outerHTML); | 973 InspectorTest.addResult(ui._svg.outerHTML); |
| 974 } | 974 } |
| 975 } | 975 } |
| 976 } | 976 } |
| 977 } | 977 } |
| 978 | 978 |
| 979 }; | 979 }; |
| OLD | NEW |