summaryrefslogtreecommitdiff
path: root/test/parallel/test-whatwg-url-constructor.js
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2017-02-03 17:34:47 -0800
committerTimothy Gu <timothygu99@gmail.com>2017-03-14 13:14:20 -0700
commitd77a7588cf4f356955e85d91e638a01120195e6b (patch)
treea2f0dc5e66bccb53dfeb8a137da7363bd2283152 /test/parallel/test-whatwg-url-constructor.js
parent92bcc13be00ef73c4989f1c8ad92c0f4a4c0b911 (diff)
downloadandroid-node-v8-d77a7588cf4f356955e85d91e638a01120195e6b.tar.gz
android-node-v8-d77a7588cf4f356955e85d91e638a01120195e6b.tar.bz2
android-node-v8-d77a7588cf4f356955e85d91e638a01120195e6b.zip
url: spec-compliant URLSearchParams serializer
PR-URL: https://github.com/nodejs/node/pull/11626 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Diffstat (limited to 'test/parallel/test-whatwg-url-constructor.js')
-rw-r--r--test/parallel/test-whatwg-url-constructor.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-whatwg-url-constructor.js b/test/parallel/test-whatwg-url-constructor.js
index c5d70b3f4c..c2773b9af1 100644
--- a/test/parallel/test-whatwg-url-constructor.js
+++ b/test/parallel/test-whatwg-url-constructor.js
@@ -120,12 +120,12 @@ function runURLSearchParamTests() {
// And in the other direction, altering searchParams propagates
// back to 'search'.
searchParams.append('i', ' j ')
- // assert_equals(url.search, '?e=f&g=h&i=+j+')
- // assert_equals(url.searchParams.toString(), 'e=f&g=h&i=+j+')
+ assert_equals(url.search, '?e=f&g=h&i=+j+')
+ assert_equals(url.searchParams.toString(), 'e=f&g=h&i=+j+')
assert_equals(searchParams.get('i'), ' j ')
searchParams.set('e', 'updated')
- // assert_equals(url.search, '?e=updated&g=h&i=+j+')
+ assert_equals(url.search, '?e=updated&g=h&i=+j+')
assert_equals(searchParams.get('e'), 'updated')
var url2 = bURL('http://example.org/file??a=b&c=d')