| 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 { | 372 { |
| 373 if (!section) | 373 if (!section) |
| 374 return; | 374 return; |
| 375 InspectorTest.addResult("[expanded] " + (section.element.classList.contains(
"no-affect") ? "[no-affect] " : "")); | 375 InspectorTest.addResult("[expanded] " + (section.element.classList.contains(
"no-affect") ? "[no-affect] " : "")); |
| 376 | 376 |
| 377 var medias = section._titleElement.querySelectorAll(".media-list .media"); | 377 var medias = section._titleElement.querySelectorAll(".media-list .media"); |
| 378 for (var i = 0; i < medias.length; ++i) { | 378 for (var i = 0; i < medias.length; ++i) { |
| 379 var media = medias[i]; | 379 var media = medias[i]; |
| 380 InspectorTest.addResult(media.textContent); | 380 InspectorTest.addResult(media.textContent); |
| 381 } | 381 } |
| 382 var selector = section._titleElement.querySelector(".selector"); | 382 var selector = section._titleElement.querySelector(".selector") || section._
titleElement.querySelector(".keyframe-key"); |
| 383 var selectorText = includeSelectorGroupMarks ? buildMarkedSelectors(selector
) : selector.textContent; | 383 var selectorText = includeSelectorGroupMarks ? buildMarkedSelectors(selector
) : selector.textContent; |
| 384 // Dump " {". | 384 // Dump " {". |
| 385 selectorText += selector.nextSibling.textContent; | 385 selectorText += selector.nextSibling.textContent; |
| 386 var anchor = section._titleElement.querySelector(".styles-section-subtitle")
; | 386 var anchor = section._titleElement.querySelector(".styles-section-subtitle")
; |
| 387 if (anchor) { | 387 if (anchor) { |
| 388 var anchorText = extractText(anchor); | 388 var anchorText = extractText(anchor); |
| 389 selectorText += String.sprintf(" (%s)", anchorText); | 389 selectorText += String.sprintf(" (%s)", anchorText); |
| 390 } | 390 } |
| 391 InspectorTest.addResult(selectorText); | 391 InspectorTest.addResult(selectorText); |
| 392 | 392 |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 InspectorTest.dumpAnimationTimeline = function(timeline) | 970 InspectorTest.dumpAnimationTimeline = function(timeline) |
| 971 { | 971 { |
| 972 for (var ui of timeline._uiAnimations) { | 972 for (var ui of timeline._uiAnimations) { |
| 973 InspectorTest.addResult(ui.animation().type()); | 973 InspectorTest.addResult(ui.animation().type()); |
| 974 InspectorTest.addResult(ui._nameElement.innerHTML); | 974 InspectorTest.addResult(ui._nameElement.innerHTML); |
| 975 InspectorTest.addResult(ui._svg.innerHTML); | 975 InspectorTest.addResult(ui._svg.innerHTML); |
| 976 } | 976 } |
| 977 } | 977 } |
| 978 | 978 |
| 979 }; | 979 }; |
| OLD | NEW |