From 197f85129a45073ea48088d1984e4d43707c287c Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Sat, 17 Jan 2009 13:36:23 +0000 Subject: Fix coding-style. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@735287 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch_tests.js | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) (limited to 'share') 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); - + } + } }, -- cgit v1.2.3