From 2abb74e62571b2c775bcd18cfa8c4117f6a544ce Mon Sep 17 00:00:00 2001 From: Jason David Davies Date: Mon, 14 Sep 2009 23:15:34 +0000 Subject: Add test for COUCHDB-500. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814912 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/test/list_views.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'share/www/script/test/list_views.js') 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"); -- cgit v1.2.3