summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/www/script/couch_tests.js38
1 files changed, 23 insertions, 15 deletions
diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js
index 34c5c3aa..3e2bb381 100644
--- a/share/www/script/couch_tests.js
+++ b/share/www/script/couch_tests.js
@@ -2179,30 +2179,38 @@ var tests = {
};
}
};
+
var test;
- for(test in repTests)
- if(repTests[test].init) repTests[test].init(dbA, dbB);
-
+ for(test in repTests) {
+ if(repTests[test].init) {
+ repTests[test].init(dbA, dbB);
+ }
+ }
+
T(CouchDB.replicate(A, B).ok);
-
- for(test in repTests)
+
+ for(test in repTests) {
if(repTests[test].afterAB1) repTests[test].afterAB1(dbA, dbB);
-
+ }
+
T(CouchDB.replicate(B, A).ok);
-
- for(test in repTests)
+
+ for(test in repTests) {
if(repTests[test].afterBA1) repTests[test].afterBA1(dbA, dbB);
-
+ }
+
T(CouchDB.replicate(A, B).ok);
-
- for(test in repTests)
+
+ for(test in repTests) {
if(repTests[test].afterAB2) repTests[test].afterAB2(dbA, dbB);
-
+ }
+
T(CouchDB.replicate(B, A).ok);
-
- for(test in repTests)
+
+ for(test in repTests) {
if(repTests[test].afterBA2) repTests[test].afterBA2(dbA, dbB);
-
+ }
+
}
},