summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-02-03 17:29:46 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-02-03 17:29:46 +0000
commit4ffdb2666447e78714f03b54d31ede6a01eb16d5 (patch)
tree1441aed29c3a3d237b80931ce237a08cf0d58ce9 /share/www
parent6bebee4e85ba211212a9ed3b270077f050214911 (diff)
error message on bad security object
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@906140 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/test/security_validation.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/www/script/test/security_validation.js b/share/www/script/test/security_validation.js
index 9ecb9ba0..d618a5ac 100644
--- a/share/www/script/test/security_validation.js
+++ b/share/www/script/test/security_validation.js
@@ -187,6 +187,12 @@ couchTests.security_validation = function(debug) {
T(db.setDbProperty("_security", {admin_override : true}).ok);
T(db.save(doc).ok);
+ // try to do something lame
+ try {
+ db.setDbProperty("_security", ["foo"]);
+ T(false && "can't do this");
+ } catch(e) {}
+
// go back to normal
T(db.setDbProperty("_security", {admin_override : false}).ok);