summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2010-02-28 02:45:53 +0000
committerJan Lehnardt <jan@apache.org>2010-02-28 02:45:53 +0000
commit89bc74477df2cb0b123d1b7e0d4a9b8cda0a6c9f (patch)
treeaca872035e7c6c5191c026dee592e1d5104432ac /share
parent1be99a1ef26c3d9233483cd7d0e0ff3f96ca8514 (diff)
revert accidental commit
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@917102 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r--share/www/script/test/show_documents.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/share/www/script/test/show_documents.js b/share/www/script/test/show_documents.js
index e06bcadc..f49c1f1f 100644
--- a/share/www/script/test/show_documents.js
+++ b/share/www/script/test/show_documents.js
@@ -54,13 +54,6 @@ couchTests.show_documents = function(debug) {
json : req
}
}),
- "show-deleted" : stringFun(function(doc, req) {
- if(doc) {
- return doc._id;
- } else {
- return "No doc " + req.id;
- }
- }),
"render-error" : stringFun(function(doc, req) {
return noSuchVariable;
}),
@@ -400,15 +393,5 @@ couchTests.show_documents = function(debug) {
T(xhr.responseText == "Hey Dude");
TEquals("Yeah", xhr.getResponseHeader("X-Couch-Test-Header"), "header should be cool");
TEquals("Oh Yeah!", xhr.getResponseHeader("X-Couch-Test-Header-Awesome"), "header should be cool");
-
- // test deleted docs
- var doc = {_id:"testdoc",foo:1};
- db.save(doc);
- var xhr = CouchDB.request("GET", "/test_suite_db/_design/template/_show/show-deleted/testdoc");
- TEquals("testdoc", xhr.responseText, "should return 'testdoc'");
-
- db.deleteDoc(doc);
- var xhr = CouchDB.request("GET", "/test_suite_db/_design/template/_show/show-deleted/testdoc");
- TEquals("No doc testdoc", xhr.responseText, "should return 'no doc testdoc'");
};