File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,9 @@ function HTML(runner, options) {
8888 } else {
8989 // On some broswers, canvas might be unavailable for whatever reason.
9090 // As such, we need a text version as a fallback
91- var progressTextFallback = fragment ( '<em>0</em>%' ) ;
92- progressText = stat . getElementsByTagName ( 'em' ) [ 0 ] ;
93- items [ 0 ] . appendChild ( progressTextFallback ) ;
91+ var progressTextFallback = fragment ( '<li class="progress">progress: < em>0</em>%</li> ' ) ;
92+ progressText = progressTextFallback . getElementsByTagName ( 'em' ) [ 0 ] ;
93+ items [ 0 ] . replaceWith ( progressTextFallback ) ;
9494 }
9595
9696 if ( ! root ) {
@@ -248,7 +248,7 @@ function HTML(runner, options) {
248248 // setting it too high, makes the progress text longer then it needs to
249249 // to address this, calculate the toFixed based on the magnitude of total
250250 var decmalPlaces = Math . ceil ( Math . log10 ( runner . total / 100 ) ) ;
251- text ( progressText , percent . toFixed ( Math . min ( Math . max ( decmalPlaces ) , 0 ) , 100 ) ) ;
251+ text ( progressText , percent . toFixed ( Math . min ( Math . max ( decmalPlaces , 0 ) , 100 ) ) ) ;
252252 }
253253
254254 // update stats
You can’t perform that action at this time.
0 commit comments