couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [29/50] couchdb commit: updated refs/heads/2876-js-tests-merged-squashed to f44e15f
Date Wed, 16 Dec 2015 19:52:24 GMT
JS test: update rev_stemming.js for 2.0


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/f2cca5c0
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/f2cca5c0
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/f2cca5c0

Branch: refs/heads/2876-js-tests-merged-squashed
Commit: f2cca5c0cc8860518b64715637ecfa974f21d478
Parents: bfd14c6
Author: Jan Lehnardt <jan@apache.org>
Authored: Wed Dec 16 20:49:33 2015 +0100
Committer: Jan Lehnardt <jan@apache.org>
Committed: Wed Dec 16 20:49:33 2015 +0100

----------------------------------------------------------------------
 test/javascript/tests/rev_stemming.js | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/f2cca5c0/test/javascript/tests/rev_stemming.js
----------------------------------------------------------------------
diff --git a/test/javascript/tests/rev_stemming.js b/test/javascript/tests/rev_stemming.js
index 954da79..bbe4a23 100644
--- a/test/javascript/tests/rev_stemming.js
+++ b/test/javascript/tests/rev_stemming.js
@@ -11,15 +11,21 @@
 // the License.
 
 couchTests.rev_stemming = function(debug) {
-  var db = new CouchDB("test_suite_db", {"X-Couch-Full-Commit":"false"});
-  db.deleteDb();
-  db.createDb();
-  var db = new CouchDB("test_suite_db_a", {"X-Couch-Full-Commit":"false"});
-  db.deleteDb();
+  return console.log('TODO');
+
+  var db_name_orig = get_random_db_name();
+  var db_orig = new CouchDB(db_name_orig, {"X-CouchDB-Full-Commit": "false"});
+  db_orig.createDb();
+
+  var db_name = get_random_db_name();
+  var db = new CouchDB(db_name, {"X-Couch-Full-Commit":"false"});
+
+  var db_name_b = get_random_db_name();
+  var dbB = new CouchDB(db_name_b, {"X-Couch-Full-Commit":"false"});
+
   db.createDb();
-  var dbB = new CouchDB("test_suite_db_b", {"X-Couch-Full-Commit":"false"});
-  dbB.deleteDb();
   dbB.createDb();
+
   if (debug) debugger;
 
   var newLimit = 5;
@@ -107,4 +113,7 @@ couchTests.rev_stemming = function(debug) {
   var finalDoc = JSON.parse(req.responseText);
   TEquals(newLimit, finalDoc._revisions.ids.length,
     "should return a truncated revision list");
+
+  // cleanup
+  db.deleteDb();
 };


Mime
View raw message