@@ -45,6 +45,10 @@ common.expectWarning(
4545 [ 'Count for \'noLabel\' does not exist' , common . noWarnCode ] ,
4646 [ 'No such label \'noLabel\' for console.timeLog()' , common . noWarnCode ] ,
4747 [ 'No such label \'noLabel\' for console.timeEnd()' , common . noWarnCode ] ,
48+ [ 'Count for \'default\' does not exist' , common . noWarnCode ] ,
49+ [ 'No such label \'default\' for console.timeLog()' , common . noWarnCode ] ,
50+ [ 'No such label \'default\' for console.timeEnd()' , common . noWarnCode ] ,
51+ [ 'Label \'default\' already exists for console.time()' , common . noWarnCode ] ,
4852 [ 'Label \'test\' already exists for console.time()' , common . noWarnCode ]
4953 ]
5054) ;
@@ -56,6 +60,17 @@ console.timeEnd('noLabel');
5660console . time ( 'label' ) ;
5761console . timeEnd ( 'label' ) ;
5862
63+ // Test using the default label
64+ // on console.time(), console.countReset(), console.timeLog(), console.timeEnd()
65+ console . countReset ( ) ;
66+ console . timeLog ( ) ;
67+ console . timeEnd ( ) ;
68+
69+ console . time ( ) ;
70+ console . time ( ) ;
71+ console . timeLog ( ) ;
72+ console . timeEnd ( ) ;
73+
5974// Check that the `Error` is a `TypeError` but do not check the message as it
6075// will be different in different JavaScript engines.
6176assert . throws ( ( ) => console . time ( Symbol ( 'test' ) ) ,
0 commit comments