@@ -119,22 +119,22 @@ function runURLSearchParamTests() {
119119
120120 // And in the other direction, altering searchParams propagates
121121 // back to 'search'.
122- // searchParams.append('i', ' j ')
122+ searchParams . append ( 'i' , ' j ' )
123123 // assert_equals(url.search, '?e=f&g=h&i=+j+')
124124 // assert_equals(url.searchParams.toString(), 'e=f&g=h&i=+j+')
125- // assert_equals(searchParams.get('i'), ' j ')
125+ assert_equals ( searchParams . get ( 'i' ) , ' j ' )
126126
127- // searchParams.set('e', 'updated')
127+ searchParams . set ( 'e' , 'updated' )
128128 // assert_equals(url.search, '?e=updated&g=h&i=+j+')
129- // assert_equals(searchParams.get('e'), 'updated')
129+ assert_equals ( searchParams . get ( 'e' ) , 'updated' )
130130
131- // var url2 = bURL('http://example.org/file??a=b&c=d')
132- // assert_equals(url2.search, '??a=b&c=d')
133- // assert_equals(url2.searchParams.toString(), '%3Fa=b&c=d')
131+ var url2 = bURL ( 'http://example.org/file??a=b&c=d' )
132+ assert_equals ( url2 . search , '??a=b&c=d' )
133+ assert_equals ( url2 . searchParams . toString ( ) , '%3Fa=b&c=d' )
134134
135- // url2.href = 'http://example.org/file??a=b'
136- // assert_equals(url2.search, '??a=b')
137- // assert_equals(url2.searchParams.toString(), '%3Fa=b')
135+ url2 . href = 'http://example.org/file??a=b'
136+ assert_equals ( url2 . search , '??a=b' )
137+ assert_equals ( url2 . searchParams . toString ( ) , '%3Fa=b' )
138138 } , 'URL.searchParams and URL.search setters, update propagation' )
139139}
140140runURLSearchParamTests ( )
0 commit comments