From 2c8bc8ed6a2dc4ecdde08e779e4882f189485271 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Sun, 10 May 2009 09:12:01 +0000 Subject: Refactor the make_view_fold_function stuff. Added a proper Acc to both map and reduce view folds. Cleaned up some pattern matchers. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@773319 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') diff --git a/share/www/script/test/list_views.js b/share/www/script/test/list_views.js index 0bf03900..663a5930 100644 --- a/share/www/script/test/list_views.js +++ b/share/www/script/test/list_views.js @@ -248,15 +248,15 @@ couchTests.list_views = function(debug) { // aborting iteration var xhr = CouchDB.request("GET", "/test_suite_db/_design/lists/_list/stopIter/basicView"); - T(xhr.responseText.match(/^head 0 1 2 tail$/)); + T(xhr.responseText.match(/^head 0 1 2 tail$/) && "basic stop"); xhr = CouchDB.request("GET", "/test_suite_db/_design/lists/_list/stopIter2/basicView"); - T(xhr.responseText.match(/^head 0 1 2 tail$/)); + T(xhr.responseText.match(/^head 0 1 2 tail$/) && "stop 2"); // aborting iteration with reduce var xhr = CouchDB.request("GET", "/test_suite_db/_design/lists/_list/stopIter/withReduce?group=true"); - T(xhr.responseText.match(/^head 0 1 2 tail$/)); + T(xhr.responseText.match(/^head 0 1 2 tail$/) && "reduce stop"); xhr = CouchDB.request("GET", "/test_suite_db/_design/lists/_list/stopIter2/withReduce?group=true"); - T(xhr.responseText.match(/^head 0 1 2 tail$/)); + T(xhr.responseText.match(/^head 0 1 2 tail$/) && "reduce stop 2"); // empty list var xhr = CouchDB.request("GET", "/test_suite_db/_design/lists/_list/emptyList/basicView"); -- cgit v1.2.3