diff options
Diffstat (limited to 'share/www/script/test/attachments.js')
-rw-r--r-- | share/www/script/test/attachments.js | 5 |
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); + }; |