@@ -46,18 +46,18 @@ function runURLSettersTests(all_test_cases) {
46
46
var test_cases = all_test_cases [ attribute_to_be_set ] ;
47
47
for ( var i = 0 , l = test_cases . length ; i < l ; i ++ ) {
48
48
var test_case = test_cases [ i ] ;
49
- var name = " Setting <" + test_case . href + ">." + attribute_to_be_set +
50
- " = '" + test_case . new_value + "'" ;
49
+ var name = ` Setting <${ test_case . href } >. ${ attribute_to_be_set } ` +
50
+ ` = '${ test_case . new_value } '` ;
51
51
if ( "comment" in test_case ) {
52
- name += " " + test_case . comment ;
52
+ name += ` ${ test_case . comment } ` ;
53
53
}
54
54
test ( function ( ) {
55
55
var url = new URL ( test_case . href ) ;
56
56
url [ attribute_to_be_set ] = test_case . new_value ;
57
57
for ( var attribute in test_case . expected ) {
58
58
assert_equals ( url [ attribute ] , test_case . expected [ attribute ] )
59
59
}
60
- } , " URL: " + name )
60
+ } , ` URL: ${ name } ` ) ;
61
61
// test(function() {
62
62
// var url = document.createElement("a");
63
63
// url.href = test_case.href;
@@ -93,15 +93,15 @@ startURLSettersTests()
93
93
let name = `Setting <${ testCase . href } >.${ attributeToBeSet } ` +
94
94
` = "${ testCase . new_value } "` ;
95
95
if ( 'comment' in testCase ) {
96
- name += ' ' + testCase . comment ;
96
+ name += ` ${ testCase . comment } ` ;
97
97
}
98
98
test ( function ( ) {
99
99
const url = new URL ( testCase . href ) ;
100
100
url [ attributeToBeSet ] = testCase . new_value ;
101
101
for ( const attribute in testCase . expected ) {
102
102
assert_equals ( url [ attribute ] , testCase . expected [ attribute ] ) ;
103
103
}
104
- } , ' URL: ' + name ) ;
104
+ } , ` URL: ${ name } ` ) ;
105
105
}
106
106
}
107
107
}
0 commit comments