File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 12
12
}
13
13
window . info = info ;
14
14
15
- // A function that acts like setTimeout, except with arguments reversed. This
15
+ var CONSOLE_GROUP_SUPPORTED = ( 'console' in window ) && console . group &&
16
+ console . groupEnd ;
17
+
18
+ // A function that acts like setTimeout, except with arguments reversed. This
16
19
// is far more readable within tests.
17
20
function wait ( duration , fn ) {
18
21
return setTimeout ( fn , duration ) ;
206
209
} ,
207
210
208
211
startSuite : function ( suite ) {
209
- console . group ( 'Suite:' , suite ) ;
212
+ if ( CONSOLE_GROUP_SUPPORTED ) {
213
+ console . group ( 'Suite:' , suite ) ;
214
+ }
215
+
210
216
if ( this . currentFixtures && this . currentFixtures . parentNode ) {
211
217
this . currentFixtures . remove ( ) ;
212
218
}
218
224
} ,
219
225
220
226
endSuite : function ( suite ) {
221
- console . groupEnd ( ) ;
227
+ if ( CONSOLE_GROUP_SUPPORTED ) {
228
+ console . groupEnd ( ) ;
229
+ }
222
230
}
223
231
} ;
224
232
You can’t perform that action at this time.
0 commit comments