summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2009-08-27 19:26:35 +0000
committerAdam Kocoloski <kocolosk@apache.org>2009-08-27 19:26:35 +0000
commit17f526b45e79efd877b21ded5d4c1c31cf2d5f7a (patch)
tree359ae07c2f56897d1df55d3b1f862e162f8e8d8f /share/www
parent170f39d6005c58073036fee7d21912f3cf69cc1d (diff)
send deleted docs to _changes filters
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@808574 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/test/changes.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/share/www/script/test/changes.js b/share/www/script/test/changes.js
index e7721cbb..1adfaa1b 100644
--- a/share/www/script/test/changes.js
+++ b/share/www/script/test/changes.js
@@ -189,6 +189,15 @@ couchTests.changes = function(debug) {
resp = JSON.parse(req.responseText);
T(resp.results.length == 1);
+ // changes get all_docs style with deleted docs
+ var doc = {a:1};
+ db.save(doc);
+ db.deleteDoc(doc);
+ var req = CouchDB.request("GET",
+ "/test_suite_db/_changes?filter=changes_filter/bop&style=all_docs");
+ var resp = JSON.parse(req.responseText);
+ TEquals(1, resp.results.length, "should return one result row");
+
// test for userCtx
run_on_modified_server(
[{section: "httpd",