couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r681504 - /incubator/couchdb/branches/0.8.x/share/www/script/couch_tests.js
Date Thu, 31 Jul 2008 21:23:03 GMT
Author: cmlenz
Date: Thu Jul 31 14:23:03 2008
New Revision: 681504

URL: http://svn.apache.org/viewvc?rev=681504&view=rev
Log:
Fix incorrect merge of attachments tests on 0.8.x branch.

Modified:
    incubator/couchdb/branches/0.8.x/share/www/script/couch_tests.js

Modified: incubator/couchdb/branches/0.8.x/share/www/script/couch_tests.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/branches/0.8.x/share/www/script/couch_tests.js?rev=681504&r1=681503&r2=681504&view=diff
==============================================================================
--- incubator/couchdb/branches/0.8.x/share/www/script/couch_tests.js [utf-8] (original)
+++ incubator/couchdb/branches/0.8.x/share/www/script/couch_tests.js [utf-8] Thu Jul 31 14:23:03
2008
@@ -558,30 +558,6 @@
     var xhr = CouchDB.request("GET", "/test_suite_db/bin_doc/foo.txt");
     T(xhr.responseText == "This is a base64 encoded text");
     T(xhr.getResponseHeader("Content-Type") == "text/plain");
-
-    // empty attachments
-    var xhr = CouchDB.request("PUT", "/test_suite_db/bin_doc4/attachment.txt", {
-      headers:{"Content-Type":"text/plain;charset=utf-8"},
-      body:""
-    });
-    T(xhr.status == 201);
-    var rev = JSON.parse(xhr.responseText).rev;
-
-    var xhr = CouchDB.request("GET", "/test_suite_db/bin_doc4/attachment.txt");
-    T(xhr.status == 200);
-    T(xhr.responseText.length == 0);
-    
-    // overwrite previsously empty attachment
-    var xhr = CouchDB.request("PUT", "/test_suite_db/bin_doc4/attachment.txt?rev=" + rev,
{
-      headers:{"Content-Type":"text/plain;charset=utf-8"},
-      body:"This is a string"
-    });
-    T(xhr.status == 201);
-
-    var xhr = CouchDB.request("GET", "/test_suite_db/bin_doc4/attachment.txt");
-    T(xhr.status == 200);
-    T(xhr.responseText == "This is a string");
-    
   },
 
   content_negotiation: function(debug) {



Mime
View raw message