| 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 } | 371 } |
| 372 InspectorTest.dumpStyleTreeOutline(section.propertiesTreeOutline, omitLongha
nds ? 1 : 2); | 372 InspectorTest.dumpStyleTreeOutline(section.propertiesTreeOutline, omitLongha
nds ? 1 : 2); |
| 373 InspectorTest.addResult(""); | 373 InspectorTest.addResult(""); |
| 374 } | 374 } |
| 375 | 375 |
| 376 function extractText(element) | 376 function extractText(element) |
| 377 { | 377 { |
| 378 var text = element.textContent; | 378 var text = element.textContent; |
| 379 if (text) | 379 if (text) |
| 380 return text; | 380 return text; |
| 381 var anchor = element.querySelector("[data-uncopyable]"); | 381 var anchor = element.hasAttribute("data-uncopyable") ? element : element.que
rySelector("[data-uncopyable]"); |
| 382 if (!anchor) | 382 if (!anchor) |
| 383 return ""; | 383 return ""; |
| 384 var anchorText = anchor.getAttribute("data-uncopyable"); | 384 var anchorText = anchor.getAttribute("data-uncopyable"); |
| 385 var uiLocation = anchor[WebInspector.Linkifier._uiLocationSymbol]; | 385 var uiLocation = anchor[WebInspector.Linkifier._uiLocationSymbol]; |
| 386 var anchorTarget = uiLocation ? (uiLocation.uiSourceCode.name() + ":" + (uiL
ocation.lineNumber + 1) + ":" + (uiLocation.columnNumber + 1)) : ""; | 386 var anchorTarget = uiLocation ? (uiLocation.uiSourceCode.name() + ":" + (uiL
ocation.lineNumber + 1) + ":" + (uiLocation.columnNumber + 1)) : ""; |
| 387 return anchorText + " -> " + anchorTarget; | 387 return anchorText + " -> " + anchorTarget; |
| 388 } | 388 } |
| 389 | 389 |
| 390 function buildMarkedSelectors(element) | 390 function buildMarkedSelectors(element) |
| 391 { | 391 { |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 for (nodeRow of nodeUI._rows) { | 993 for (nodeRow of nodeUI._rows) { |
| 994 for (var ui of nodeRow.animations) { | 994 for (var ui of nodeRow.animations) { |
| 995 InspectorTest.addResult(ui._nameElement.outerHTML); | 995 InspectorTest.addResult(ui._nameElement.outerHTML); |
| 996 InspectorTest.addResult(ui._svg.outerHTML); | 996 InspectorTest.addResult(ui._svg.outerHTML); |
| 997 } | 997 } |
| 998 } | 998 } |
| 999 } | 999 } |
| 1000 } | 1000 } |
| 1001 | 1001 |
| 1002 }; | 1002 }; |
| OLD | NEW |