summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-03-15 00:15:40 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-03-15 00:15:40 +0000
commitdb6c33efaab3f16495e439fc01ccd5f55a0ece43 (patch)
treea9c2154d8a6cb08206b4666a20a52afbf478bfa0 /share/www
parent9007e2d21dea8b0185c0096b30364a8ee40a3867 (diff)
error message on invalid rev format.
another replication test. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@754563 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/test/replication.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/share/www/script/test/replication.js b/share/www/script/test/replication.js
index 944c8e47..f069dc89 100644
--- a/share/www/script/test/replication.js
+++ b/share/www/script/test/replication.js
@@ -72,6 +72,7 @@ couchTests.replication = function(debug) {
},
deletes_test: new function () {
+ // make sure deletes are replicated
this.init = function(dbA, dbB) {
T(dbA.save({_id:"foo1",value:"a"}).ok);
};
@@ -90,6 +91,27 @@ couchTests.replication = function(debug) {
};
},
+ deleted_test : new function() {
+ // docs created and deleted on a single node are also replicated
+ this.init = function(dbA, dbB) {
+ T(dbA.save({_id:"del1",value:"a"}).ok);
+ var docA = dbA.open("del1");
+ dbA.deleteDoc(docA);
+ };
+
+ this.afterAB1 = function(dbA, dbB) {
+ var rows = dbB.allDocsBySeq().rows;
+ var rowCnt = 0;
+ for (var i=0; i < rows.length; i++) {
+ if (rows[i].id == "del1") {
+ rowCnt += 1;
+ T(rows[i].value.deleted == true);
+ }
+ };
+ T(rowCnt == 1);
+ };
+ },
+
slashes_in_ids_test: new function () {
// make sure docs with slashes in id replicate properly
this.init = function(dbA, dbB) {