diff options
author | John Christopher Anderson <jchris@apache.org> | 2009-05-10 09:12:01 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2009-05-10 09:12:01 +0000 |
commit | 2c8bc8ed6a2dc4ecdde08e779e4882f189485271 (patch) | |
tree | 98e826d28806b4fa96d273768719d78aa1355593 /share/www/script | |
parent | d748a328aec166047c81bcaf3dec6b0a885a2088 (diff) |
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
Diffstat (limited to 'share/www/script')
-rw-r--r-- | share/www/script/test/list_views.js | 8 |
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 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"); |