Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1058)

Side by Side Diff: LayoutTests/fast/domurl/url-query-get-all.html

Issue 141003005: Old CL related to URL query (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fast/domurl/url-query-get.html ('k') | LayoutTests/fast/domurl/url-query-has.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <meta charset="utf-8">
3 <link rel="help" href="http://url.spec.whatwg.org/#dom-urlquery-getall">
4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script>
6 <script>
7
8 test(function() {
9 var q = new URLQuery('a=b&c=d');
10 assert_array_equals(q.getAll('a'), ['b']);
11 assert_array_equals(q.getAll('c'), ['d']);
12 assert_array_equals(q.getAll('e'), []);
13
14 q = new URLQuery('a=b&c=d&a=e');
15 assert_array_equals(q.getAll('a'), ['b', 'e']);
16
17 q = new URLQuery('=b&c=d');
18 assert_array_equals(q.getAll(''), ['b']);
19
20 q = new URLQuery('a=&c=d&a=e');
21 assert_array_equals(q.getAll('a'), ['', 'e']);
22 }, 'Get all basics');
23
24 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/domurl/url-query-get.html ('k') | LayoutTests/fast/domurl/url-query-has.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698