From 838b1dc956b939c47aa5441c59372bc1ffb026f2 Mon Sep 17 00:00:00 2001 From: Prince Kumar Dubey Date: Thu, 23 Sep 2010 17:48:43 +0530 Subject: [PATCH] [Index/TC] Modified for indentation. --- .../index/utc_UIFW_elm_index_item_append_func.c | 45 +++++----- .../utc_UIFW_elm_index_item_append_relative_func.c | 42 +++++----- .../index/utc_UIFW_elm_index_item_clear_func.c | 73 ++++++++-------- .../index/utc_UIFW_elm_index_item_data_get_func.c | 74 ++++++++--------- .../index/utc_UIFW_elm_index_item_data_set_func.c | 79 +++++++++--------- TC/elm_ts/index/utc_UIFW_elm_index_item_del_func.c | 86 +++++++++---------- .../index/utc_UIFW_elm_index_item_find_func.c | 71 ++++++++-------- TC/elm_ts/index/utc_UIFW_elm_index_item_go_func.c | 74 +++++++++-------- .../utc_UIFW_elm_index_item_letter_get_func.c | 66 +++++++-------- .../index/utc_UIFW_elm_index_item_prepend_func.c | 75 +++++++++-------- ...utc_UIFW_elm_index_item_prepend_relative_func.c | 97 +++++++++++----------- .../utc_UIFW_elm_index_item_sorted_insert_func.c | 70 ++++++++-------- 12 files changed, 423 insertions(+), 429 deletions(-) diff --git a/TC/elm_ts/index/utc_UIFW_elm_index_item_append_func.c b/TC/elm_ts/index/utc_UIFW_elm_index_item_append_func.c index 7b6a50f..4530d26 100644 --- a/TC/elm_ts/index/utc_UIFW_elm_index_item_append_func.c +++ b/TC/elm_ts/index/utc_UIFW_elm_index_item_append_func.c @@ -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); } diff --git a/TC/elm_ts/index/utc_UIFW_elm_index_item_append_relative_func.c b/TC/elm_ts/index/utc_UIFW_elm_index_item_append_relative_func.c index a4b72f4..560dfc9 100755 --- a/TC/elm_ts/index/utc_UIFW_elm_index_item_append_relative_func.c +++ b/TC/elm_ts/index/utc_UIFW_elm_index_item_append_relative_func.c @@ -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); } /** diff --git a/TC/elm_ts/index/utc_UIFW_elm_index_item_clear_func.c b/TC/elm_ts/index/utc_UIFW_elm_index_item_clear_func.c index 317a1b5..119df86 100644 --- a/TC/elm_ts/index/utc_UIFW_elm_index_item_clear_func.c +++ b/TC/elm_ts/index/utc_UIFW_elm_index_item_clear_func.c @@ -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); } diff --git a/TC/elm_ts/index/utc_UIFW_elm_index_item_data_get_func.c b/TC/elm_ts/index/utc_UIFW_elm_index_item_data_get_func.c index dc28154..14771f8 100644 --- a/TC/elm_ts/index/utc_UIFW_elm_index_item_data_get_func.c +++ b/TC/elm_ts/index/utc_UIFW_elm_index_item_data_get_func.c @@ -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); } diff --git a/TC/elm_ts/index/utc_UIFW_elm_index_item_data_set_func.c b/TC/elm_ts/index/utc_UIFW_elm_index_item_data_set_func.c index 3c3f6bd..8df8bb4 100644 --- a/TC/elm_ts/index/utc_UIFW_elm_index_item_data_set_func.c +++ b/TC/elm_ts/index/utc_UIFW_elm_index_item_data_set_func.c @@ -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"); diff --git a/TC/elm_ts/index/utc_UIFW_elm_index_item_del_func.c b/TC/elm_ts/index/utc_UIFW_elm_index_item_del_func.c index 03a9190..18eef79 100644 --- a/TC/elm_ts/index/utc_UIFW_elm_index_item_del_func.c +++ b/TC/elm_ts/index/utc_UIFW_elm_index_item_del_func.c @@ -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); } diff --git a/TC/elm_ts/index/utc_UIFW_elm_index_item_find_func.c b/TC/elm_ts/index/utc_UIFW_elm_index_item_find_func.c index 632dd8f..d15aaa2 100644 --- a/TC/elm_ts/index/utc_UIFW_elm_index_item_find_func.c +++ b/TC/elm_ts/index/utc_UIFW_elm_index_item_find_func.c @@ -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); diff --git a/TC/elm_ts/index/utc_UIFW_elm_index_item_go_func.c b/TC/elm_ts/index/utc_UIFW_elm_index_item_go_func.c index 16e1206..f7ad215 100644 --- a/TC/elm_ts/index/utc_UIFW_elm_index_item_go_func.c +++ b/TC/elm_ts/index/utc_UIFW_elm_index_item_go_func.c @@ -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); } diff --git a/TC/elm_ts/index/utc_UIFW_elm_index_item_letter_get_func.c b/TC/elm_ts/index/utc_UIFW_elm_index_item_letter_get_func.c index 8d931f7..fd61262 100644 --- a/TC/elm_ts/index/utc_UIFW_elm_index_item_letter_get_func.c +++ b/TC/elm_ts/index/utc_UIFW_elm_index_item_letter_get_func.c @@ -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); diff --git a/TC/elm_ts/index/utc_UIFW_elm_index_item_prepend_func.c b/TC/elm_ts/index/utc_UIFW_elm_index_item_prepend_func.c index c29dd4b..248462e 100644 --- a/TC/elm_ts/index/utc_UIFW_elm_index_item_prepend_func.c +++ b/TC/elm_ts/index/utc_UIFW_elm_index_item_prepend_func.c @@ -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); } diff --git a/TC/elm_ts/index/utc_UIFW_elm_index_item_prepend_relative_func.c b/TC/elm_ts/index/utc_UIFW_elm_index_item_prepend_relative_func.c index 7ce73d8..32963a7 100644 --- a/TC/elm_ts/index/utc_UIFW_elm_index_item_prepend_relative_func.c +++ b/TC/elm_ts/index/utc_UIFW_elm_index_item_prepend_relative_func.c @@ -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); } + diff --git a/TC/elm_ts/index/utc_UIFW_elm_index_item_sorted_insert_func.c b/TC/elm_ts/index/utc_UIFW_elm_index_item_sorted_insert_func.c index 89484e0..48aba8b 100644 --- a/TC/elm_ts/index/utc_UIFW_elm_index_item_sorted_insert_func.c +++ b/TC/elm_ts/index/utc_UIFW_elm_index_item_sorted_insert_func.c @@ -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); } -- 2.7.4