aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2012-09-06 10:15:01 -0700
committerJames Lal <james@lightsofapollo.com>2012-09-06 10:15:01 -0700
commitb85e18d5ae1677779876c755db692bbc34413efa (patch)
treeeee8de0a2c7920ead84ac83b47e28abc7404e968 /test
parent614340a6ccc4ec45b4b4895df12c075eb3405286 (diff)
downloadjsCalDAV-b85e18d5ae1677779876c755db692bbc34413efa.tar.gz
fix misc bugs update ical.js
Diffstat (limited to 'test')
-rw-r--r--test/caldav/ical_test.js2
-rw-r--r--test/caldav/sax/dav_response_test.js2
-rw-r--r--test/caldav/xhr_test.js3
3 files changed, 5 insertions, 2 deletions
diff --git a/test/caldav/ical_test.js b/test/caldav/ical_test.js
index f2bc8b9..561bad3 100644
--- a/test/caldav/ical_test.js
+++ b/test/caldav/ical_test.js
@@ -1,4 +1,4 @@
-require('/lib/ical.js');
+testSupport.lib('../ical');
suite('caldav/ics', function() {
diff --git a/test/caldav/sax/dav_response_test.js b/test/caldav/sax/dav_response_test.js
index cb3d2b7..b8f4716 100644
--- a/test/caldav/sax/dav_response_test.js
+++ b/test/caldav/sax/dav_response_test.js
@@ -3,7 +3,7 @@ testSupport.lib('sax');
testSupport.lib('sax/base');
testSupport.lib('ical');
testSupport.lib('sax/dav_response');
-require('/lib/ical.js');
+testSupport.lib('../ical');
suite('caldav/sax/dav_response', function() {
diff --git a/test/caldav/xhr_test.js b/test/caldav/xhr_test.js
index c71dc12..0d6d7fb 100644
--- a/test/caldav/xhr_test.js
+++ b/test/caldav/xhr_test.js
@@ -137,6 +137,9 @@ suite('webacls/xhr', function() {
});
test('with mozSystem', function() {
+ if (typeof(window) === 'undefined')
+ return;
+
var user = 'user';
var password = 'pass';
var url = '/foo';