Index: LayoutTests/fast/domurl/url-query-constructor.html |
diff --git a/LayoutTests/fast/domurl/url-query-constructor.html b/LayoutTests/fast/domurl/url-query-constructor.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..90e0e92eed1500fdc61d7245316b09e153fec67b |
--- /dev/null |
+++ b/LayoutTests/fast/domurl/url-query-constructor.html |
@@ -0,0 +1,22 @@ |
+<!DOCTYPE HTML> |
+<meta charset="utf-8"> |
+<link rel="help" href="http://url.spec.whatwg.org/#interface-urlquery"> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+ |
+test(function() { |
+ var q = new URLQuery(); |
+ assert_equals(q + '', ''); |
+ |
+ q = new URLQuery(''); |
+ assert_equals(q + '', ''); |
+ |
+ q = new URLQuery('a=b'); |
+ assert_equals(q + '', 'a=b'); |
+ |
+ q = new URLQuery(q); |
+ assert_equals(q + '', 'a=b'); |
+}, 'Basic query construction'); |
+ |
+</script> |