apache/incubator-cordova-mobile-spec — pull request #1 by becka11y (2012-03-02 22:29:14+00:00)
Title: Updating contacts tests

Added tests to save, update and remove a contact.
Save and update verify Date is saved, updated and retrieved properly. Test modifying a note, removing an email address.

These new tests work with the current iOS implementation. NOTE - these tests now ADD and REMOVE a contact. You may want to run on a simulator first so you don't risk losing contacts from an actual device!!!! Also, the test to remove an invalid contact uses and id of 999 (it was previously 99 and I made it larger since I think it is conceivable that a device could have a valid contact with id 99). I think even 999 is risky since different devices may use different conventions for assigning ids. There is now a test that uses an id for a contact that was removed to verify that trying to remove a contact with an invalid ID returns the proper error. As long as the remove works, this test should be valid and we could get rid of the removal test with the arbitrary id of 999.

Please test and let me know of any issues before I commit.