incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Created] (CB-609) Contact update test fails when it should pass
Date Mon, 30 Apr 2012 23:09:47 GMT
Shazron Abdullah created CB-609:

             Summary: Contact update test fails when it should pass
                 Key: CB-609
             Project: Apache Callback
          Issue Type: Bug
          Components: iOS, mobile-spec
    Affects Versions: 1.7.0
            Reporter: Shazron Abdullah
            Assignee: Shazron Abdullah

This test fails on iOS when it should pass:

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
3. The save callback from the save in (2) was ok

Perhaps this is a timing issue, not sure.

    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"; = name;
        // save to device,onError);        
    function onSuccess(contact) {
        alert("Save Success");
        myContact = contact;
        myContact.note = "an UPDATED note";,onError2);        
    function onError(contactError) {
        alert("Error = " + contactError.code);
    function onSuccess2(contact) {
        alert("Update Save Success");
    function onError2(contactError) {
        alert("Error2 = " + contactError.code);


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message