couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject svn commit: r983205 - /couchdb/trunk/share/www/script/test/attachments.js
Date Sat, 07 Aug 2010 10:53:47 GMT
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);



Mime
View raw message