From fe98014a2345b504ea4bd876fd102c6738ed6bb5 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Tue, 22 Dec 2009 18:32:12 +0000 Subject: 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 --- share/www/script/test/show_documents.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'share') 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); -- cgit v1.2.3