Author: fdmanana
Date: Tue May 17 19:18:57 2011
New Revision: 1104478

URL: http://svn.apache.org/viewvc?rev=1104478&view=rev
Log:
Added extra assertions to the test for COUCHDB-885

This is to verify the attachments really exist in the target and
have the right data and metadata.

Modified:
    couchdb/branches/1.1.x/share/www/script/test/replication.js

Modified: couchdb/branches/1.1.x/share/www/script/test/replication.js
URL: 
http://svn.apache.org/viewvc/couchdb/branches/1.1.x/share/www/script/test/replication.js?rev=1104478&r1=1104477&r2=1104478&view=diff
==============================================================================
--- couchdb/branches/1.1.x/share/www/script/test/replication.js (original)
+++ couchdb/branches/1.1.x/share/www/script/test/replication.js Tue May 17 
19:18:57 2011
@@ -838,6 +838,12 @@ couchTests.replication = function(debug)
   T(copy !== null);
   TEquals("undefined", typeof copy._conflicts);
   TEquals("undefined", typeof copy._deleted_conflicts);
+  TEquals("text/plain", copy._attachments["hello.txt"]["content_type"]);
+  TEquals("aGVsbG8gd29ybGQ=", copy._attachments["hello.txt"]["data"]);
+  TEquals("gzip", copy._attachments["hello.txt"]["encoding"]);
+  TEquals("not/compressible", copy._attachments["foo.dat"]["content_type"]);
+  TEquals("aSBhbSBub3QgZ3ppcGVk", copy._attachments["foo.dat"]["data"]);
+  TEquals("undefined", typeof copy._attachments["foo.dat"]["encoding"]);
   // end of test for COUCHDB-885
 
 


Reply via email to