OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <meta charset="utf-8"> |
| 3 <link rel="help" href="http://url.spec.whatwg.org/#interface-urlquery"> |
| 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(); |
| 10 assert_equals(q + '', ''); |
| 11 |
| 12 q = new URLQuery(''); |
| 13 assert_equals(q + '', ''); |
| 14 |
| 15 q = new URLQuery('a=b'); |
| 16 assert_equals(q + '', 'a=b'); |
| 17 |
| 18 q = new URLQuery(q); |
| 19 assert_equals(q + '', 'a=b'); |
| 20 }, 'Basic query construction'); |
| 21 |
| 22 </script> |
OLD | NEW |