[Contact] Fixed to use personId than displayName
authorJunghyuk Park <junghyuk.park@samsung.com>
Wed, 28 Aug 2013 05:24:25 +0000 (14:24 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Wed, 28 Aug 2013 08:55:49 +0000 (08:55 +0000)
Change-Id: Idccc748d3e04660e74e999229e820ab947225e7b

tct-contact-tizen-tests/contact/ContactManager_find.html

index 788de974afcec73376e86340be7aa4b587c0742b..8e423662ae11abd8592204bcc47bd9d943063e7c 100755 (executable)
@@ -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();