summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2008-10-09 22:04:46 +0000
committerJohn Christopher Anderson <jchris@apache.org>2008-10-09 22:04:46 +0000
commit5b2760e14a60e7447f04b58879fcdbc0c45c04df (patch)
tree218bb23af2781d7170c4917ff678ef570150fb60 /share
parent929607cf0512010f45c9fbf8f38ef844996845f8 (diff)
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
Diffstat (limited to 'share')
-rw-r--r--share/www/script/couch_tests.js7
1 files changed, 6 insertions, 1 deletions
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"},