From 82ddf96828b1358e9d9abcff3c9b28bedb06a113 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Tue, 14 Feb 2017 13:10:23 +0800 Subject: [PATCH] test: turn on WPT tests on empty param pairs This specific bug was fixed by #11234. This commit turns on the tests accordingly. PR-URL: https://github.com/nodejs/node/pull/11369 Ref: https://github.com/nodejs/node/pull/11234 Reviewed-By: James M Snell Reviewed-By: Timothy Gu Reviewed-By: Colin Ihrig --- test/parallel/test-whatwg-url-searchparams-stringifier.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-whatwg-url-searchparams-stringifier.js b/test/parallel/test-whatwg-url-searchparams-stringifier.js index 7e85b9726167ad..5f751b1c503d5b 100644 --- a/test/parallel/test-whatwg-url-searchparams-stringifier.js +++ b/test/parallel/test-whatwg-url-searchparams-stringifier.js @@ -112,8 +112,8 @@ test(function() { test(function() { var params; - // params = new URLSearchParams('a=b&c=d&&e&&'); - // assert_equals(params.toString(), 'a=b&c=d&e='); + params = new URLSearchParams('a=b&c=d&&e&&'); + assert_equals(params.toString(), 'a=b&c=d&e='); // params = new URLSearchParams('a = b &a=b&c=d%20'); // assert_equals(params.toString(), 'a+=+b+&a=b&c=d+'); // The lone '=' _does_ survive the roundtrip.