File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -129,12 +129,14 @@ function notifyFinishedToHarness() {
129
129
}
130
130
}
131
131
132
+ // Start buffered, so that our thousands of passing subtests can be buffered.
133
+ // We flush the buffered logs on testFailed and/or finishTest.
132
134
var _bufferedConsoleLogs = [ ] ;
133
135
134
136
function _bufferedLogToConsole ( msg )
135
137
{
136
138
if ( _bufferedConsoleLogs ) {
137
- _bufferedConsoleLogs . push ( msg ) ;
139
+ _bufferedConsoleLogs . push ( '[buffered] ' + msg ) ;
138
140
} else if ( window . console ) {
139
141
window . console . log ( msg ) ;
140
142
}
@@ -774,6 +776,7 @@ function webglHarnessCollectGarbage() {
774
776
}
775
777
776
778
function finishTest ( ) {
779
+ _flushBufferedLogsToConsole ( ) ;
777
780
successfullyParsed = true ;
778
781
var epilogue = document . createElement ( "script" ) ;
779
782
var basePath = "" ;
You can’t perform that action at this time.
0 commit comments