summaryrefslogtreecommitdiff
path: root/share/www/script/test/attachments.js
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2009-07-09 17:51:54 +0000
committerAdam Kocoloski <kocolosk@apache.org>2009-07-09 17:51:54 +0000
commit2f18f60fea5a1de6a221c6124038399c47d42aa2 (patch)
tree811682eae57fb9168c0dffb80b50b2bfc115594a /share/www/script/test/attachments.js
parent02cb712e18ee5647517fc38b6aa0c188af090894 (diff)
fix and test for scrambling of large inline attachments
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@792618 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test/attachments.js')
-rw-r--r--share/www/script/test/attachments.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/www/script/test/attachments.js b/share/www/script/test/attachments.js
index 6af6ae8f..7204475f 100644
--- a/share/www/script/test/attachments.js
+++ b/share/www/script/test/attachments.js
@@ -197,4 +197,9 @@ couchTests.attachments= function(debug) {
T(xhr.responseText == lorem);
T(xhr.getResponseHeader("Content-Type") == "text/plain;charset=utf-8");
+ // test large inline attachment too
+ var lorem_b64 = CouchDB.request("GET", "/_utils/script/test/lorem_b64.txt").responseText;
+ var doc = db.open("bin_doc5", {attachments:true});
+ T(doc._attachments["lorem.txt"].data == lorem_b64);
+
};