From: Junghyuk Park Date: Wed, 28 Aug 2013 05:24:25 +0000 (+0900) Subject: [Contact] Fixed to use personId than displayName X-Git-Tag: 2.2.1_release~114^2~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf6fa7201893c4269b2446e43265e19df6ee01c1;p=test%2Ftct%2Fweb%2Fapi.git [Contact] Fixed to use personId than displayName Change-Id: Idccc748d3e04660e74e999229e820ab947225e7b --- diff --git a/tct-contact-tizen-tests/contact/ContactManager_find.html b/tct-contact-tizen-tests/contact/ContactManager_find.html index 788de974a..8e423662a 100755 --- a/tct-contact-tizen-tests/contact/ContactManager_find.html +++ b/tct-contact-tizen-tests/contact/ContactManager_find.html @@ -53,12 +53,11 @@ t.step(function () { 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();