File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -37,22 +37,22 @@ function startURLSettersTests() {
37
37
}
38
38
39
39
function runURLSettersTests ( all_test_cases ) {
40
- for ( var attribute_to_be_set in all_test_cases ) {
40
+ for ( const attribute_to_be_set in all_test_cases ) {
41
41
if ( attribute_to_be_set == "comment" ) {
42
42
continue ;
43
43
}
44
- var test_cases = all_test_cases [ attribute_to_be_set ] ;
45
- for ( var i = 0 , l = test_cases . length ; i < l ; i ++ ) {
46
- var test_case = test_cases [ i ] ;
47
- var name = `Setting <${ test_case . href } >.${ attribute_to_be_set } ` +
44
+ const test_cases = all_test_cases [ attribute_to_be_set ] ;
45
+ for ( let i = 0 , l = test_cases . length ; i < l ; i ++ ) {
46
+ const test_case = test_cases [ i ] ;
47
+ let name = `Setting <${ test_case . href } >.${ attribute_to_be_set } ` +
48
48
` = '${ test_case . new_value } '` ;
49
49
if ( "comment" in test_case ) {
50
50
name += ` ${ test_case . comment } ` ;
51
51
}
52
52
test ( function ( ) {
53
- var url = new URL ( test_case . href ) ;
53
+ const url = new URL ( test_case . href ) ;
54
54
url [ attribute_to_be_set ] = test_case . new_value ;
55
- for ( var attribute in test_case . expected ) {
55
+ for ( const attribute in test_case . expected ) {
56
56
assert_equals ( url [ attribute ] , test_case . expected [ attribute ] )
57
57
}
58
58
} , `URL: ${ name } ` ) ;
You can’t perform that action at this time.
0 commit comments