summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorJason David Davies <jasondavies@apache.org>2009-09-14 23:15:34 +0000
committerJason David Davies <jasondavies@apache.org>2009-09-14 23:15:34 +0000
commit2abb74e62571b2c775bcd18cfa8c4117f6a544ce (patch)
tree620d0b3d8aa104f71f763e992016ec70e7d28487 /share/www
parentef06bfa0050f08b6ad64a56978b25220d99af5f5 (diff)
Add test for COUCHDB-500.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814912 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/test/list_views.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/www/script/test/list_views.js b/share/www/script/test/list_views.js
index 55d34acc..b261be71 100644
--- a/share/www/script/test/list_views.js
+++ b/share/www/script/test/list_views.js
@@ -232,19 +232,19 @@ couchTests.list_views = function(debug) {
T(resp.req.cookie);
// get with query params
- xhr = CouchDB.request("GET", "/test_suite_db/_design/lists/_list/simpleForm/basicView?startkey=3");
+ xhr = CouchDB.request("GET", "/test_suite_db/_design/lists/_list/simpleForm/basicView?startkey=3&endkey=8");
T(xhr.status == 200, "with query params");
T(/Total Rows/.test(xhr.responseText));
T(!(/Key: 1/.test(xhr.responseText)));
T(/FirstKey: 3/.test(xhr.responseText));
- T(/LastKey: 9/.test(xhr.responseText));
+ T(/LastKey: 8/.test(xhr.responseText));
- var xhr = CouchDB.request("GET", "/test_suite_db/_view/lists/basicView?list=simpleForm&startkey=3");
+ var xhr = CouchDB.request("GET", "/test_suite_db/_view/lists/basicView?list=simpleForm&startkey=3&endkey=8");
T(xhr.status == 200, "with query params");
T(/Total Rows/.test(xhr.responseText));
T(!(/Key: 1/.test(xhr.responseText)));
T(/FirstKey: 3/.test(xhr.responseText));
- T(/LastKey: 9/.test(xhr.responseText));
+ T(/LastKey: 8/.test(xhr.responseText));
// with 0 rows
var xhr = CouchDB.request("GET", "/test_suite_db/_design/lists/_list/simpleForm/basicView?startkey=30");