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);
}
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);
}
/**
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);
}
/**
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);
}
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);
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);
}
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");
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");
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);
}
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);
}
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);
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);
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);
}
/**
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);
}
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);
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);
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);
}
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);
}
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;
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);
}
+
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);
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));
tet_result(TET_FAIL);
return;
}
- tet_result(TET_PASS);
+ tet_result(TET_PASS);
}