From b85e18d5ae1677779876c755db692bbc34413efa Mon Sep 17 00:00:00 2001 From: James Lal Date: Thu, 6 Sep 2012 10:15:01 -0700 Subject: fix misc bugs update ical.js --- test/caldav/ical_test.js | 2 +- test/caldav/sax/dav_response_test.js | 2 +- test/caldav/xhr_test.js | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'test') 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'; -- cgit