| 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 UI.panels.elements._stylesWidget._sectionBlocks[0].sections[0]; | 7 return UI.panels.elements._stylesWidget._sectionBlocks[0].sections[0]; |
| 8 } | 8 } |
| 9 | 9 |
| 10 InspectorTest.computedStyleWidget = function() | 10 InspectorTest.computedStyleWidget = function() |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 InspectorTest.dumpStyleTreeOutline(section.propertiesTreeOutline, omitLongha
nds ? 1 : 2); | 395 InspectorTest.dumpStyleTreeOutline(section.propertiesTreeOutline, omitLongha
nds ? 1 : 2); |
| 396 InspectorTest.addResult(""); | 396 InspectorTest.addResult(""); |
| 397 } | 397 } |
| 398 | 398 |
| 399 function extractLinkText(element) | 399 function extractLinkText(element) |
| 400 { | 400 { |
| 401 var anchor = element.nodeName === "A" ? element : element.querySelector("a")
; | 401 var anchor = element.nodeName === "A" ? element : element.querySelector("a")
; |
| 402 if (!anchor) | 402 if (!anchor) |
| 403 return element.textContent; | 403 return element.textContent; |
| 404 var anchorText = anchor.textContent; | 404 var anchorText = anchor.textContent; |
| 405 var uiLocation = anchor[Components.Linkifier._uiLocationSymbol]; | 405 var info = Components.Linkifier._linkInfo(anchor); |
| 406 var uiLocation = info && info.uiLocation; |
| 406 var anchorTarget = uiLocation ? (uiLocation.uiSourceCode.name() + ":" + (uiL
ocation.lineNumber + 1) + ":" + (uiLocation.columnNumber + 1)) : ""; | 407 var anchorTarget = uiLocation ? (uiLocation.uiSourceCode.name() + ":" + (uiL
ocation.lineNumber + 1) + ":" + (uiLocation.columnNumber + 1)) : ""; |
| 407 return anchorText + " -> " + anchorTarget; | 408 return anchorText + " -> " + anchorTarget; |
| 408 } | 409 } |
| 409 | 410 |
| 410 function buildMarkedSelectors(element) | 411 function buildMarkedSelectors(element) |
| 411 { | 412 { |
| 412 var result = ""; | 413 var result = ""; |
| 413 for (var node = element.firstChild; node; node = node.nextSibling) { | 414 for (var node = element.firstChild; node; node = node.nextSibling) { |
| 414 if (node.nodeType === Node.ELEMENT_NODE && node.classList.contains("sele
ctor-matches")) | 415 if (node.nodeType === Node.ELEMENT_NODE && node.classList.contains("sele
ctor-matches")) |
| 415 result += "[$" + node.textContent + "$]"; | 416 result += "[$" + node.textContent + "$]"; |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 InspectorTest.dumpAnimationTimeline = function(timeline) | 971 InspectorTest.dumpAnimationTimeline = function(timeline) |
| 971 { | 972 { |
| 972 for (var ui of timeline._uiAnimations) { | 973 for (var ui of timeline._uiAnimations) { |
| 973 InspectorTest.addResult(ui.animation().type()); | 974 InspectorTest.addResult(ui.animation().type()); |
| 974 InspectorTest.addResult(ui._nameElement.innerHTML); | 975 InspectorTest.addResult(ui._nameElement.innerHTML); |
| 975 InspectorTest.addResult(ui._svg.innerHTML); | 976 InspectorTest.addResult(ui._svg.innerHTML); |
| 976 } | 977 } |
| 977 } | 978 } |
| 978 | 979 |
| 979 }; | 980 }; |
| OLD | NEW |