From a75a39b2a47f3275f198cffa932a78bd70e1cac4 Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Tue, 2 Sep 2008 17:06:33 +0000 Subject: Fix for bug COUCHDB-109. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@691322 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch_tests.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'share/www') diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js index 91ee5469..78307062 100644 --- a/share/www/script/couch_tests.js +++ b/share/www/script/couch_tests.js @@ -56,9 +56,15 @@ var tests = { var results = db.allDocs(); var rows = results.rows; + T(results.total_rows == results.rows.length); + for(var i=0; i < rows.length; i++) { T(rows[i].id >= "0" && rows[i].id <= "4"); } + + // Check _all_docs with descending=true + var desc = db.allDocs({descending:true}); + T(desc.total_rows == desc.rows.length); // Test a simple map functions -- cgit v1.2.3