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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 printStyleSection(section, omitLonghands, includeSelectorGroupMarks)
; | 349 printStyleSection(section, omitLonghands, includeSelectorGroupMarks)
; |
350 } | 350 } |
351 } | 351 } |
352 } | 352 } |
353 | 353 |
354 function printStyleSection(section, omitLonghands, includeSelectorGroupMarks) | 354 function printStyleSection(section, omitLonghands, includeSelectorGroupMarks) |
355 { | 355 { |
356 if (!section) | 356 if (!section) |
357 return; | 357 return; |
358 InspectorTest.addResult("[expanded] " + (section.element.classList.contains(
"no-affect") ? "[no-affect] " : "")); | 358 InspectorTest.addResult("[expanded] " + (section.element.classList.contains(
"no-affect") ? "[no-affect] " : "")); |
359 var chainEntries = section.titleElement.querySelectorAll(".media-list .media
"); | 359 var chainEntries = section._titleElement.querySelectorAll(".media-list .medi
a"); |
360 chainEntries = Array.prototype.slice.call(chainEntries); | 360 chainEntries = Array.prototype.slice.call(chainEntries); |
361 if (section.titleElement.children[1]) | 361 if (section._titleElement.children[1]) |
362 chainEntries.push(section.titleElement.children[1]); | 362 chainEntries.push(section._titleElement.children[1]); |
363 | 363 |
364 for (var j = 0; j < chainEntries.length; ++j) { | 364 for (var j = 0; j < chainEntries.length; ++j) { |
365 var chainEntry = chainEntries[j]; | 365 var chainEntry = chainEntries[j]; |
366 var entryLine = includeSelectorGroupMarks ? buildMarkedSelectors(chainEn
try.children[1]) : chainEntry.children[1].textContent; | 366 var entryLine = includeSelectorGroupMarks ? buildMarkedSelectors(chainEn
try.children[1]) : chainEntry.children[1].textContent; |
367 if (chainEntry.children[2]) | 367 if (chainEntry.children[2]) |
368 entryLine += " " + chainEntry.children[2].textContent; | 368 entryLine += " " + chainEntry.children[2].textContent; |
369 entryLine += " (" + extractText(chainEntry.children[0]) + ")"; | 369 entryLine += " (" + extractText(chainEntry.children[0]) + ")"; |
370 InspectorTest.addResult(entryLine); | 370 InspectorTest.addResult(entryLine); |
371 } | 371 } |
372 InspectorTest.dumpStyleTreeOutline(section.propertiesTreeOutline, omitLongha
nds ? 1 : 2); | 372 InspectorTest.dumpStyleTreeOutline(section.propertiesTreeOutline, omitLongha
nds ? 1 : 2); |
(...skipping 620 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 |