genlist: fix item prepend TC result properly. item must under the group parent item... 65/131565/2
authorSangHyeon Lee <sh10233.lee@samsung.com>
Tue, 30 May 2017 04:57:51 +0000 (13:57 +0900)
committerSangHyeon Lee <sh10233.lee@samsung.com>
Tue, 30 May 2017 06:37:56 +0000 (15:37 +0900)
Change-Id: I1b8add460deb6c6a7cbbeeb48110e6a9f7b8e707
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
TC/elementary/genlist/utc_elm_genlist_item_prepend.c

index d6a3ba30edc3b981cb492498d8397ce08677ef00..c3bb89810592f9d1eac2b5899d3e82662ce998cc 100644 (file)
@@ -147,19 +147,19 @@ START_TEST(utc_elm_genlist_item_prepend_p2)
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
      }
 
-   item = elm_genlist_item_append(genlist, gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+   item = elm_genlist_item_append(genlist, gic, NULL, NULL, ELM_GENLIST_ITEM_GROUP, NULL, NULL);
    if (item == NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to append an item in the genlist widget..", __FILE__, __LINE__);
      }
 
-   item_1st = elm_genlist_item_prepend(genlist, gic, NULL, item, ELM_GENLIST_ITEM_GROUP, NULL, NULL);
+   item_1st = elm_genlist_item_prepend(genlist, gic, NULL, item, ELM_GENLIST_ITEM_NONE, NULL, NULL);
    if (item_1st == NULL)
      {
         elm_object_item_del(item);
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
      }
-   item_2nd = elm_genlist_item_prepend(genlist, gic, NULL, item, ELM_GENLIST_ITEM_GROUP, NULL, NULL);
+   item_2nd = elm_genlist_item_prepend(genlist, gic, NULL, item, ELM_GENLIST_ITEM_NONE, NULL, NULL);
    if (item_2nd == NULL)
      {
         elm_object_item_del(item_1st);
@@ -168,7 +168,7 @@ START_TEST(utc_elm_genlist_item_prepend_p2)
      }
 
    item_ret = elm_genlist_first_item_get(genlist);
-   if ((item_ret == NULL) || (item_ret != item_2nd))
+   if ((item_ret == NULL) || (item_ret != item))
      {
         elm_object_item_del(item_1st);
         elm_object_item_del(item_2nd);