diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/www/script/test/list_views.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/share/www/script/test/list_views.js b/share/www/script/test/list_views.js index 6ad5c6bc..4b089bac 100644 --- a/share/www/script/test/list_views.js +++ b/share/www/script/test/list_views.js @@ -160,6 +160,12 @@ couchTests.list_views = function(debug) { var row = getRow(); send(fooBarBam); // intentional error return "tail"; + }), + docReference : stringFun(function(head, req) { + send("head"); + var row = getRow(); + send(row.doc.integer); + return "tail"; }) } }; @@ -316,6 +322,10 @@ couchTests.list_views = function(debug) { T(/ReferenceError/.test(xhr.responseText)); + // with include_docs and a reference to the doc. + var xhr = CouchDB.request("GET", "/test_suite_db/_design/lists/_list/docReference/basicView?include_docs=true"); + T(xhr.responseText.match(/head0tail/)); + // now with extra qs params var xhr = CouchDB.request("GET", "/test_suite_db/_design/lists/_list/qsParams/basicView?foo=blam"); T(xhr.responseText.match(/blam/)); |