File tree 1 file changed +4
-4
lines changed
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) {
88
88
} else {
89
89
// On some broswers, canvas might be unavailable for whatever reason.
90
90
// 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 ) ;
94
94
}
95
95
96
96
if ( ! root ) {
@@ -248,7 +248,7 @@ function HTML(runner, options) {
248
248
// setting it too high, makes the progress text longer then it needs to
249
249
// to address this, calculate the toFixed based on the magnitude of total
250
250
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 ) ) ) ;
252
252
}
253
253
254
254
// update stats
You can’t perform that action at this time.
0 commit comments