@@ -45,6 +45,10 @@ common.expectWarning(
45
45
[ 'Count for \'noLabel\' does not exist' , common . noWarnCode ] ,
46
46
[ 'No such label \'noLabel\' for console.timeLog()' , common . noWarnCode ] ,
47
47
[ '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 ] ,
48
52
[ 'Label \'test\' already exists for console.time()' , common . noWarnCode ]
49
53
]
50
54
) ;
@@ -56,6 +60,17 @@ console.timeEnd('noLabel');
56
60
console . time ( 'label' ) ;
57
61
console . timeEnd ( 'label' ) ;
58
62
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
+
59
74
// Check that the `Error` is a `TypeError` but do not check the message as it
60
75
// will be different in different JavaScript engines.
61
76
assert . throws ( ( ) => console . time ( Symbol ( 'test' ) ) ,
0 commit comments