summaryrefslogtreecommitdiff
path: root/share/www/script
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2010-08-07 10:53:46 +0000
committerRobert Newson <rnewson@apache.org>2010-08-07 10:53:46 +0000
commit5b620c64c426256d78fe956aeda9132de96f8e53 (patch)
treeb2e8b64ccaa9768fa681edcbaf852d5aae105fc3 /share/www/script
parent809c8a543ab2441622730def80b9138520a95f2a (diff)
add tests for Etag in standalone attachment PUT enhancement.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@983205 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script')
-rw-r--r--share/www/script/test/attachments.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/www/script/test/attachments.js b/share/www/script/test/attachments.js
index 9d89d5d0..f3106acb 100644
--- a/share/www/script/test/attachments.js
+++ b/share/www/script/test/attachments.js
@@ -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);