diff options
author | Noah Slater <nslater@apache.org> | 2009-07-14 20:21:39 +0000 |
---|---|---|
committer | Noah Slater <nslater@apache.org> | 2009-07-14 20:21:39 +0000 |
commit | 350811a34260baed48995c66baf1cb30021d2fbd (patch) | |
tree | 339273288be0a4da445d4f69ed94ed6c73318d67 /share/www/script/test/show_documents.js | |
parent | 2ad5a154d0494373f55370aac7c4b635089da36a (diff) |
wheeeeeeee
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@794057 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test/show_documents.js')
-rw-r--r-- | share/www/script/test/show_documents.js | 15 |
1 files changed, 7 insertions, 8 deletions
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"); |