Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make URLSearchParams iterable #13022 #13077

Closed
wants to merge 8 commits into from

modify urlsearchparams tests

  • Loading branch information
yoyo930021 committed Aug 27, 2016
commit ba6e975e709a58de0fff463fd7669eedd66dec95
"path": "url/urlsearchparams-delete.html",
"url": "/url/urlsearchparams-delete.html"
},
{
"path": "url/urlsearchparams-foreach.html",
"url": "/url/urlsearchparams-foreach.html"
},
{
"path": "url/urlsearchparams-get.html",
"url": "/url/urlsearchparams-get.html"
"path": "url/urlsearchparams-stringifier.html",
"url": "/url/urlsearchparams-stringifier.html"
},
{
"path": "url/urlsearchparams-foreach.html",
"url": "/url/urlsearchparams-foreach.html"
},
{
"path": "user-timing/idlharness.html",
"url": "/user-timing/idlharness.html"
@@ -6,22 +6,6 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(function() {
var params = new URLSearchParams('a=1&b=2&c=3');
for(var URLSearchParam in params){
switch (URLSearchParam) {
case 'a':
assert_equals('1', params[URLSearchParam]);
break;
case 'b':
assert_equals('2', params[URLSearchParam]);
break;
case 'c':
assert_equals('3', params[URLSearchParam]);
break;
}
}
}, "For-in Check");

test(function() {
var params = new URLSearchParams('a=1&b=2&c=3');
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.