summaryrefslogtreecommitdiffstats
path: root/services/sync/tests/unit/test_service_set_serverURL.js
diff options
context:
space:
mode:
Diffstat (limited to 'services/sync/tests/unit/test_service_set_serverURL.js')
-rw-r--r--services/sync/tests/unit/test_service_set_serverURL.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/services/sync/tests/unit/test_service_set_serverURL.js b/services/sync/tests/unit/test_service_set_serverURL.js
new file mode 100644
index 000000000..6fef2bfaa
--- /dev/null
+++ b/services/sync/tests/unit/test_service_set_serverURL.js
@@ -0,0 +1,13 @@
+/* Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/ */
+
+Cu.import("resource://services-sync/service.js");
+
+function run_test() {
+ Service.serverURL = "http://example.com/sync";
+ do_check_eq(Service.serverURL, "http://example.com/sync/");
+
+ Service.serverURL = "http://example.com/sync/";
+ do_check_eq(Service.serverURL, "http://example.com/sync/");
+}
+