From 5b2760e14a60e7447f04b58879fcdbc0c45c04df Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Thu, 9 Oct 2008 22:04:46 +0000 Subject: make check now runs the JavaScript test suite git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@703276 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch_tests.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'share') diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js index 46e42464..e88c68d1 100644 --- a/share/www/script/couch_tests.js +++ b/share/www/script/couch_tests.js @@ -10,6 +10,11 @@ // License for the specific language governing permissions and limitations under // the License. +// Used by replication test +CouchDB.host = (typeof window == 'undefined' || !window) ? + "127.0.0.1" : window.location.host; +CouchDB.port = 5984; + var tests = { // Do some basic tests. @@ -1556,7 +1561,7 @@ var tests = { replication: function(debug) { if (debug) debugger; - var host = window.location.host; + var host = CouchDB.host; var dbPairs = [ {source:"test_suite_db_a", target:"test_suite_db_b"}, -- cgit v1.2.3