| Index: third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html b/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html
|
| index 16cb9e7dfac5d651d01cf93e808f8b5052d179cd..5ced91c5e65ff53bf34c70dbd0e15bb5800f45d5 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html
|
| @@ -169,9 +169,17 @@ test(function() {
|
| }, 'Parse =');
|
|
|
| test(function() {
|
| - var params = new URLSearchParams('foobar=a\nb');
|
| - assert_equals(params.toString(), 'foobar=a%0Ab');
|
| -}, 'Parse \\n');
|
| + let params = new URLSearchParams([]);
|
| + assert_true(params !== null, 'Empty sequence');
|
| + assert_equals(params.toString(), '');
|
| +
|
| + params = new URLSearchParams([[1, 2], ['a', 'b']]);
|
| + assert_equals(params.toString(), '1=2&a=b');
|
| +
|
| + assert_type_error(() => { new URLSearchParams([[1, 2, 3]]) },
|
| + "Sequence elements must be pairs");
|
| +}, 'sequence initializer');
|
| +
|
| </script>
|
| </head>
|
| </html>
|
|
|