summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorBenoit Chesneau <benoitc@apache.org>2010-06-05 22:37:45 +0000
committerBenoit Chesneau <benoitc@apache.org>2010-06-05 22:37:45 +0000
commit1294f5df57c956b93232aa1635f6574c055825f8 (patch)
tree80a7ea8602140ff7e10541fab82e76044fd9396c /share
parentcec0ef2ac1d2ecb5e2153f2415cb947fadeb42e0 (diff)
fix #COUCHDB-787 . thanks!
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@951786 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r--share/www/script/test/rewrite.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/share/www/script/test/rewrite.js b/share/www/script/test/rewrite.js
index d3888d9a..66b33d74 100644
--- a/share/www/script/test/rewrite.js
+++ b/share/www/script/test/rewrite.js
@@ -137,6 +137,13 @@ couchTests.rewrite = function(debug) {
"query": {
"key": [":a", ":b"]
}
+ },
+ {
+ "from": "simpleForm/complexView6",
+ "to": "_list/simpleForm/complexView3",
+ "query": {
+ "key": [":a", ":b"]
+ }
}
],
lists: {
@@ -331,6 +338,10 @@ couchTests.rewrite = function(debug) {
T(xhr.status == 200, "with query params");
T(/Value: doc 4/.test(xhr.responseText));
+ xhr = CouchDB.request("GET", "/test_suite_db/_design/test/_rewrite/simpleForm/complexView6?a=test&b=essai");
+ T(xhr.status == 200, "with query params");
+ T(/Value: doc 4/.test(xhr.responseText));
+
// test path relative to server
designDoc.rewrites.push({
"from": "uuids",