couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jasondav...@apache.org
Subject svn commit: r814912 - /couchdb/trunk/share/www/script/test/list_views.js
Date Mon, 14 Sep 2009 23:15:34 GMT
Author: jasondavies
Date: Mon Sep 14 23:15:34 2009
New Revision: 814912

URL: http://svn.apache.org/viewvc?rev=814912&view=rev
Log:
Add test for COUCHDB-500.

Modified:
    couchdb/trunk/share/www/script/test/list_views.js

Modified: couchdb/trunk/share/www/script/test/list_views.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/list_views.js?rev=814912&r1=814911&r2=814912&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/list_views.js (original)
+++ couchdb/trunk/share/www/script/test/list_views.js Mon Sep 14 23:15:34 2009
@@ -232,19 +232,19 @@
   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");



Mime
View raw message