[TC-genlist] Modified and fixed genlist TCs.
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Sun, 31 Oct 2010 04:29:46 +0000 (13:29 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Sun, 31 Oct 2010 04:29:46 +0000 (13:29 +0900)
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_data_get_func.c
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_disabled_set_func.c
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_display_only_set_func.c
TC/elm_ts/genlist/utc_UIFW_elm_genlist_scroller_policy_set_func.c

index 64615c8..5ada7cd 100644 (file)
@@ -108,7 +108,7 @@ static void utc_UIFW_elm_genlist_item_data_get_func_01(void)
        my_data = (char *)calloc(sizeof(char), 10);
        strcpy(my_data, data);
        elm_genlist_item_data_set(it, my_data);
-       get_data = elm_genlist_item_data_get(it);
+       get_data = (char *)elm_genlist_item_data_get(it);
 
        if (get_data != my_data) {
                tet_infoline("elm_genlist_add() failed in positive test case");
@@ -123,6 +123,6 @@ static void utc_UIFW_elm_genlist_item_data_get_func_01(void)
  */
 static void utc_UIFW_elm_genlist_item_data_get_func_02(void)
 {
-       elm_genlist_item_data_get(NULL, NULL);
+       elm_genlist_item_data_get(NULL);
        tet_result(TET_PASS);
 }
index bae0b51..d987dcb 100644 (file)
@@ -82,12 +82,11 @@ static void cleanup(void)
  */
 static void utc_UIFW_elm_genlist_item_disabled_set_func_01(void)
 {
-   Elm_Genlist_Item *item = NULL;
-   Eina_Bool ret = EINA_FALSE;
+       Elm_Genlist_Item *item = NULL;
+       Eina_Bool ret = EINA_FALSE;
 
-   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
-                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
-       elm_genlist_item_disabled_set(item, 1);
+       item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+       elm_genlist_item_disabled_set(item, EINA_TRUE);
 
        ret = elm_genlist_item_disabled_get(item);
    
@@ -104,13 +103,10 @@ static void utc_UIFW_elm_genlist_item_disabled_set_func_01(void)
  */
 static void utc_UIFW_elm_genlist_item_disabled_set_func_02(void)
 {
-   Elm_Genlist_Item *item = NULL;
-   Eina_Bool ret = EINA_FALSE;
+       Elm_Genlist_Item *item = NULL;
 
-   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
-                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
-   
-       elm_genlist_item_disabled_set(NULL,0);
+       item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+       elm_genlist_item_disabled_set(NULL, EINA_FALSE);
    
        tet_result(TET_PASS);
 }
index 0ccd314..a2f5fbc 100644 (file)
@@ -82,12 +82,11 @@ static void cleanup(void)
  */
 static void utc_UIFW_elm_genlist_item_display_only_set_func_01(void)
 {
-   Elm_Genlist_Item *item = NULL;
-   Eina_Bool ret = EINA_FALSE;
+       Elm_Genlist_Item *item = NULL;
+       Eina_Bool ret = EINA_FALSE;
 
-   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
-                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
-       elm_genlist_item_display_only_set(item, 1);
+       item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+       elm_genlist_item_display_only_set(item, EINA_TRUE);
 
        ret = elm_genlist_item_display_only_get(item);
    
@@ -104,13 +103,10 @@ static void utc_UIFW_elm_genlist_item_display_only_set_func_01(void)
  */
 static void utc_UIFW_elm_genlist_item_display_only_set_func_02(void)
 {
-   Elm_Genlist_Item *item = NULL;
-   Eina_Bool ret = EINA_FALSE;
+       Elm_Genlist_Item *item = NULL;
 
-   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
-                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
-   
-       elm_genlist_item_display_only_set(NULL, 0);
+       item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+       elm_genlist_item_display_only_set(NULL, EINA_FALSE);
    
        tet_result(TET_PASS);
 }
index 64bc15d..dcdd5d8 100644 (file)
@@ -100,7 +100,7 @@ static void cleanup(void)
  */
 static void utc_UIFW_elm_genlist_scroller_policy_set_func_01(void)
 {
-       elm_genlist_scroller_policy_set(it, ELM_SCROLLER_POLICY_ON, ELM_SCROLLER_POLICY_OFF);
+       elm_genlist_scroller_policy_set(genlist, ELM_SCROLLER_POLICY_ON, ELM_SCROLLER_POLICY_OFF);
        tet_result(TET_PASS);
 }