summaryrefslogtreecommitdiff
path: root/share/www/script
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-12-22 18:32:12 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-12-22 18:32:12 +0000
commitfe98014a2345b504ea4bd876fd102c6738ed6bb5 (patch)
tree09167d502bd84c336552d074ad3aff37ba35c2bc /share/www/script
parentea3b1153e52ac1513da4d634eedefb05c261039c (diff)
remove show from db doc GET handler, completing flip-flop on COUCHDB-404
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@893261 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script')
-rw-r--r--share/www/script/test/show_documents.js12
1 files changed, 1 insertions, 11 deletions
diff --git a/share/www/script/test/show_documents.js b/share/www/script/test/show_documents.js
index 53ffbc42..5441e72c 100644
--- a/share/www/script/test/show_documents.js
+++ b/share/www/script/test/show_documents.js
@@ -138,16 +138,9 @@ couchTests.show_documents = function(debug) {
// hello template world
xhr = CouchDB.request("GET", "/test_suite_db/_design/template/_show/hello/"+docid);
T(xhr.responseText == "Hello World", "hello");
- T(/charset=utf-8/.test(xhr.getResponseHeader("Content-Type")))
-
- // Fix for COUCHDB-379
- T(equals(xhr.getResponseHeader("Server").substr(0,7), "CouchDB"));
+ T(/charset=utf-8/.test(xhr.getResponseHeader("Content-Type")));
- 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"));
@@ -173,9 +166,6 @@ couchTests.show_documents = function(debug) {
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");
T(xhr.status == 404);