diff options
author | Gareth Aye <gaye@mozilla.com> | 2014-02-04 13:05:45 -0500 |
---|---|---|
committer | Gareth Aye <gaye@mozilla.com> | 2014-02-04 13:05:45 -0500 |
commit | ef4cd2cfe124c8a8130110a0d0c06b7d6851d27b (patch) | |
tree | 369facb7640d826eee46af6ce63fcacf55557366 | |
parent | 09d9ad3f92edec992bd1ab2e6a1c505f16bf22de (diff) | |
download | jsCalDAV-ef4cd2cfe124c8a8130110a0d0c06b7d6851d27b.tar.gz |
Resurrect server-specific tests
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | lib/caldav/connection.js | 3 |
2 files changed, 13 insertions, 2 deletions
@@ -1,9 +1,19 @@ # CalDAV Basis for all caldav operations in b2g calendar app but designed from -ground up as a general purpose caldav library. +ground up as a general purpose caldav library. Tested against firefox nightly / b2g nightly / nodejs. Should work under any modern browser but unless your browser can support cross domain requests cros headers its usefulness will be limited. + +### Server-specific tests + +We have a tiny collection of tests which can be pointed at specific servers. In order to run these, create a file called `servers.json` in `test/servers` following the JSON format in `test/servers/servers.json.tpl`. Then do + +``` +./index.js -s <server> +``` + +to run all of the tests! diff --git a/lib/caldav/connection.js b/lib/caldav/connection.js index 7262d06..8869571 100644 --- a/lib/caldav/connection.js +++ b/lib/caldav/connection.js @@ -1,6 +1,7 @@ (function(module, ns) { - var XHR = ns.require('xhr'); + var Caldav = ns.require('caldav'), + XHR = ns.require('xhr'); /** * Connection objects contain |