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..cd18773659273e00c7e28ad481316bea1d8af202 100644 |
--- a/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html |
+++ b/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html |
@@ -169,9 +169,16 @@ 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, '1=2&a=b'); |
tyoshino (SeeGerritForStatus)
2017/03/01 08:07:26
can we also compare params.toString() with ""?
th
sof
2017/03/01 08:40:59
oops, guilty :) updated.
|
+ |
+ 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> |