summaryrefslogtreecommitdiff
path: root/share/www/script/couch_tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/www/script/couch_tests.js')
-rw-r--r--share/www/script/couch_tests.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js
index e9594918..bc4e067a 100644
--- a/share/www/script/couch_tests.js
+++ b/share/www/script/couch_tests.js
@@ -2795,6 +2795,10 @@ db.createDb();
}
}
})
+ }),
+ qsParams: stringFun(function(head, row, req, row_number) {
+ if(head) return {body: req.query.foo};
+ else return {body: "\n"};
})
}
};
@@ -2862,6 +2866,10 @@ db.createDb();
T(xhr.getResponseHeader("Content-Type") == "application/xml");
T(xhr.responseText.match(/XML/));
T(xhr.responseText.match(/entry/));
+
+ // now with extra qs params
+ xhr = CouchDB.request("GET", "/test_suite_db/_list/lists/qsParams/basicView?foo=blam");
+ T(xhr.responseText.match(/blam/));
},
compact: function(debug) {