@@ -40,18 +40,18 @@ const { test, assert_equals, assert_array_equals } = require('../common/wpt');
40
40
assert_array_equals ( param , val . output [ i ] )
41
41
i ++
42
42
}
43
- } , " Parse and sort: " + val . input )
43
+ } , ` Parse and sort: ${ val . input } ` )
44
44
45
45
test ( ( ) => {
46
- let url = new URL ( "?" + val . input , "https://example/" )
46
+ let url = new URL ( `? ${ val . input } ` , "https://example/" )
47
47
url . searchParams . sort ( )
48
48
let params = new URLSearchParams ( url . search ) ,
49
49
i = 0
50
50
for ( let param of params ) {
51
51
assert_array_equals ( param , val . output [ i ] )
52
52
i ++
53
53
}
54
- } , " URL parse and sort: " + val . input )
54
+ } , ` URL parse and sort: ${ val . input } ` )
55
55
} )
56
56
57
57
test ( function ( ) {
@@ -90,7 +90,7 @@ tests.forEach((val) => {
90
90
assert_array_equals ( param , val . output [ i ] ) ;
91
91
i ++ ;
92
92
}
93
- } , ' Parse and sort: ' + val . input ) ;
93
+ } , ` Parse and sort: ${ val . input } ` ) ;
94
94
95
95
test ( ( ) => {
96
96
const url = new URL ( `?${ val . input } ` , 'https://example/' ) ;
@@ -101,5 +101,5 @@ tests.forEach((val) => {
101
101
assert_array_equals ( param , val . output [ i ] ) ;
102
102
i ++ ;
103
103
}
104
- } , ' URL parse and sort: ' + val . input ) ;
104
+ } , ` URL parse and sort: ${ val . input } ` ) ;
105
105
} ) ;
0 commit comments