Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 4844 invoked from network); 15 Oct 2009 13:21:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Oct 2009 13:21:06 -0000 Received: (qmail 98393 invoked by uid 500); 15 Oct 2009 13:21:06 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 98315 invoked by uid 500); 15 Oct 2009 13:21:05 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 98305 invoked by uid 99); 15 Oct 2009 13:21:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2009 13:21:05 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.97.50.139] (HELO jan.prima.de) (83.97.50.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2009 13:20:56 +0000 Received: from [10.0.1.3] (i59F4ECB6.versanet.de [::ffff:89.244.236.182]) (AUTH: LOGIN jan, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by jan.prima.de with esmtp; Thu, 15 Oct 2009 13:20:35 +0000 Content-Type: text/plain; charset=us-ascii; format=flowed Mime-Version: 1.0 (Apple Message framework v1076) Subject: Re: async saveDoc From: Jan Lehnardt In-Reply-To: Date: Thu, 15 Oct 2009 15:20:33 +0200 Content-Transfer-Encoding: 7bit Message-Id: <68483F0D-5F14-42C7-8332-49244ECF156B@apache.org> References: To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1076) X-Virus-Checked: Checked by ClamAV on apache.org Hi Vlad, On 15 Oct 2009, at 14:48, Vlad GURDIGA wrote: > Hello! > > I'm trying to set up some acceptance tests for a $.CouchApp form like: > - fill the form fields with some values; > - submit the form and check the success; > > Right now (couchdb r825472) the form is submitted asynchronously, and, > as far as I can see there is no way to cleanly automate form > submission and check the result. > > For this purpose, I think it would be nice to have the opportunity to > ask $.couch.db.saveDoc() to save the document asynchronously. > As far as I could see in jquery.couch.js, this would need a few little > changes (the patch is attached). this mailing list strips most attachments. Try uploading it to http://friendpaste.com/ :) Cheers Jan --