diff options
author | Paul Joseph Davis <davisp@apache.org> | 2009-11-26 19:32:08 +0000 |
---|---|---|
committer | Paul Joseph Davis <davisp@apache.org> | 2009-11-26 19:32:08 +0000 |
commit | 627b7d2d90c7cfcec2c8bb6e5b5e2b53ea60d217 (patch) | |
tree | c8b09655791ba3e5bc8a34344709ded81f8dc73e /share/www/script/test/changes.js | |
parent | 95ee619df135a4c8b3ecefe65503c6d1cc7c36da (diff) |
Setup JavaScript command line runner.
All JS tests can now be run from the command line using the cURL
adapter. In the future I would like to rework this and provide better
TAP output. For now, each test is a single TAP assert.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884675 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test/changes.js')
-rw-r--r-- | share/www/script/test/changes.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/share/www/script/test/changes.js b/share/www/script/test/changes.js index f348aed8..bf4a1617 100644 --- a/share/www/script/test/changes.js +++ b/share/www/script/test/changes.js @@ -57,7 +57,12 @@ couchTests.changes = function(debug) { } // poor man's browser detection - var is_safari = navigator.userAgent.match(/AppleWebKit/); + var is_safari = false; + if(typeof(navigator) == "undefined") { + is_safari = true; // For CouchHTTP based runners + } else if(navigator.userAgent.match(/AppleWebKit/)) { + is_safari = true; + }; if (!is_safari && xhr) { // Only test the continuous stuff if we have a real XHR object // with real async support. |