diff options
author | Robert Newson <rnewson@apache.org> | 2010-07-27 11:02:36 +0000 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2010-07-27 11:02:36 +0000 |
commit | 89d0b4600cc80cb507b513c4b76af9c1eb60fb22 (patch) | |
tree | e008483a43c59cd40d6dd6cdc4f28073cbedc41e /share/www/script/test/replication.js | |
parent | 4b0948ddb3a428f8a5330e05745b2fbd4ccf9375 (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/test/replication.js')
-rw-r--r-- | share/www/script/test/replication.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/share/www/script/test/replication.js b/share/www/script/test/replication.js index 7a23e7d3..d3f41405 100644 --- a/share/www/script/test/replication.js +++ b/share/www/script/test/replication.js @@ -17,11 +17,11 @@ couchTests.replication = function(debug) { {source:"test_suite_db_a", target:"test_suite_db_b"}, {source:"test_suite_db_a", - target:window.location.protocol + "//" + host + "/test_suite_db_b"}, - {source:window.location.protocol + "//" + host + "/test_suite_db_a", + target:CouchDB.protocol + host + "/test_suite_db_b"}, + {source:CouchDB.protocol + host + "/test_suite_db_a", target:"test_suite_db_b"}, - {source:window.location.protocol + "//" + host + "/test_suite_db_a", - target:window.location.protocol + "//" + host + "/test_suite_db_b"} + {source:CouchDB.protocol + host + "/test_suite_db_a", + target:CouchDB.protocol + host + "/test_suite_db_b"} ] var dbA = new CouchDB("test_suite_db_a", {"X-Couch-Full-Commit":"false"}); var dbB = new CouchDB("test_suite_db_b", {"X-Couch-Full-Commit":"false"}); @@ -296,7 +296,7 @@ couchTests.replication = function(debug) { // remote dbB.deleteDb(); - CouchDB.replicate(dbA.name, window.location.protocol + "//" + CouchDB.host + "/test_suite_db_b", { + CouchDB.replicate(dbA.name, CouchDB.protocol + CouchDB.host + "/test_suite_db_b", { body: {"create_target": true} }); TEquals("test_suite_db_b", dbB.info().db_name, @@ -372,11 +372,11 @@ couchTests.replication = function(debug) { {source:"test_suite_rep_docs_db_a", target:"test_suite_rep_docs_db_b"}, {source:"test_suite_rep_docs_db_a", - target:window.location.protocol + "//" + host + "/test_suite_rep_docs_db_b"}, - {source:window.location.protocol + "//" + host + "/test_suite_rep_docs_db_a", + target:CouchDB.protocol + host + "/test_suite_rep_docs_db_b"}, + {source:CouchDB.protocol + host + "/test_suite_rep_docs_db_a", target:"test_suite_rep_docs_db_b"}, - {source:window.location.protocol + "//" + host + "/test_suite_rep_docs_db_a", - target:window.location.protocol + "//" + host + "/test_suite_rep_docs_db_b"} + {source:CouchDB.protocol + host + "/test_suite_rep_docs_db_a", + target:CouchDB.protocol + host + "/test_suite_rep_docs_db_b"} ]; var target_doc_ids = [ @@ -481,11 +481,11 @@ couchTests.replication = function(debug) { {source:"test_suite_filtered_rep_db_a", target:"test_suite_filtered_rep_db_b"}, {source:"test_suite_filtered_rep_db_a", - target:window.location.protocol + "//" + host + "/test_suite_filtered_rep_db_b"}, - {source:window.location.protocol + "//" + host + "/test_suite_filtered_rep_db_a", + target:CouchDB.protocol + host + "/test_suite_filtered_rep_db_b"}, + {source:CouchDB.protocol + host + "/test_suite_filtered_rep_db_a", target:"test_suite_filtered_rep_db_b"}, - {source:window.location.protocol + "//" + host + "/test_suite_filtered_rep_db_a", - target:window.location.protocol + "//" + host + "/test_suite_filtered_rep_db_b"} + {source:CouchDB.protocol + host + "/test_suite_filtered_rep_db_a", + target:CouchDB.protocol + host + "/test_suite_filtered_rep_db_b"} ]; for (var i = 0; i < dbPairs.length; i++) { |