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

Unified Diff: LayoutTests/fast/domurl/url-query-get.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/domurl/url-query-delete.html ('k') | LayoutTests/fast/domurl/url-query-get-all.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/domurl/url-query-get.html
diff --git a/LayoutTests/fast/domurl/url-query-get.html b/LayoutTests/fast/domurl/url-query-get.html
new file mode 100644
index 0000000000000000000000000000000000000000..eae71864e9b7123ac4c4ac32417fe5a75b98ca83
--- /dev/null
+++ b/LayoutTests/fast/domurl/url-query-get.html
@@ -0,0 +1,24 @@
+<!DOCTYPE HTML>
+<meta charset="utf-8">
+<link rel="help" href="http://url.spec.whatwg.org/#dom-urlquery-get">
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+
+test(function() {
+ var q = new URLQuery('a=b&c=d');
+ assert_equals(q.get('a'), 'b');
+ assert_equals(q.get('c'), 'd');
+ assert_equals(q.get('e'), null);
+
+ q = new URLQuery('a=b&c=d&a=e');
+ assert_equals(q.get('a'), 'b');
+
+ q = new URLQuery('=b&c=d');
+ assert_equals(q.get(''), 'b');
+
+ q = new URLQuery('a=&c=d&a=e');
+ assert_equals(q.get('a'), '');
+}, 'Get basics');
+
+</script>
« no previous file with comments | « LayoutTests/fast/domurl/url-query-delete.html ('k') | LayoutTests/fast/domurl/url-query-get-all.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698