[Index/TC] Modified for indentation.
authorPrince Kumar Dubey <prince.dubey@samsung.com>
Thu, 23 Sep 2010 12:18:43 +0000 (17:48 +0530)
committerPrince Kumar Dubey <prince.dubey@samsung.com>
Thu, 23 Sep 2010 12:18:43 +0000 (17:48 +0530)
12 files changed:
TC/elm_ts/index/utc_UIFW_elm_index_item_append_func.c
TC/elm_ts/index/utc_UIFW_elm_index_item_append_relative_func.c
TC/elm_ts/index/utc_UIFW_elm_index_item_clear_func.c
TC/elm_ts/index/utc_UIFW_elm_index_item_data_get_func.c
TC/elm_ts/index/utc_UIFW_elm_index_item_data_set_func.c
TC/elm_ts/index/utc_UIFW_elm_index_item_del_func.c
TC/elm_ts/index/utc_UIFW_elm_index_item_find_func.c
TC/elm_ts/index/utc_UIFW_elm_index_item_go_func.c
TC/elm_ts/index/utc_UIFW_elm_index_item_letter_get_func.c
TC/elm_ts/index/utc_UIFW_elm_index_item_prepend_func.c
TC/elm_ts/index/utc_UIFW_elm_index_item_prepend_relative_func.c
TC/elm_ts/index/utc_UIFW_elm_index_item_sorted_insert_func.c

index 7b6a50f..4530d26 100644 (file)
@@ -94,30 +94,29 @@ static void utc_UIFW_elm_index_item_append_func_01(void)
        idx= elm_index_add(main_win);   
        evas_object_show(gl);
        evas_object_show(idx);
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i <=40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-               if(i == 40)
-                       it_gl = it;
-        j += 2;
-    }  
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i <=40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               if(i == 40) it_gl = it;
+               j += 2;
+       }       
        elm_index_item_go(idx, 0);
-    it_idx = elm_index_item_find(idx,(void*)it_gl);    
-    letter = elm_index_item_letter_get(it_idx);
-    if((strcmp(letter,"K"))){
-            tet_infoline("elm_index_item_append() failed in positive test case");
-         tet_result(TET_FAIL);
-         return;
-    }
+       it_idx = elm_index_item_find(idx,(void*)it_gl); 
+       letter = elm_index_item_letter_get(it_idx);
+       if((strcmp(letter,"K"))){
+               tet_infoline("elm_index_item_append() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
        tet_result(TET_PASS);
 }
 
index a4b72f4..560dfc9 100755 (executable)
@@ -93,35 +93,35 @@ static void utc_UIFW_elm_index_item_append_relative_func_01(void)
        idx= elm_index_add(main_win);   
        evas_object_show(gl);
        evas_object_show(idx);  
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i <=40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-         if(i==0)
-         it_gl=it;
-      j += 2;
-    }  
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i <=40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               if(i==0) it_gl=it;
+               j += 2;
+       }       
         it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
         char buf[32];
         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
         elm_index_item_append_relative(idx, buf, it, it_gl);
-               elm_index_item_go(idx, 0);
+       elm_index_item_go(idx, 0);
         it_idx = elm_index_item_find(idx,(void*)it_gl);        
         letter = elm_index_item_letter_get(it_idx);
-        if((strcmp(letter,"A")&&(strcmp(buf,"K")))) {
-                       tet_infoline("elm_index_item_append_relative() failed in positive test case");
-                       tet_result(TET_FAIL);
+        
+       if((strcmp(letter,"A")&&(strcmp(buf,"K")))) {
+               tet_infoline("elm_index_item_append_relative() failed in positive test case");
+               tet_result(TET_FAIL);
                return;
         }
-           tet_result(TET_PASS);
+       tet_result(TET_PASS);
 }
 
 /**
index 317a1b5..119df86 100644 (file)
@@ -92,29 +92,29 @@ static void utc_UIFW_elm_index_item_clear_func_01(void)
        idx= elm_index_add(main_win);   
        evas_object_show(gl);
        evas_object_show(idx);  
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i <=40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i <=40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
                j += 2; 
-    }
+       }
        elm_index_item_go(idx, 0);
-    elm_index_item_clear(idx); 
-    it_idx = elm_index_item_find(idx,(void*)it);       
-    if(it_idx){
+       elm_index_item_clear(idx);      
+       it_idx = elm_index_item_find(idx,(void*)it);    
+       if(it_idx){
                tet_infoline("elm_index_item_clear() failed in positive test case");
                tet_result(TET_FAIL);
                return;
-     }           
-        tet_result(TET_PASS);
+       }                 
+       tet_result(TET_PASS);
 }
 
 /**
@@ -127,31 +127,32 @@ static void utc_UIFW_elm_index_item_clear_func_02(void)
        Elm_Genlist_Item *it = NULL;
        Elm_Index_Item *it_idx = NULL;
        int i = 0, j = 0;
+       
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);
-    evas_object_show(gl);
+       evas_object_show(gl);
        evas_object_show(idx);          
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i <=40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-         j += 2;       
-    }
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i <=40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               j += 2; 
+       }
        elm_index_item_go(idx, 0);
        elm_index_item_clear(NULL);
-    it_idx = elm_index_item_find(idx,(void*)it);       
-    if(!it_idx){
+       it_idx = elm_index_item_find(idx,(void*)it);    
+       if(!it_idx){
                tet_infoline("elm_index_item_clear() failed in negative test case");
                tet_result(TET_FAIL);
                return;
-    }
+       }
        tet_result(TET_PASS);
 }
index dc28154..14771f8 100644 (file)
@@ -90,26 +90,27 @@ static void utc_UIFW_elm_index_item_data_get_func_01(void)
        Evas_Object *gl = NULL;
        void *d = NULL;
        int i = 0, j = 0;
+       
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);   
-    evas_object_show(gl);
+       evas_object_show(gl);
        evas_object_show(idx);  
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i < 40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-        j += 2;        
-         if(i==0)
-         it_gl=it;
-    }
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i < 40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               j += 2; 
+               if(i==0)
+               it_gl=it;
+       }
        elm_index_item_go(idx, 0);
         item = elm_index_item_find(idx,it_gl); 
        d =  (void*)elm_index_item_data_get(item);
@@ -136,31 +137,30 @@ static void utc_UIFW_elm_index_item_data_get_func_02(void)
        
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);   
-    evas_object_show(gl);
+       evas_object_show(gl);
        evas_object_show(idx);  
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i < 40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-        j += 2;        
-         if(i==0)
-         it_gl=it;
-    }
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i < 40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               j += 2; 
+               if(i==0) it_gl=it;
+       }
        elm_index_item_go(idx, 0);
         item = elm_index_item_find(NULL,it_gl);        
        d = (void *) elm_index_item_data_get(NULL);
        if(d) {
-         tet_infoline("elm_index_item_data_get() with argument as NULL failed in negative test case");
-         tet_result(TET_FAIL);
-         return;
+               tet_infoline("elm_index_item_data_get() with argument as NULL failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
        }
        tet_result(TET_PASS);
 }
index 3c3f6bd..8df8bb4 100644 (file)
@@ -96,27 +96,25 @@ static void utc_UIFW_elm_index_item_data_set_func_01(void)
        idx= elm_index_add(main_win);   
        evas_object_show(gl);
        evas_object_show(idx);  
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i < 40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-        j += 2;        
-         if(i==0)
-           it_gl=it;
-         if(i==4)
-           it_glist=it;
-    }
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i < 40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               j += 2; 
+               if(i==0) it_gl=it;
+               if(i==4) it_glist=it;
+       }
        elm_index_item_go(idx, 0);
-    item = elm_index_item_find(idx,it_gl);
-    elm_index_item_data_set(item,it_glist );   
+       item = elm_index_item_find(idx,it_gl);
+       elm_index_item_data_set(item,it_glist );        
        d = (void *) elm_index_item_data_get(item);
        if(!d) {
                tet_infoline("elm_index_item_data_set() failed in positive test case");
@@ -142,30 +140,27 @@ static void utc_UIFW_elm_index_item_data_set_func_02(void)
        
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);
-    evas_object_show(gl);
+       evas_object_show(gl);
        evas_object_show(idx);          
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i < 40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-        j += 2;        
-
-         if(i==0)
-           it_gl=it;
-         if(i==4)
-           it_glist=it;
-    }
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i < 40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               j += 2; 
+               if(i==0) it_gl=it;
+               if(i==4) it_glist=it;
+       }
        elm_index_item_go(idx, 0);
-       item = elm_index_item_find(idx,it_gl);
-       elm_index_item_data_set(NULL,it_glist );        
+               item = elm_index_item_find(idx,it_gl);
+               elm_index_item_data_set(NULL,it_glist );        
        d = (void *) elm_index_item_data_get(item);
        if(!d) {
                tet_infoline("elm_index_item_data_set() failed in negative test case");
index 03a9190..18eef79 100644 (file)
@@ -88,34 +88,34 @@ static void utc_UIFW_elm_index_item_del_func_01(void)
        Elm_Genlist_Item *it = NULL, *it_gl=NULL;
        Elm_Index_Item *it_idx = NULL;
        int i = 0, j = 0;
+       
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);
-    evas_object_show(gl);
+       evas_object_show(gl);
        evas_object_show(idx);          
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i <=40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-         if(i==24)     
-           it_gl=it;
-        j += 2;        
-    }
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i <=40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               if(i==24) it_gl=it;
+               j += 2; 
+       }
        elm_index_item_go(idx, 0);
        elm_index_item_del(idx,it_gl);
-    it_idx = elm_index_item_find(idx,(void*)it_gl);    
-    if(it_idx){
+       it_idx = elm_index_item_find(idx,(void*)it_gl); 
+       if(it_idx){
                tet_infoline("elm_index_item_del() failed in positive test case");
-           tet_result(TET_FAIL);
-           return;
-    }
+               tet_result(TET_FAIL);
+               return;
+       }
        tet_result(TET_PASS);
 }
 
@@ -129,33 +129,33 @@ static void utc_UIFW_elm_index_item_del_func_02(void)
        Elm_Genlist_Item *it = NULL, *it_gl=NULL;
        Elm_Index_Item *it_idx = NULL;
        int i = 0, j = 0;
+       
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);
-    evas_object_show(gl);
+       evas_object_show(gl);
        evas_object_show(idx);          
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i <=40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-         if(i==24)     
-           it_gl=it;
-        j += 2;        
-    }
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i <=40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               if(i==24) it_gl=it;
+               j += 2; 
+       }
        elm_index_item_go(idx, 0);
        elm_index_item_del(NULL,it_gl);
-    it_idx = elm_index_item_find(idx,(void*)it_gl);    
-    if(!it_idx){
+       it_idx = elm_index_item_find(idx,(void*)it_gl); 
+       if(!it_idx){
                tet_infoline("elm_index_item_del() with argument as NULL failed in negative test case");
                tet_result(TET_FAIL);
                return;
-     }
-        tet_result(TET_PASS);
+       }
+       tet_result(TET_PASS);
 }
index 632dd8f..d15aaa2 100644 (file)
@@ -93,24 +93,23 @@ static void utc_UIFW_elm_index_item_find_func_01(void)
        idx= elm_index_add(main_win);   
        evas_object_show(gl);
        evas_object_show(idx);  
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i < 40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-        j += 2;        
-         if(i==0)
-         it_gl=it;
-    }
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i < 40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+               snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
+               elm_index_item_append(idx, buf, it);
+               }
+               j += 2; 
+               if(i==0) it_gl=it;
+       }
        elm_index_item_go(idx, 0);
-       item = elm_index_item_find(idx,it_gl);  
+               item = elm_index_item_find(idx,it_gl);  
        if(!item) {
                tet_infoline("elm_index_item_find() failed in positive test case");
                tet_result(TET_FAIL);
@@ -128,29 +127,29 @@ static void utc_UIFW_elm_index_item_find_func_02(void)
        Evas_Object *gl = NULL;
        Elm_Genlist_Item *it = NULL,*it_gl = NULL;
        Elm_Index_Item *item = NULL;
-       int i,j=0;
+       int i = 0, j = 0;
+       
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);   
-    evas_object_show(gl);
+       evas_object_show(gl);
        evas_object_show(idx);  
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i < 40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-        j += 2;        
-         if(i==0)
-         it_gl=it;
-    }
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i < 40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               j += 2; 
+               if(i==0) it_gl=it;
+       }
        elm_index_item_go(idx, 0);
-    item = elm_index_item_find(NULL,it_gl);    
+       item = elm_index_item_find(NULL,it_gl); 
        if(item) {
                tet_infoline("elm_index_item_find() failed in negative test case");
                tet_result(TET_FAIL);
index 16e1206..f7ad215 100644 (file)
@@ -87,32 +87,33 @@ static void utc_UIFW_elm_index_item_go_func_01(void)
        Elm_Genlist_Item *it = NULL;
        Evas_Object *gl = NULL;
        int i = 0, j = 0, level=-1;
+       
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);   
-    evas_object_show(gl);
+       evas_object_show(gl);
        evas_object_show(idx);  
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i <=40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-        j += 2;
-    }  
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i <=40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               j += 2;
+       }       
        elm_index_item_go(idx,0);
        level = elm_index_item_level_get(idx);
-    if(level){
+       if(level){
                tet_infoline("elm_index_item_go() failed in positive test case");
                tet_result(TET_FAIL);
                return;
-     }
-        tet_result(TET_PASS);
+       }
+       tet_result(TET_PASS);
 }
 
 /**
@@ -124,30 +125,31 @@ static void utc_UIFW_elm_index_item_go_func_02(void)
        Elm_Genlist_Item *it = NULL;
        Evas_Object *gl = NULL;
        int i = 0, j = 0, level=-1;
+       
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);   
-    evas_object_show(gl);
+       evas_object_show(gl);
        evas_object_show(idx);  
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i <=40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-        j += 2;
-    }  
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i <=40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               j += 2;
+       }       
        elm_index_item_go(NULL,1);
        level = elm_index_item_level_get(idx);
-    if(level){
+       if(level){
                tet_infoline("elm_index_item_go() failed in negative test case");
                tet_result(TET_FAIL);
                return;
-     }
-        tet_result(TET_PASS);
+       }
+       tet_result(TET_PASS);
 }
index 8d931f7..fd61262 100644 (file)
@@ -92,24 +92,23 @@ static void utc_UIFW_elm_index_item_letter_get_func_01(void)
        
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);
-    evas_object_show(gl);
+       evas_object_show(gl);
        evas_object_show(idx);          
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i < 40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-        j += 2;        
-         if(i==0)
-         it_gl=it;
-    }
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i < 40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               j += 2; 
+               if(i==0) it_gl=it;
+       }
        elm_index_item_go(idx, 0);
         item = elm_index_item_find(idx,it_gl); 
        ptr = elm_index_item_letter_get(item);
@@ -135,24 +134,23 @@ static void utc_UIFW_elm_index_item_letter_get_func_02(void)
        
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);   
-    evas_object_show(gl);
+       evas_object_show(gl);
        evas_object_show(idx);  
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i < 40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-        j += 2;        
-         if(i==0)
-         it_gl=it;
-    }
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i < 40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 4) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               j += 2; 
+               if(i==0) it_gl=it;
+       }
        elm_index_item_go(idx, 0);      
         item = elm_index_item_find(NULL,it_gl);        
        ptr = elm_index_item_letter_get(NULL);
index c29dd4b..248462e 100644 (file)
@@ -94,30 +94,29 @@ static void utc_UIFW_elm_index_item_prepend_func_01(void)
        idx= elm_index_add(main_win);   
        evas_object_show(gl);
        evas_object_show(idx);
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i <=40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-         elm_index_item_prepend(idx, buf, it);
-        }
-               if(i == 40)
-                       it_gl = it;
-        j += 2;
-    }  
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i <=40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+                       elm_index_item_prepend(idx, buf, it);
+               }
+               if(i == 40) it_gl = it;
+               j += 2;
+       }       
        elm_index_item_go(idx, 0);
-    it_idx = elm_index_item_find(idx,(void*)it_gl);    
-    letter = elm_index_item_letter_get(it_idx);
-    if((strcmp(letter,"K"))){
+       it_idx = elm_index_item_find(idx,(void*)it_gl); 
+       letter = elm_index_item_letter_get(it_idx);
+       if((strcmp(letter,"K"))){
                tet_infoline("elm_index_item_prepend() with argument as NULL failed in positive test case");
                tet_result(TET_FAIL);
                return;
-    }
+       }
        tet_result(TET_PASS);
 }
 
@@ -131,32 +130,32 @@ static void utc_UIFW_elm_index_item_prepend_func_02(void)
        Elm_Index_Item *it_idx = NULL;
        Evas_Object *gl = NULL;
        int i = 0, j = 0;
+       
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);
         evas_object_show(gl);
        evas_object_show(idx);  
-           itci.item_style     = "default";
-           itci.func.label_get = gli_label_get;
-           itci.func.icon_get  = NULL;
-           itci.func.state_get = NULL;
-           itci.func.del       = NULL;
-           for (i = 0; i <=40; i++) {
-        it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-        if ((j & 0xf) == 0) {
-           char buf[32];
-            snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-            elm_index_item_prepend(NULL, buf, it);
-           }
-               if(i == 40)
-                it_gl = it;
-         j += 2;
-         }     
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i <=40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+                       elm_index_item_prepend(NULL, buf, it);
+               }
+               if(i == 40) it_gl = it;
+                       j += 2;
+       }       
        elm_index_item_go(idx, 0);
        it_idx = elm_index_item_find(idx,(void*)it_gl); 
        if(it_idx) {
                tet_infoline("elm_index_item_prepend() failed in negative test case");  
                tet_result(TET_FAIL);
                return;
-     }
-        tet_result(TET_PASS);
+       }
+       tet_result(TET_PASS);
 }
index 7ce73d8..32963a7 100644 (file)
@@ -88,35 +88,35 @@ static void utc_UIFW_elm_index_item_prepend_relative_func_01(void)
        Evas_Object *gl = NULL;
        Elm_Index_Item *it_idx = NULL;
        int i = 0, j = 0;
+       
        const char  *letter = NULL;
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);   
        evas_object_show(gl);
        evas_object_show(idx);  
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i <=40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-       if(i==0)
-         it_gl=it;
-        j += 2;
-    }  
-        it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-          char buf[32];
-        snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-        elm_index_item_prepend_relative(idx, buf, it, it_gl);
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i <=40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                               char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               if(i==0) it_gl=it;
+               j += 2;
+       }       
+       it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+       char buf[32];
+       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+       elm_index_item_prepend_relative(idx, buf, it, it_gl);
        elm_index_item_go(idx, 0);
-    it_idx = elm_index_item_find(idx,(void*)it_gl);    
-    letter = elm_index_item_letter_get(it_idx);
-    if((strcmp(letter,"A")&&(strcmp(buf,"K")))) {
+       it_idx = elm_index_item_find(idx,(void*)it_gl); 
+       letter = elm_index_item_letter_get(it_idx);
+       if((strcmp(letter,"A")&&(strcmp(buf,"K")))) {
                tet_infoline("elm_index_item_prepend_relative() failed in positive test case");
                tet_result(TET_FAIL);
                return;
@@ -134,36 +134,37 @@ static void utc_UIFW_elm_index_item_prepend_relative_func_02(void)
        Evas_Object *gl = NULL;
        Elm_Index_Item *it_idx = NULL;
        int i = 0, j = 0;
+       
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);   
        evas_object_show(gl);
        evas_object_show(idx);  
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i <=40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-       if(i==0)
-         it_gl=it;
-        j += 2;
-    }  
-        it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-          char buf[32];
-        snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-        elm_index_item_prepend_relative(NULL, buf, it, it_gl);
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i <=40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                               char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               if(i==0) it_gl=it;
+               j += 2;
+       }       
+       it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+       char buf[32];
+       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+       elm_index_item_prepend_relative(NULL, buf, it, it_gl);
        elm_index_item_go(idx, 0);
-    it_idx = elm_index_item_find(idx,(void*)it);       
-    if(it_idx) {
+       it_idx = elm_index_item_find(idx,(void*)it);    
+       if(it_idx) {
                tet_infoline("elm_index_item_prepend_relative() failed in negative test case");
                tet_result(TET_FAIL);
-       return;
-     }
-         tet_result(TET_PASS);
+               return;
+       }
+       tet_result(TET_PASS);
 }
+
index 89484e0..48aba8b 100644 (file)
@@ -114,32 +114,32 @@ static void utc_UIFW_elm_index_item_sorted_insert_func_01(void)
        Evas_Object *gl = NULL;
        Elm_Index_Item *it_idx = NULL;
        int i = 0, j = 0;
+       
        const char  *letter = NULL;
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);   
        evas_object_show(gl);
        evas_object_show(idx);  
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i <=40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-       if(i==0)
-         it_gl=it;
-        j += 2;
-    }  
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i <=40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                       char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               if(i==0) it_gl=it;
+               j += 2;
+       }       
        it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
        char buf[32];
        snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-
-    elm_index_item_sorted_insert(idx, buf, it, test_index2_icmp, test_index2_cmp);
+       
+       elm_index_item_sorted_insert(idx, buf, it, test_index2_icmp, test_index2_cmp);
        elm_index_item_go(idx, 0);
        it_idx = elm_index_item_find(idx,(void*)it_gl); 
        letter = elm_index_item_letter_get(it_idx);
@@ -161,26 +161,26 @@ static void utc_UIFW_elm_index_item_sorted_insert_func_02(void)
        Evas_Object *gl = NULL;
        Elm_Index_Item *it_idx = NULL;
        int i = 0, j = 0;
+       
        gl = elm_genlist_add(main_win);
        idx= elm_index_add(main_win);   
        evas_object_show(gl);
        evas_object_show(idx);  
-    itci.item_style     = "default";
-    itci.func.label_get = gli_label_get;
-    itci.func.icon_get  = NULL;
-    itci.func.state_get = NULL;
-    itci.func.del       = NULL;
-    for (i = 0; i <=40; i++) {
-      it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
-      if ((j & 0xf) == 0) {
-                char buf[32];
-         snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
-         elm_index_item_append(idx, buf, it);
-        }
-       if(i==0)
-         it_gl=it;
-        j += 2;
-    }  
+       itci.item_style     = "default";
+       itci.func.label_get = gli_label_get;
+       itci.func.icon_get  = NULL;
+       itci.func.state_get = NULL;
+       itci.func.del       = NULL;
+       for (i = 0; i <=40; i++) {
+               it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
+               if ((j & 0xf) == 0) {
+                               char buf[32];
+                       snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
+                       elm_index_item_append(idx, buf, it);
+               }
+               if(i==0) it_gl=it;
+               j += 2;
+       }       
        it = elm_genlist_item_append(gl, &itci,(void *)j, NULL, ELM_GENLIST_ITEM_NONE, NULL,NULL);
        char buf[32];
        snprintf(buf, sizeof(buf), "%c", 'A' + ((j >> 3) & 0xf));
@@ -192,5 +192,5 @@ static void utc_UIFW_elm_index_item_sorted_insert_func_02(void)
                tet_result(TET_FAIL);
                return;
        }
-         tet_result(TET_PASS);
+       tet_result(TET_PASS);
 }