From 1294f5df57c956b93232aa1635f6574c055825f8 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Sat, 5 Jun 2010 22:37:45 +0000 Subject: fix #COUCHDB-787 . thanks! git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@951786 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/test/rewrite.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'share/www') 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", -- cgit v1.2.3