summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2008-09-02 17:06:33 +0000
committerDamien F. Katz <damien@apache.org>2008-09-02 17:06:33 +0000
commita75a39b2a47f3275f198cffa932a78bd70e1cac4 (patch)
tree8ef357812f2f6285c0b354003a4511ea232eac3b /share
parent36445192cd67e6a01233eb8cd7179b2afbc72947 (diff)
Fix for bug COUCHDB-109.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@691322 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r--share/www/script/couch_tests.js6
1 files changed, 6 insertions, 0 deletions
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