summaryrefslogtreecommitdiffstats
path: root/netwerk/test/unit/test_bug321706.js
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/test/unit/test_bug321706.js')
-rw-r--r--netwerk/test/unit/test_bug321706.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/netwerk/test/unit/test_bug321706.js b/netwerk/test/unit/test_bug321706.js
new file mode 100644
index 000000000..8ddbce6e7
--- /dev/null
+++ b/netwerk/test/unit/test_bug321706.js
@@ -0,0 +1,11 @@
+const url = "http://foo.com/folder/file?/.";
+
+function run_test() {
+ var ios = Cc["@mozilla.org/network/io-service;1"].
+ getService(Ci.nsIIOService);
+
+ var newURI = ios.newURI(url, null, null);
+ do_check_eq(newURI.spec, url);
+ do_check_eq(newURI.path, "/folder/file?/.");
+ do_check_eq(newURI.resolve("./file?/."), url);
+}