@@ -188,7 +188,7 @@ ElementsTestRunner.computedStyleWidget = function() {
188188 return Elements . ElementsPanel . ElementsPanel . instance ( ) . computedStyleWidget ;
189189} ;
190190
191- ElementsTestRunner . dumpComputedStyle = async function ( doNotAutoExpand , printInnerText ) {
191+ ElementsTestRunner . dumpComputedStyle = async function ( doNotAutoExpand ) {
192192 const computed = ElementsTestRunner . computedStyleWidget ( ) ;
193193 const treeOutline = computed . propertiesOutline . querySelector ( 'devtools-tree-outline' ) ;
194194 const children = treeOutline . shadowRoot . querySelector ( '[role="treeitem"]' ) ;
@@ -229,7 +229,7 @@ ElementsTestRunner.dumpComputedStyle = async function(doNotAutoExpand, printInne
229229 }
230230
231231 function text ( node ) {
232- return printInnerText ? node . innerText : node . textContent ;
232+ return node . innerText ;
233233 }
234234} ;
235235
@@ -471,11 +471,11 @@ ElementsTestRunner.dumpRenderedMatchedStyles = function() {
471471} ;
472472
473473ElementsTestRunner . dumpSelectedElementStyles =
474- async function ( excludeComputed , excludeMatched , omitLonghands , includeSelectorGroupMarks , printInnerText ) {
474+ async function ( excludeComputed , excludeMatched , omitLonghands , includeSelectorGroupMarks ) {
475475 const sectionBlocks = Elements . ElementsPanel . ElementsPanel . instance ( ) . stylesWidget . sectionBlocks ;
476476
477477 if ( ! excludeComputed ) {
478- await ElementsTestRunner . dumpComputedStyle ( false /* doNotAutoExpand */ , printInnerText ) ;
478+ await ElementsTestRunner . dumpComputedStyle ( false /* doNotAutoExpand */ ) ;
479479 }
480480
481481 for ( const block of sectionBlocks ) {
@@ -494,16 +494,16 @@ ElementsTestRunner.dumpSelectedElementStyles =
494494 TestRunner . addResult ( '======== ' + text ( section . element . previousSibling ) + nodeDescription + ' ========' ) ;
495495 }
496496
497- await printStyleSection ( section , omitLonghands , includeSelectorGroupMarks , printInnerText ) ;
497+ await printStyleSection ( section , omitLonghands , includeSelectorGroupMarks ) ;
498498 }
499499 }
500500
501501 function text ( node ) {
502- return printInnerText ? node . innerText : node . textContent ;
502+ return node . innerText ;
503503 }
504504} ;
505505
506- async function printStyleSection ( section , omitLonghands , includeSelectorGroupMarks , printInnerText ) {
506+ async function printStyleSection ( section , omitLonghands , includeSelectorGroupMarks ) {
507507 if ( ! section ) {
508508 return ;
509509 }
@@ -533,14 +533,14 @@ async function printStyleSection(section, omitLonghands, includeSelectorGroupMar
533533 }
534534
535535 TestRunner . addResult ( selectorText ) ;
536- ElementsTestRunner . dumpStyleTreeOutline ( section . propertiesTreeOutline , ( omitLonghands ? 1 : 2 ) , printInnerText ) ;
536+ ElementsTestRunner . dumpStyleTreeOutline ( section . propertiesTreeOutline , ( omitLonghands ? 1 : 2 ) ) ;
537537 if ( ! section . showAllButton . classList . contains ( 'hidden' ) ) {
538538 TestRunner . addResult ( text ( section . showAllButton ) ) ;
539539 }
540540 TestRunner . addResult ( '' ) ;
541541
542542 function text ( node ) {
543- return printInnerText ? node . innerText : node . textContent ;
543+ return node . innerText ;
544544 }
545545}
546546
@@ -688,17 +688,16 @@ ElementsTestRunner.getFirstPropertyTreeItemForSection = function(section, proper
688688 return null ;
689689} ;
690690
691- ElementsTestRunner . dumpStyleTreeOutline = function ( treeItem , depth , printInnerText ) {
691+ ElementsTestRunner . dumpStyleTreeOutline = function ( treeItem , depth ) {
692692 const children = treeItem . rootElement ( ) . children ( ) ;
693693
694694 for ( let i = 0 ; i < children . length ; ++ i ) {
695- ElementsTestRunner . dumpStyleTreeItem ( children [ i ] , '' , depth || 2 , printInnerText ) ;
695+ ElementsTestRunner . dumpStyleTreeItem ( children [ i ] , '' , depth || 2 ) ;
696696 }
697697} ;
698698
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 ;
702701 if ( textContent . indexOf ( ' width:' ) !== - 1 || textContent . indexOf ( ' height:' ) !== - 1 ) {
703702 return ;
704703 }
@@ -726,7 +725,7 @@ ElementsTestRunner.dumpStyleTreeItem = function(treeItem, prefix, depth, printIn
726725 const children = treeItem . children ( ) ;
727726
728727 for ( let i = 0 ; children && i < children . length ; ++ i ) {
729- ElementsTestRunner . dumpStyleTreeItem ( children [ i ] , prefix + ' ' , depth , printInnerText ) ;
728+ ElementsTestRunner . dumpStyleTreeItem ( children [ i ] , prefix + ' ' , depth ) ;
730729 }
731730 }
732731} ;
0 commit comments