From 350811a34260baed48995c66baf1cb30021d2fbd Mon Sep 17 00:00:00 2001 From: Noah Slater Date: Tue, 14 Jul 2009 20:21:39 +0000 Subject: wheeeeeeee git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@794057 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/test/show_documents.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'share/www/script/test/show_documents.js') diff --git a/share/www/script/test/show_documents.js b/share/www/script/test/show_documents.js index 6f41f6e8..8a1edd2d 100644 --- a/share/www/script/test/show_documents.js +++ b/share/www/script/test/show_documents.js @@ -1,16 +1,15 @@ // Licensed under the Apache License, Version 2.0 (the "License"); you may not -// use this file except in compliance with the License. You may obtain a copy -// of the License at +// use this file except in compliance with the License. You may obtain a copy of +// the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the // License for the specific language governing permissions and limitations under // the License. - couchTests.show_documents = function(debug) { var db = new CouchDB("test_suite_db"); db.deleteDb(); @@ -147,8 +146,8 @@ 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"))) @@ -171,10 +170,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"); -- cgit v1.2.3