[TC/genlist] Code refactoring. Fixed indentation. Removed trailing whitespaces.
[framework/uifw/elementary.git] / TC / elm_ts / genlist / utc_UIFW_elm_genlist_item_insert_before_func.c
index 2c73ab3..21ab297 100644 (file)
@@ -7,11 +7,11 @@
 { \
        Evas_Object *err = y; \
        if (err == (x1)) \
-               { \
-                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
-                       tet_result(TET_FAIL); \
-                       return; \
-               } \
+       { \
+               tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+               tet_result(TET_FAIL); \
+               return; \
+       } \
 }
 
 // For checking the result of the negative test case.
 { \
        Evas_Object *err = y; \
        if (err != (x1)) \
-               { \
-                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
-                       tet_result(TET_FAIL); \
-                       return; \
-               } \
+       { \
+               tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+               tet_result(TET_FAIL); \
+               return; \
+       } \
 }
 
 
@@ -55,7 +55,7 @@ static void startup(void)
        tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
        elm_init(0, NULL);
        main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-       evas_object_show(main_win);     
+       evas_object_show(main_win);
        genlist = elm_genlist_add(main_win);
        evas_object_show(genlist);
        elm_win_resize_object_add(main_win, genlist);
@@ -72,7 +72,7 @@ static void cleanup(void)
 {
        if ( NULL != main_win ) {
                evas_object_del(main_win);
-               main_win = NULL;
+               main_win = NULL;
        }
        elm_shutdown();
        tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
@@ -83,11 +83,11 @@ static void cleanup(void)
  */
 static void utc_UIFW_elm_genlist_item_insert_before_func_01(void)
 {
-   Elm_Genlist_Item *item = NULL, *result_item = NULL;
+       Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+       item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);
 
-   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
-                       ELM_GENLIST_ITEM_NONE, NULL, NULL);   
-   
        result_item = elm_genlist_item_insert_before(genlist, &itc, (void *) 0, NULL, item,
                        ELM_GENLIST_ITEM_NONE, NULL, NULL);
 
@@ -104,11 +104,11 @@ static void utc_UIFW_elm_genlist_item_insert_before_func_01(void)
  */
 static void utc_UIFW_elm_genlist_item_insert_before_func_02(void)
 {
-   Elm_Genlist_Item *item = NULL, *result_item = NULL;
+       Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+       item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);
 
-   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
-                       ELM_GENLIST_ITEM_NONE, NULL, NULL);   
-   
        result_item = elm_genlist_item_insert_before(NULL, &itc, (void *) 0, NULL, NULL,
                        ELM_GENLIST_ITEM_NONE, NULL, NULL);