From 2f18f60fea5a1de6a221c6124038399c47d42aa2 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Thu, 9 Jul 2009 17:51:54 +0000 Subject: 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 --- share/www/script/test/attachments.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'share/www/script/test/attachments.js') 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); + }; -- cgit v1.2.3