addressbook.add(contact);
findSuccess = t.step_func(function (persons) {
for (i = 0; i < persons.length; ++i) {
- if (persons[i].displayName === "John Doe") {
- results = true;
- }
+ if (persons[i].id === contact.personId) {
+ results = true;
+ }
}
- assert_true(results, "contactname.firstName attribute.");
- assert_type(persons[0].displayName, "string", "contacts[0].displayName attribute.");
+ assert_true(results, "The person is not found");
tizen.contact.remove(contact.personId);
assert_equals(returnedValue, undefined, "Incorrect value returned.");
t.done();