Return-Path: Delivered-To: apmail-incubator-couchdb-commits-archive@locus.apache.org Received: (qmail 25808 invoked from network); 31 Jul 2008 21:23:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jul 2008 21:23:55 -0000 Received: (qmail 25474 invoked by uid 500); 31 Jul 2008 21:23:54 -0000 Delivered-To: apmail-incubator-couchdb-commits-archive@incubator.apache.org Received: (qmail 25453 invoked by uid 500); 31 Jul 2008 21:23:54 -0000 Mailing-List: contact couchdb-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-commits@incubator.apache.org Received: (qmail 25435 invoked by uid 99); 31 Jul 2008 21:23:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2008 14:23:53 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2008 21:23:07 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0A98B2388989; Thu, 31 Jul 2008 14:23:04 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r681504 - /incubator/couchdb/branches/0.8.x/share/www/script/couch_tests.js Date: Thu, 31 Jul 2008 21:23:03 -0000 To: couchdb-commits@incubator.apache.org From: cmlenz@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080731212304.0A98B2388989@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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) {