@@ -188,7 +188,7 @@ ElementsTestRunner.computedStyleWidget = function() {
188
188
return Elements . ElementsPanel . ElementsPanel . instance ( ) . computedStyleWidget ;
189
189
} ;
190
190
191
- ElementsTestRunner . dumpComputedStyle = async function ( doNotAutoExpand , printInnerText ) {
191
+ ElementsTestRunner . dumpComputedStyle = async function ( doNotAutoExpand ) {
192
192
const computed = ElementsTestRunner . computedStyleWidget ( ) ;
193
193
const treeOutline = computed . propertiesOutline . querySelector ( 'devtools-tree-outline' ) ;
194
194
const children = treeOutline . shadowRoot . querySelector ( '[role="treeitem"]' ) ;
@@ -229,7 +229,7 @@ ElementsTestRunner.dumpComputedStyle = async function(doNotAutoExpand, printInne
229
229
}
230
230
231
231
function text ( node ) {
232
- return printInnerText ? node . innerText : node . textContent ;
232
+ return node . innerText ;
233
233
}
234
234
} ;
235
235
@@ -471,11 +471,11 @@ ElementsTestRunner.dumpRenderedMatchedStyles = function() {
471
471
} ;
472
472
473
473
ElementsTestRunner . dumpSelectedElementStyles =
474
- async function ( excludeComputed , excludeMatched , omitLonghands , includeSelectorGroupMarks , printInnerText ) {
474
+ async function ( excludeComputed , excludeMatched , omitLonghands , includeSelectorGroupMarks ) {
475
475
const sectionBlocks = Elements . ElementsPanel . ElementsPanel . instance ( ) . stylesWidget . sectionBlocks ;
476
476
477
477
if ( ! excludeComputed ) {
478
- await ElementsTestRunner . dumpComputedStyle ( false /* doNotAutoExpand */ , printInnerText ) ;
478
+ await ElementsTestRunner . dumpComputedStyle ( false /* doNotAutoExpand */ ) ;
479
479
}
480
480
481
481
for ( const block of sectionBlocks ) {
@@ -494,16 +494,16 @@ ElementsTestRunner.dumpSelectedElementStyles =
494
494
TestRunner . addResult ( '======== ' + text ( section . element . previousSibling ) + nodeDescription + ' ========' ) ;
495
495
}
496
496
497
- await printStyleSection ( section , omitLonghands , includeSelectorGroupMarks , printInnerText ) ;
497
+ await printStyleSection ( section , omitLonghands , includeSelectorGroupMarks ) ;
498
498
}
499
499
}
500
500
501
501
function text ( node ) {
502
- return printInnerText ? node . innerText : node . textContent ;
502
+ return node . innerText ;
503
503
}
504
504
} ;
505
505
506
- async function printStyleSection ( section , omitLonghands , includeSelectorGroupMarks , printInnerText ) {
506
+ async function printStyleSection ( section , omitLonghands , includeSelectorGroupMarks ) {
507
507
if ( ! section ) {
508
508
return ;
509
509
}
@@ -533,14 +533,14 @@ async function printStyleSection(section, omitLonghands, includeSelectorGroupMar
533
533
}
534
534
535
535
TestRunner . addResult ( selectorText ) ;
536
- ElementsTestRunner . dumpStyleTreeOutline ( section . propertiesTreeOutline , ( omitLonghands ? 1 : 2 ) , printInnerText ) ;
536
+ ElementsTestRunner . dumpStyleTreeOutline ( section . propertiesTreeOutline , ( omitLonghands ? 1 : 2 ) ) ;
537
537
if ( ! section . showAllButton . classList . contains ( 'hidden' ) ) {
538
538
TestRunner . addResult ( text ( section . showAllButton ) ) ;
539
539
}
540
540
TestRunner . addResult ( '' ) ;
541
541
542
542
function text ( node ) {
543
- return printInnerText ? node . innerText : node . textContent ;
543
+ return node . innerText ;
544
544
}
545
545
}
546
546
@@ -688,17 +688,16 @@ ElementsTestRunner.getFirstPropertyTreeItemForSection = function(section, proper
688
688
return null ;
689
689
} ;
690
690
691
- ElementsTestRunner . dumpStyleTreeOutline = function ( treeItem , depth , printInnerText ) {
691
+ ElementsTestRunner . dumpStyleTreeOutline = function ( treeItem , depth ) {
692
692
const children = treeItem . rootElement ( ) . children ( ) ;
693
693
694
694
for ( let i = 0 ; i < children . length ; ++ i ) {
695
- ElementsTestRunner . dumpStyleTreeItem ( children [ i ] , '' , depth || 2 , printInnerText ) ;
695
+ ElementsTestRunner . dumpStyleTreeItem ( children [ i ] , '' , depth || 2 ) ;
696
696
}
697
697
} ;
698
698
699
- ElementsTestRunner . dumpStyleTreeItem = function ( treeItem , prefix , depth , printInnerText ) {
700
- const textContent = printInnerText ? treeItem . listItemElement . innerText :
701
- TestRunner . textContentWithoutStyles ( treeItem . listItemElement ) ;
699
+ ElementsTestRunner . dumpStyleTreeItem = function ( treeItem , prefix , depth ) {
700
+ const textContent = treeItem . listItemElement . innerText ;
702
701
if ( textContent . indexOf ( ' width:' ) !== - 1 || textContent . indexOf ( ' height:' ) !== - 1 ) {
703
702
return ;
704
703
}
@@ -726,7 +725,7 @@ ElementsTestRunner.dumpStyleTreeItem = function(treeItem, prefix, depth, printIn
726
725
const children = treeItem . children ( ) ;
727
726
728
727
for ( let i = 0 ; children && i < children . length ; ++ i ) {
729
- ElementsTestRunner . dumpStyleTreeItem ( children [ i ] , prefix + ' ' , depth , printInnerText ) ;
728
+ ElementsTestRunner . dumpStyleTreeItem ( children [ i ] , prefix + ' ' , depth ) ;
730
729
}
731
730
}
732
731
} ;
0 commit comments