| 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._stylesWidget._sectionBlocks[0].sections
[0]; | 7 return WebInspector.panels.elements._stylesWidget._sectionBlocks[0].sections
[0]; |
| 8 } | 8 } |
| 9 | 9 |
| 10 InspectorTest.computedStyleWidget = function() | 10 InspectorTest.computedStyleWidget = function() |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 } | 367 } |
| 368 printStyleSection(section, omitLonghands, includeSelectorGroupMarks)
; | 368 printStyleSection(section, omitLonghands, includeSelectorGroupMarks)
; |
| 369 } | 369 } |
| 370 } | 370 } |
| 371 } | 371 } |
| 372 | 372 |
| 373 function printStyleSection(section, omitLonghands, includeSelectorGroupMarks) | 373 function printStyleSection(section, omitLonghands, includeSelectorGroupMarks) |
| 374 { | 374 { |
| 375 if (!section) | 375 if (!section) |
| 376 return; | 376 return; |
| 377 InspectorTest.addResult("[expanded] " + (section.element.classList.contains(
"no-affect") ? "[no-affect] " : "")); | 377 InspectorTest.addResult("[expanded] " + (section.propertiesTreeOutline.eleme
nt.classList.contains("no-affect") ? "[no-affect] " : "")); |
| 378 | 378 |
| 379 var medias = section._titleElement.querySelectorAll(".media-list .media"); | 379 var medias = section._titleElement.querySelectorAll(".media-list .media"); |
| 380 for (var i = 0; i < medias.length; ++i) { | 380 for (var i = 0; i < medias.length; ++i) { |
| 381 var media = medias[i]; | 381 var media = medias[i]; |
| 382 InspectorTest.addResult(media.textContent); | 382 InspectorTest.addResult(media.textContent); |
| 383 } | 383 } |
| 384 var selector = section._titleElement.querySelector(".selector") || section._
titleElement.querySelector(".keyframe-key"); | 384 var selector = section._titleElement.querySelector(".selector") || section._
titleElement.querySelector(".keyframe-key"); |
| 385 var selectorText = includeSelectorGroupMarks ? buildMarkedSelectors(selector
) : selector.textContent; | 385 var selectorText = includeSelectorGroupMarks ? buildMarkedSelectors(selector
) : selector.textContent; |
| 386 // Dump " {". | 386 // Dump " {". |
| 387 selectorText += selector.nextSibling.textContent; | 387 selectorText += selector.nextSibling.textContent; |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 InspectorTest.dumpAnimationTimeline = function(timeline) | 977 InspectorTest.dumpAnimationTimeline = function(timeline) |
| 978 { | 978 { |
| 979 for (var ui of timeline._uiAnimations) { | 979 for (var ui of timeline._uiAnimations) { |
| 980 InspectorTest.addResult(ui.animation().type()); | 980 InspectorTest.addResult(ui.animation().type()); |
| 981 InspectorTest.addResult(ui._nameElement.innerHTML); | 981 InspectorTest.addResult(ui._nameElement.innerHTML); |
| 982 InspectorTest.addResult(ui._svg.innerHTML); | 982 InspectorTest.addResult(ui._svg.innerHTML); |
| 983 } | 983 } |
| 984 } | 984 } |
| 985 | 985 |
| 986 }; | 986 }; |
| OLD | NEW |