You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2010/08/07 12:53:47 UTC

svn commit: r983205 - /couchdb/trunk/share/www/script/test/attachments.js

Author: rnewson
Date: Sat Aug  7 10:53:46 2010
New Revision: 983205

URL: http://svn.apache.org/viewvc?rev=983205&view=rev
Log:
add tests for Etag in standalone attachment PUT enhancement.

Modified:
    couchdb/trunk/share/www/script/test/attachments.js

Modified: couchdb/trunk/share/www/script/test/attachments.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/attachments.js?rev=983205&r1=983204&r2=983205&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/attachments.js (original)
+++ couchdb/trunk/share/www/script/test/attachments.js Sat Aug  7 10:53:46 2010
@@ -93,6 +93,7 @@ couchTests.attachments= function(debug) 
   });
   T(xhr.status == 201);
   var rev = JSON.parse(xhr.responseText).rev;
+  TEquals('"' + rev + '"', xhr.getResponseHeader("Etag"));
 
   var xhr = CouchDB.request("GET", "/test_suite_db/bin_doc3/attachment.txt");
   T(xhr.responseText == bin_data);
@@ -110,6 +111,7 @@ couchTests.attachments= function(debug) 
   });
   T(xhr.status == 201);
   var rev = JSON.parse(xhr.responseText).rev;
+  TEquals('"' + rev + '"', xhr.getResponseHeader("Etag"));
 
   var xhr = CouchDB.request("GET", "/test_suite_db/bin_doc3/attachment.txt");
   T(xhr.responseText == bin_data);