summaryrefslogtreecommitdiff
path: root/share/www/script/test/view_collation.js
diff options
context:
space:
mode:
authorNoah Slater <nslater@apache.org>2009-07-06 00:33:50 +0000
committerNoah Slater <nslater@apache.org>2009-07-06 00:33:50 +0000
commit282b96ddd9a84b740788c2358ec0f5fedafb7cc6 (patch)
treefb48e605ceb8079d0195d3b1ec0eca7110fa7ef2 /share/www/script/test/view_collation.js
parentb5cc085d3bc6316063f14adedf20632ee904875d (diff)
trimmed trailing whitespace
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@791350 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test/view_collation.js')
-rw-r--r--share/www/script/test/view_collation.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/share/www/script/test/view_collation.js b/share/www/script/test/view_collation.js
index f59204c7..09681cc9 100644
--- a/share/www/script/test/view_collation.js
+++ b/share/www/script/test/view_collation.js
@@ -85,14 +85,14 @@ couchTests.view_collation = function(debug) {
rows = db.query(queryFun, null, queryOptions).rows;
T(rows.length == 1 && equals(rows[0].key, values[i]));
}
-
+
// test inclusive_end=true (the default)
// the inclusive_end=true functionality is limited to endkey currently
// if you need inclusive_start=false for startkey, please do implement. ;)
var rows = db.query(queryFun, null, {endkey : "b", inclusive_end:true}).rows;
T(rows[rows.length-1].key == "b")
// descending=true
- var rows = db.query(queryFun, null, {endkey : "b",
+ var rows = db.query(queryFun, null, {endkey : "b",
descending:true, inclusive_end:true}).rows;
T(rows[rows.length-1].key == "b")
@@ -100,13 +100,13 @@ couchTests.view_collation = function(debug) {
var rows = db.query(queryFun, null, {endkey : "b", inclusive_end:false}).rows;
T(rows[rows.length-1].key == "aa")
// descending=true
- var rows = db.query(queryFun, null, {endkey : "b",
+ var rows = db.query(queryFun, null, {endkey : "b",
descending:true, inclusive_end:false}).rows;
T(rows[rows.length-1].key == "B")
-
+
// inclusive_end=false overrides endkey_docid
var rows = db.query(queryFun, null, {
- endkey : "b", endkey_docid: "b",
+ endkey : "b", endkey_docid: "b",
inclusive_end:false}).rows;
T(rows[rows.length-1].key == "aa")
};