diff options
Diffstat (limited to 'share/www/script/test/show_documents.js')
-rw-r--r-- | share/www/script/test/show_documents.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/share/www/script/test/show_documents.js b/share/www/script/test/show_documents.js index 7201ae81..6f41f6e8 100644 --- a/share/www/script/test/show_documents.js +++ b/share/www/script/test/show_documents.js @@ -147,6 +147,14 @@ couchTests.show_documents = function(debug) { // Fix for COUCHDB-379 T(equals(xhr.getResponseHeader("Server").substr(0,7), "CouchDB")); + + + xhr = CouchDB.request("GET", "/test_suite_db/"+docid+"?show=template/hello"); + T(xhr.responseText == "Hello World"); + T(/charset=utf-8/.test(xhr.getResponseHeader("Content-Type"))) + + // Fix for COUCHDB-379 + T(equals(xhr.getResponseHeader("Server").substr(0,7), "CouchDB")); // // error stacktraces // xhr = CouchDB.request("GET", "/test_suite_db/_design/template/_show/render-error/"+docid); @@ -163,7 +171,10 @@ couchTests.show_documents = function(debug) { // show with doc xhr = CouchDB.request("GET", "/test_suite_db/_design/template/_show/just-name/"+docid); T(xhr.responseText == "Just Rusty"); - + + xhr = CouchDB.request("GET", "/test_suite_db/"+docid+"?show=template/just-name"); + T(xhr.responseText == "Just Rusty"); + // show with missing doc xhr = CouchDB.request("GET", "/test_suite_db/_design/template/_show/just-name/missingdoc"); |