summaryrefslogtreecommitdiff
path: root/share/www/script/couch_tests.js
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2010-07-27 11:02:36 +0000
committerRobert Newson <rnewson@apache.org>2010-07-27 11:02:36 +0000
commit89d0b4600cc80cb507b513c4b76af9c1eb60fb22 (patch)
treee008483a43c59cd40d6dd6cdc4f28073cbedc41e /share/www/script/couch_tests.js
parent4b0948ddb3a428f8a5330e05745b2fbd4ccf9375 (diff)
fix CLI js test suite.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@979642 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/couch_tests.js')
-rw-r--r--share/www/script/couch_tests.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js
index c5257ea6..5723eece 100644
--- a/share/www/script/couch_tests.js
+++ b/share/www/script/couch_tests.js
@@ -13,10 +13,12 @@
// Used by replication test
if (typeof window == 'undefined' || !window) {
CouchDB.host = "127.0.0.1:5984";
+ CouchDB.protocol = "http://";
CouchDB.inBrowser = false;
} else {
CouchDB.host = window.location.host;
CouchDB.inBrowser = true;
+ CouchDB.protocol = window.location.protocol + "//";
}
CouchDB.urlPrefix = "..";