Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7EADDC307 for ; Wed, 23 May 2012 18:37:43 +0000 (UTC) Received: (qmail 25177 invoked by uid 500); 23 May 2012 18:37:42 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 25143 invoked by uid 500); 23 May 2012 18:37:42 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 25040 invoked by uid 99); 23 May 2012 18:37:42 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2012 18:37:42 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 045FF141887 for ; Wed, 23 May 2012 18:37:42 +0000 (UTC) Date: Wed, 23 May 2012 18:37:42 +0000 (UTC) From: "Becky Gibson (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <994395260.12578.1337798262020.JavaMail.jiratomcat@issues-vm> In-Reply-To: <2028179849.11479.1335827387881.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (CB-609) Contact update test fails when it should pass MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Becky Gibson closed CB-609. --------------------------- Resolution: Cannot Reproduce Fix Version/s: 1.8.0 Assignee: Becky Gibson (was: Filip Maj) now passing with rewritten tests > Contact update test fails when it should pass > --------------------------------------------- > > Key: CB-609 > URL: https://issues.apache.org/jira/browse/CB-609 > Project: Apache Cordova > Issue Type: Bug > Components: iOS, mobile-spec > Affects Versions: 1.7.0 > Reporter: Shazron Abdullah > Assignee: Becky Gibson > Fix For: 1.8.0 > > > This test fails on iOS when it should pass: https://github.com/apache/incubator-cordova-mobile-spec/blob/master/autotest/tests/contacts.tests.js#L313 > I have verified that the method does return to the save callback (in Obj-C), and also created a new project and: > 1. created and saved a contact > 2. From the contact returned from the save callback of (1), I updated the contact and saved again > 3. The save callback from the save in (2) was ok > Perhaps this is a timing issue, not sure. > {code} > var myContact = null; > function onDeviceReady() > { > // create a new contact object > myContact = navigator.contacts.create(); > myContact.displayName = "Plumber"; > myContact.nickname = "Plumber"; //specify both to support all devices > > // populate some fields > var name = new ContactName(); > name.givenName = "Jane"; > name.familyName = "Doe"; > myContact.name = name; > > // save to device > myContact.save(onSuccess,onError); > } > > function onSuccess(contact) { > alert("Save Success"); > myContact = contact; > > > myContact.note = "an UPDATED note"; > myContact.save(onSuccess2,onError2); > }; > > function onError(contactError) { > alert("Error = " + contactError.code); > }; > > function onSuccess2(contact) { > alert("Update Save Success"); > }; > > function onError2(contactError) { > alert("Error2 = " + contactError.code); > }; > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira