utc_UIFW_elm_index_active_set_func \
utc_UIFW_elm_index_item_append_func \
utc_UIFW_elm_index_item_append_relative_func \
- utc_UIFW_elm_index_item_data_get_func \
- utc_UIFW_elm_index_item_data_set_func \
- utc_UIFW_elm_index_item_del_func \
utc_UIFW_elm_index_item_find_func \
utc_UIFW_elm_index_item_go_func \
utc_UIFW_elm_index_item_letter_get_func \
/elm_ts/index/utc_UIFW_elm_index_active_set_func
/elm_ts/index/utc_UIFW_elm_index_item_append_func
/elm_ts/index/utc_UIFW_elm_index_item_append_relative_func
-/elm_ts/index/utc_UIFW_elm_index_item_data_get_func
-/elm_ts/index/utc_UIFW_elm_index_item_data_set_func
-/elm_ts/index/utc_UIFW_elm_index_item_del_func
/elm_ts/index/utc_UIFW_elm_index_item_find_func
/elm_ts/index/utc_UIFW_elm_index_item_go_func
/elm_ts/index/utc_UIFW_elm_index_item_letter_get_func
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
}
-char *gli_label_get(const void *data, Evas_Object *obj, const char *part)
+static char *gli_label_get(void *data, Evas_Object *obj, const char *part)
{
char buf[256];
int j = (int)data;
static void utc_UIFW_elm_index_item_append_func_01(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL,*it_gl = NULL;
- Elm_Index_Item *it_idx = NULL;
+ Elm_Object_Item *it = NULL,*it_gl = NULL;
+ Elm_Object_Item *it_idx = NULL;
Evas_Object *gl = NULL;
int i = 0, j = 0;
const char *letter = NULL;
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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i <=40; i++) {
static void utc_UIFW_elm_index_item_append_func_02(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL, *it_gl=NULL;
- Elm_Index_Item *it_idx = NULL;
+ Elm_Object_Item *it = NULL, *it_gl=NULL;
+ Elm_Object_Item *it_idx = NULL;
Evas_Object *gl = NULL;
int i = 0, j = 0;
gl = elm_genlist_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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i <=40; i++) {
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
}
-char *gli_label_get(const void *data, Evas_Object *obj, const char *part)
+char *gli_label_get(void *data, Evas_Object *obj, const char *part)
{
char buf[256];
int j = (int)data;
static void utc_UIFW_elm_index_item_append_relative_func_01(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL, *it_gl=NULL;
+ Elm_Object_Item *it = NULL, *it_gl=NULL;
Evas_Object *gl = NULL;
- Elm_Index_Item *it_idx = NULL;
+ Elm_Object_Item *it_idx = NULL;
int i = 0, j = 0;
const char *letter = NULL;
gl = elm_genlist_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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i <=40; i++) {
static void utc_UIFW_elm_index_item_append_relative_func_02(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL, *it_gl=NULL;
+ Elm_Object_Item *it = NULL, *it_gl=NULL;
Evas_Object *gl = NULL;
- Elm_Index_Item *it_idx = NULL;
+ Elm_Object_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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i <=40; i++) {
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
}
-char *gli_label_get(const void *data, Evas_Object *obj, const char *part)
+char *gli_label_get(void *data, Evas_Object *obj, const char *part)
{
char buf[256];
int j = (int)data;
static void utc_UIFW_elm_index_item_clear_func_01(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL;
+ Elm_Object_Item *it = NULL;
Evas_Object *gl = NULL;
- Elm_Index_Item *it_idx = NULL;
+ Elm_Object_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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i <=40; i++) {
{
Evas_Object *idx = NULL;
Evas_Object *gl = NULL;
- Elm_Genlist_Item *it = NULL;
- Elm_Index_Item *it_idx = NULL;
+ Elm_Object_Item *it = NULL;
+ Elm_Object_Item *it_idx = NULL;
int i = 0, j = 0;
gl = elm_genlist_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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i <=40; i++) {
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
}
-char *gli_label_get(const void *data, Evas_Object *obj, const char *part)
+char *gli_label_get(void *data, Evas_Object *obj, const char *part)
{
char buf[256];
int j = (int)data;
static void utc_UIFW_elm_index_item_data_get_func_01(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL;
- Elm_Genlist_Item *it_gl = NULL;
- Elm_Index_Item *item = NULL;
+ Elm_Object_Item *it = NULL;
+ Elm_Object_Item *it_gl = NULL;
+ Elm_Object_Item *item = NULL;
Evas_Object *gl = NULL;
void *d = NULL;
int i = 0, j = 0;
static void utc_UIFW_elm_index_item_data_get_func_02(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL;
- Elm_Genlist_Item *it_gl = NULL;
- Elm_Index_Item *item = NULL;
+ Elm_Object_Item *it = NULL;
+ Elm_Object_Item *it_gl = NULL;
+ Elm_Object_Item *item = NULL;
Evas_Object *gl = NULL;
void *d = NULL;
int i = 0, j = 0;
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
}
-char *gli_label_get(const void *data, Evas_Object *obj, const char *part)
+char *gli_label_get(void *data, Evas_Object *obj, const char *part)
{
char buf[256];
int j = (int)data;
{
Evas_Object *idx = NULL;
Evas_Object *gl = NULL;
- Elm_Genlist_Item *it = NULL, *it_gl=NULL;
- Elm_Index_Item *it_idx = NULL;
+ Elm_Object_Item *it = NULL, *it_gl=NULL;
+ Elm_Object_Item *it_idx = NULL;
int i = 0, j = 0;
gl = elm_genlist_add(main_win);
{
Evas_Object *idx = NULL;
Evas_Object *gl = NULL;
- Elm_Genlist_Item *it = NULL, *it_gl=NULL;
- Elm_Index_Item *it_idx = NULL;
+ Elm_Object_Item *it = NULL, *it_gl=NULL;
+ Elm_Object_Item *it_idx = NULL;
int i = 0, j = 0;
gl = elm_genlist_add(main_win);
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
}
-char *gli_label_get(const void *data, Evas_Object *obj, const char *part)
+char *gli_label_get(void *data, Evas_Object *obj, const char *part)
{
char buf[256];
int j = (int)data;
static void utc_UIFW_elm_index_item_find_func_01(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL,*it_gl = NULL;
+ Elm_Object_Item *it = NULL,*it_gl = NULL;
Evas_Object *gl = NULL;
- Elm_Index_Item *item = NULL;
+ Elm_Object_Item *item = NULL;
int i = 0, j = 0;
gl = elm_genlist_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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i < 40; i++) {
{
Evas_Object *idx = NULL;
Evas_Object *gl = NULL;
- Elm_Genlist_Item *it = NULL,*it_gl = NULL;
- Elm_Index_Item *item = NULL;
+ Elm_Object_Item *it = NULL,*it_gl = NULL;
+ Elm_Object_Item *item = NULL;
int i = 0, j = 0;
gl = elm_genlist_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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i < 40; i++) {
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
}
-char *gli_label_get(const void *data, Evas_Object *obj, const char *part)
+char *gli_label_get(void *data, Evas_Object *obj, const char *part)
{
char buf[256];
int j = (int)data;
static void utc_UIFW_elm_index_item_go_func_01(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL;
+ Elm_Object_Item *it = NULL;
Evas_Object *gl = NULL;
int i = 0, j = 0, level=-1;
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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i <=40; i++) {
static void utc_UIFW_elm_index_item_go_func_02(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL;
+ Elm_Object_Item *it = NULL;
Evas_Object *gl = NULL;
int i = 0, j = 0, level=-1;
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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i <=40; i++) {
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
}
-char *gli_label_get(const void *data, Evas_Object *obj, const char *part)
+char *gli_label_get(void *data, Evas_Object *obj, const char *part)
{
char buf[256];
int j = (int)data;
static void utc_UIFW_elm_index_item_letter_get_func_01(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL,*it_gl = NULL;
+ Elm_Object_Item *it = NULL,*it_gl = NULL;
Evas_Object *gl = NULL;
- Elm_Index_Item *item = NULL;
+ Elm_Object_Item *item = NULL;
const char *ptr = NULL;
int i = 0, j = 0;
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.item_style = "default";
+ itci.func.text_get = gli_label_get;
+ itci.func.content_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);
static void utc_UIFW_elm_index_item_letter_get_func_02(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL,*it_gl = NULL;
- Elm_Index_Item *item = NULL;
+ Elm_Object_Item *it = NULL,*it_gl = NULL;
+ Elm_Object_Item *item = NULL;
Evas_Object *gl = NULL;
const char *ptr = NULL;
int i = 0, j = 0;
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.text_get = gli_label_get;
+ itci.func.content_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);
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
}
-char *gli_label_get(const void *data, Evas_Object *obj, const char *part)
+char *gli_label_get(void *data, Evas_Object *obj, const char *part)
{
char buf[256];
int j = (int)data;
static void utc_UIFW_elm_index_item_prepend_func_01(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL,*it_gl = NULL;
- Elm_Index_Item *it_idx = NULL;
+ Elm_Object_Item *it = NULL,*it_gl = NULL;
+ Elm_Object_Item *it_idx = NULL;
Evas_Object *gl = NULL;
int i = 0, j = 0;
const char *letter = NULL;
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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i <=40; i++) {
static void utc_UIFW_elm_index_item_prepend_func_02(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL, *it_gl=NULL;
- Elm_Index_Item *it_idx = NULL;
+ Elm_Object_Item *it = NULL, *it_gl=NULL;
+ Elm_Object_Item *it_idx = NULL;
Evas_Object *gl = NULL;
int i = 0, j = 0;
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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i <=40; i++) {
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
}
-char *gli_label_get(const void *data, Evas_Object *obj, const char *part)
+char *gli_label_get(void *data, Evas_Object *obj, const char *part)
{
char buf[256];
int j = (int)data;
static void utc_UIFW_elm_index_item_prepend_relative_func_01(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL, *it_gl=NULL;
+ Elm_Object_Item *it = NULL, *it_gl=NULL;
Evas_Object *gl = NULL;
- Elm_Index_Item *it_idx = NULL;
+ Elm_Object_Item *it_idx = NULL;
int i = 0, j = 0;
const char *letter = NULL;
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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i <=40; i++) {
static void utc_UIFW_elm_index_item_prepend_relative_func_02(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL, *it_gl=NULL;
+ Elm_Object_Item *it = NULL, *it_gl=NULL;
Evas_Object *gl = NULL;
- Elm_Index_Item *it_idx = NULL;
+ Elm_Object_Item *it_idx = NULL;
int i = 0, j = 0;
gl = elm_genlist_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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i <=40; i++) {
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
}
-char *gli_label_get(const void *data, Evas_Object *obj, const char *part)
+char *gli_label_get(void *data, Evas_Object *obj, const char *part)
{
char buf[256];
int j = (int)data;
test_index2_cmp(const void *data1, const void *data2)
{
const char *label1, *label2;
- const Elm_List_Item *it1 = data1;
- const Elm_List_Item *it2 = data2;
+ const Elm_Object_Item *it1 = data1;
+ const Elm_Object_Item *it2 = data2;
- label1 = elm_list_item_label_get(it1);
- label2 = elm_list_item_label_get(it2);
+ label1 = elm_object_item_text_get(it1);
+ label2 = elm_object_item_text_get(it2);
return strcasecmp(label1, label2);
}
test_index2_icmp(const void *data1, const void *data2)
{
const char *label1, *label2;
- const Elm_Index_Item *it1 = data1;
- const Elm_Index_Item *it2 = data2;
+ const Elm_Object_Item *it1 = data1;
+ const Elm_Object_Item *it2 = data2;
label1 = elm_index_item_letter_get(it1);
label2 = elm_index_item_letter_get(it2);
static void utc_UIFW_elm_index_item_sorted_insert_func_01(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL, *it_gl=NULL;
+ Elm_Object_Item *it = NULL, *it_gl=NULL;
Evas_Object *gl = NULL;
- Elm_Index_Item *it_idx = NULL;
+ Elm_Object_Item *it_idx = NULL;
int i = 0, j = 0;
const char *letter = NULL;
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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i <=40; i++) {
static void utc_UIFW_elm_index_item_sorted_insert_func_02(void)
{
Evas_Object *idx = NULL;
- Elm_Genlist_Item *it = NULL, *it_gl=NULL;
+ Elm_Object_Item *it = NULL, *it_gl=NULL;
Evas_Object *gl = NULL;
- Elm_Index_Item *it_idx = NULL;
+ Elm_Object_Item *it_idx = NULL;
int i = 0, j = 0;
gl = elm_genlist_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.text_get = gli_label_get;
+ itci.func.content_get = NULL;
itci.func.state_get = NULL;
itci.func.del = NULL;
for (i = 0; i <=40; i++) {
CC ?= gcc
TARGETS = utc_UIFW_elm_multibuttonentry_add_func \
- utc_UIFW_elm_multibuttonentry_label_get_func \
utc_UIFW_elm_multibuttonentry_entry_get_func \
- utc_UIFW_elm_multibuttonentry_item_add_start_func \
- utc_UIFW_elm_multibuttonentry_item_add_end_func \
- utc_UIFW_elm_multibuttonentry_item_add_before_func \
- utc_UIFW_elm_multibuttonentry_item_add_after_func \
+ utc_UIFW_elm_multibuttonentry_item_prepend_func \
+ utc_UIFW_elm_multibuttonentry_item_append_func \
+ utc_UIFW_elm_multibuttonentry_item_insert_before_func \
+ utc_UIFW_elm_multibuttonentry_item_insert_after_func \
utc_UIFW_elm_multibuttonentry_items_get_func \
- utc_UIFW_elm_multibuttonentry_item_first_get_func \
- utc_UIFW_elm_multibuttonentry_item_last_get_func \
- utc_UIFW_elm_multibuttonentry_item_selected_get_func \
- utc_UIFW_elm_multibuttonentry_item_del_func \
+ utc_UIFW_elm_multibuttonentry_first_item_get_func \
+ utc_UIFW_elm_multibuttonentry_last_item_get_func \
+ utc_UIFW_elm_multibuttonentry_selected_item_get_func \
utc_UIFW_elm_multibuttonentry_items_del_func \
- utc_UIFW_elm_multibuttonentry_item_label_get_func \
- utc_UIFW_elm_multibuttonentry_item_prev_func \
- utc_UIFW_elm_multibuttonentry_item_next_func \
+ utc_UIFW_elm_multibuttonentry_item_prev_get_func \
+ utc_UIFW_elm_multibuttonentry_item_next_get_func \
utc_UIFW_elm_multibuttonentry_item_data_get_func
PKGS = elementary evas
/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_add_func
-/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_label_get_func
/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_entry_get_func
-/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_add_start_func
-/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_add_end_func
-/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_add_before_func
-/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_add_after_func
+/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_prepend_func
+/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_append_func
+/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_insert_before_func
+/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_insert_after_func
/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_items_get_func
-/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_first_get_func
-/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_last_get_func
-/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_selected_get_func
-/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_del_func
+/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_first_item_get_func
+/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_last_item_get_func
+/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_selected_item_get_func
/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_items_del_func
-/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_label_get_func
-/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_prev_func
-/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_next_func
+/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_prev_get_func
+/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_next_get_func
/elm_ts/multibuttonentry/utc_UIFW_elm_multibuttonentry_item_data_get_func
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Elm_Object_Item *err = y; \
+ Elm_Object_Item *val = x1; \
+ if (err == val) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Elm_Object_Item *err = y; \
+ Elm_Object_Item *val = x1; \
+ if (err != val) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_multibuttonentry_first_item_get_func_01(void);
+static void utc_UIFW_elm_multibuttonentry_first_item_get_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_multibuttonentry_first_item_get_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_first_item_get_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+ elm_exit();
+}
+
+// Do precondition.
+void _elm_precondition(void)
+{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+ elm_init(0, NULL);
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ elm_win_title_set(main_win, "Elementary Unit Test Suite");
+ evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+ main_bg = elm_bg_add(main_win);
+ evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(main_win, main_bg);
+ evas_object_show(main_bg);
+
+ // set an initial window size
+ evas_object_resize(main_win, 320, 480);
+ // show the window
+ evas_object_show(main_win);
+}
+
+// Start up function for each test purpose
+static void
+startup()
+{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+ // Elm precondition
+ _elm_precondition();
+
+ // Test precondition
+ test_win = elm_win_add(NULL, "Multi Button Entry", ELM_WIN_BASIC);
+ elm_win_title_set(test_win, "Multi Button Entry");
+ elm_win_autodel_set(test_win, 1);
+
+ test_bg = elm_bg_add(test_win);
+ elm_win_resize_object_add(test_win, test_bg);
+ evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_show(test_bg);
+
+ evas_object_resize(test_win, 480, 800);
+ evas_object_show(test_win);
+
+ tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+ tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+ // Clean up the used resources.
+ if ( NULL != main_win ) {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+
+ if ( NULL != main_bg ) {
+ evas_object_del(main_bg);
+ main_bg = NULL;
+ }
+
+ if ( NULL != test_win ) {
+ evas_object_del(test_win);
+ test_win = NULL;
+ }
+
+ if ( NULL != test_bg ) {
+ evas_object_del(test_bg);
+ test_bg = NULL;
+ }
+
+ if ( NULL != test_eo ) {
+ evas_object_del(test_eo);
+ test_eo = NULL;
+ }
+
+ // clean up and shut down
+ elm_shutdown(); ;
+
+ tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE ========== ");
+}
+
+/**
+ * @brief Positive test case of elm_multibuttonentry_first_item_get()
+ */
+static void utc_UIFW_elm_multibuttonentry_first_item_get_func_01(void)
+{
+ Elm_Object_Item *added_item1 = NULL, *added_item2 = NULL, *first_item = NULL;
+
+ test_eo = elm_multibuttonentry_add(test_win);
+ added_item1 = elm_multibuttonentry_item_append(test_eo, "item1", NULL);
+ added_item2 = elm_multibuttonentry_item_append(test_eo, "item2", NULL);
+ first_item = elm_multibuttonentry_first_item_get(test_eo);
+ if (first_item != added_item1) {
+ tet_infoline("elm_multibuttonentry_first_item_get() failed in positive test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+ tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_multibuttonentry_first_item_get().");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_multibuttonentry_first_item_get()
+ */
+static void utc_UIFW_elm_multibuttonentry_first_item_get_func_02(void)
+{
+ Elm_Object_Item *added_item1 = NULL, *added_item2 = NULL, *first_item = NULL;
+
+ test_eo = elm_multibuttonentry_add(test_win);
+ added_item1 = elm_multibuttonentry_item_append(test_eo, "item1", NULL);
+ added_item2 = elm_multibuttonentry_item_append(test_eo, "item2", NULL);
+ first_item = elm_multibuttonentry_first_item_get(test_win);
+ TET_CHECK_FAIL(NULL, first_item);
+
+ tet_result(TET_PASS);
+ tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_multibuttonentry_first_item_get().");
+}
// For checking the result of the positive test case.
#define TET_CHECK_PASS(x1, y...) \
{ \
- Elm_Multibuttonentry_Item *err = y; \
- Elm_Multibuttonentry_Item *val = x1; \
+ Elm_Object_Item *err = y; \
+ Elm_Object_Item *val = x1; \
if (err == val) \
{ \
tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
// For checking the result of the negative test case.
#define TET_CHECK_FAIL(x1, y...) \
{ \
- Elm_Multibuttonentry_Item *err = y; \
- Elm_Multibuttonentry_Item *val = x1; \
+ Elm_Object_Item *err = y; \
+ Elm_Object_Item *val = x1; \
if (err != val) \
{ \
tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
void (*tet_startup)(void) = startup;
void (*tet_cleanup)(void) = cleanup;
-static void utc_UIFW_elm_multibuttonentry_item_add_start_func_01(void);
-static void utc_UIFW_elm_multibuttonentry_item_add_start_func_02(void);
+static void utc_UIFW_elm_multibuttonentry_item_append_func_01(void);
+static void utc_UIFW_elm_multibuttonentry_item_append_func_02(void);
enum {
POSITIVE_TC_IDX = 0x01,
};
struct tet_testlist tet_testlist[] = {
- { utc_UIFW_elm_multibuttonentry_item_add_start_func_01, POSITIVE_TC_IDX },
- { utc_UIFW_elm_multibuttonentry_item_add_start_func_02, NEGATIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_item_append_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_item_append_func_02, NEGATIVE_TC_IDX },
{ NULL, 0 }
};
void _elm_precondition(void)
{
elm_init(0, NULL);
-
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
elm_win_title_set(main_win, "Elementary Unit Test Suite");
evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE ========== ");
}
-
/**
- * @brief Positive test case of elm_multibuttonentry_item_add_start()
+ * @brief Positive test case of elm_multibuttonentry_item_append()
*/
-static void utc_UIFW_elm_multibuttonentry_item_add_start_func_01(void)
+static void utc_UIFW_elm_multibuttonentry_item_append_func_01(void)
{
- Elm_Multibuttonentry_Item *added_item = NULL, *first_item = NULL;
+ Elm_Object_Item *added_item = NULL, *last_item = NULL;
test_eo = elm_multibuttonentry_add(test_win);
- added_item = elm_multibuttonentry_item_add_start(test_eo, "item1", NULL);
+ added_item = elm_multibuttonentry_item_append(test_eo, "item1", NULL);
TET_CHECK_PASS(NULL, added_item);
- first_item = elm_multibuttonentry_item_first_get(test_eo);
- if (added_item != first_item) {
- tet_infoline("elm_multibuttonentry_item_add_start() failed in positive test case");
+ last_item = elm_multibuttonentry_last_item_get(test_eo);
+ if (added_item != last_item) {
+ tet_infoline("elm_multibuttonentry_item_append() failed in positive test case");
tet_result(TET_FAIL);
return;
}
-
tet_result(TET_PASS);
- tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_multibuttonentry_item_add_start().");
+ tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_multibuttonentry_item_append().");
}
-
/**
- * @brief Negative test case of ug_init elm_multibuttonentry_item_add_start()
+ * @brief Negative test case of ug_init elm_multibuttonentry_item_append()
*/
-static void utc_UIFW_elm_multibuttonentry_item_add_start_func_02(void)
+static void utc_UIFW_elm_multibuttonentry_item_append_func_02(void)
{
- Elm_Multibuttonentry_Item *added_item = NULL;
+
+ Elm_Object_Item *added_item = NULL;
test_eo = elm_multibuttonentry_add(test_win);
- added_item = elm_multibuttonentry_item_add_start(test_eo, NULL, NULL);
+ added_item = elm_multibuttonentry_item_append(test_eo, NULL, NULL);
TET_CHECK_FAIL(NULL, added_item);
tet_result(TET_PASS);
- tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_multibuttonentry_item_add_start().");
+ tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_multibuttonentry_item_append().");
}
-
// For checking the result of the positive test case.
#define TET_CHECK_PASS(x1, y...) \
{ \
- Elm_Multibuttonentry_Item *err = y; \
+ Elm_Object_Item *err = y; \
if (err == (x1)) \
{ \
tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
// For checking the result of the negative test case.
#define TET_CHECK_FAIL(x1, y...) \
{ \
- Elm_Multibuttonentry_Item *err = y; \
+ Elm_Object_Item *err = y; \
if (err != (x1)) \
{ \
tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
void (*tet_startup)(void) = startup;
void (*tet_cleanup)(void) = cleanup;
-static void utc_UIFW_elm_multibuttonentry_item_add_after_func_01(void);
-static void utc_UIFW_elm_multibuttonentry_item_add_after_func_02(void);
+static void utc_UIFW_elm_multibuttonentry_item_insert_after_func_01(void);
+static void utc_UIFW_elm_multibuttonentry_item_insert_after_func_02(void);
enum {
POSITIVE_TC_IDX = 0x01,
};
struct tet_testlist tet_testlist[] = {
- { utc_UIFW_elm_multibuttonentry_item_add_after_func_01, POSITIVE_TC_IDX },
- { utc_UIFW_elm_multibuttonentry_item_add_after_func_02, NEGATIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_item_insert_after_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_item_insert_after_func_02, NEGATIVE_TC_IDX },
{ NULL, 0 }
};
// Do precondition.
void _elm_precondition(void)
{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
-
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
elm_win_title_set(main_win, "Elementary Unit Test Suite");
evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
evas_object_resize(main_win, 320, 480);
// show the window
evas_object_show(main_win);
-
- //elm_run();
}
// Start up function for each test purpose
tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE ========== ");
}
-
/**
- * @brief Positive test case of elm_multibuttonentry_item_add_after()
+ * @brief Positive test case of elm_multibuttonentry_item_insert_after()
*/
-static void utc_UIFW_elm_multibuttonentry_item_add_after_func_01(void)
+static void utc_UIFW_elm_multibuttonentry_item_insert_after_func_01(void)
{
- Elm_Multibuttonentry_Item *added_item1 = NULL, *added_item2 = NULL, *after_item = NULL;
+ Elm_Object_Item *added_item1 = NULL, *added_item2 = NULL, *after_item = NULL;
test_eo = elm_multibuttonentry_add(test_win);
- added_item1 = elm_multibuttonentry_item_add_start(test_eo, "item1", NULL);
- added_item2 = elm_multibuttonentry_item_add_after(test_eo, "item2", added_item1, NULL);
+ added_item1 = elm_multibuttonentry_item_prepend(test_eo, "item1", NULL);
+ added_item2 = elm_multibuttonentry_item_insert_after(test_eo, added_item1, "item2", NULL);
TET_CHECK_PASS(NULL, added_item2);
- after_item = elm_multibuttonentry_item_next(added_item1);
+ after_item = elm_multibuttonentry_item_next_get(added_item1);
if (added_item2 != after_item) {
- tet_infoline("elm_multibuttonentry_item_add_after() failed in positive test case");
+ tet_infoline("elm_multibuttonentry_item_insert_after() failed in positive test case");
tet_result(TET_FAIL);
return;
}
-
tet_result(TET_PASS);
- tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_multibuttonentry_item_add_after().");
+ tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_multibuttonentry_item_insert_after().");
}
-
/**
- * @brief Negative test case of ug_init elm_multibuttonentry_item_add_after()
+ * @brief Negative test case of ug_init elm_multibuttonentry_item_insert_after()
*/
-static void utc_UIFW_elm_multibuttonentry_item_add_after_func_02(void)
+static void utc_UIFW_elm_multibuttonentry_item_insert_after_func_02(void)
{
- Elm_Multibuttonentry_Item *added_item1 = NULL, *added_item2 = NULL;
+ Elm_Object_Item *added_item1 = NULL, *added_item2 = NULL;
test_eo = elm_multibuttonentry_add(NULL);
- added_item1 = elm_multibuttonentry_item_add_start(test_eo, "item1", NULL);
- added_item2 = elm_multibuttonentry_item_add_after(test_eo, NULL, added_item1, NULL);
+ added_item1 = elm_multibuttonentry_item_prepend(test_eo, "item1", NULL);
+ added_item2 = elm_multibuttonentry_item_insert_after(test_eo, added_item1, NULL, NULL);
TET_CHECK_FAIL(NULL, added_item2);
tet_result(TET_PASS);
- tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_multibuttonentry_item_add_after().");
+ tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_multibuttonentry_item_insert_after().");
}
-
// For checking the result of the positive test case.
#define TET_CHECK_PASS(x1, y...) \
{ \
- Elm_Multibuttonentry_Item *err = y; \
+ Elm_Object_Item *err = y; \
if (err == (x1)) \
{ \
tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
// For checking the result of the negative test case.
#define TET_CHECK_FAIL(x1, y...) \
{ \
- Elm_Multibuttonentry_Item *err = y; \
+ Elm_Object_Item *err = y; \
if (err != (x1)) \
{ \
tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
void (*tet_startup)(void) = startup;
void (*tet_cleanup)(void) = cleanup;
-static void utc_UIFW_elm_multibuttonentry_item_add_before_func_01(void);
-static void utc_UIFW_elm_multibuttonentry_item_add_before_func_02(void);
+static void utc_UIFW_elm_multibuttonentry_item_insert_before_func_01(void);
+static void utc_UIFW_elm_multibuttonentry_item_insert_before_func_02(void);
enum {
POSITIVE_TC_IDX = 0x01,
};
struct tet_testlist tet_testlist[] = {
- { utc_UIFW_elm_multibuttonentry_item_add_before_func_01, POSITIVE_TC_IDX },
- { utc_UIFW_elm_multibuttonentry_item_add_before_func_02, NEGATIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_item_insert_before_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_item_insert_before_func_02, NEGATIVE_TC_IDX },
{ NULL, 0 }
};
// Do precondition.
void _elm_precondition(void)
{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
-
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
elm_win_title_set(main_win, "Elementary Unit Test Suite");
evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE ========== ");
}
-
/**
- * @brief Positive test case of elm_multibuttonentry_item_add_before()
+ * @brief Positive test case of elm_multibuttonentry_item_insert_before()
*/
-static void utc_UIFW_elm_multibuttonentry_item_add_before_func_01(void)
+static void utc_UIFW_elm_multibuttonentry_item_insert_before_func_01(void)
{
- Elm_Multibuttonentry_Item *added_item1 = NULL, *added_item2 = NULL, *before_item = NULL;
+ Elm_Object_Item *added_item1 = NULL, *added_item2 = NULL, *before_item = NULL;
test_eo = elm_multibuttonentry_add(test_win);
- added_item1 = elm_multibuttonentry_item_add_start(test_eo, "item1", NULL);
- added_item2 = elm_multibuttonentry_item_add_before(test_eo, "item2", added_item1, NULL);
+ added_item1 = elm_multibuttonentry_item_prepend(test_eo, "item1", NULL);
+ added_item2 = elm_multibuttonentry_item_insert_before(test_eo, added_item1, "item2", NULL);
TET_CHECK_PASS(NULL, added_item2);
- before_item = elm_multibuttonentry_item_prev(added_item1);
+ before_item = elm_multibuttonentry_item_prev_get(added_item1);
if (added_item2 != before_item) {
- tet_infoline("elm_multibuttonentry_item_add_before() failed in positive test case");
+ tet_infoline("elm_multibuttonentry_item_insert_before() failed in positive test case");
tet_result(TET_FAIL);
return;
}
-
tet_result(TET_PASS);
- tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_multibuttonentry_item_add_before().");
+ tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_multibuttonentry_item_insert_before().");
}
-
/**
- * @brief Negative test case of ug_init elm_multibuttonentry_item_add_before()
+ * @brief Negative test case of ug_init elm_multibuttonentry_item_insert_before()
*/
-static void utc_UIFW_elm_multibuttonentry_item_add_before_func_02(void)
+static void utc_UIFW_elm_multibuttonentry_item_insert_before_func_02(void)
{
- Elm_Multibuttonentry_Item *added_item1 = NULL, *added_item2 = NULL;
+ Elm_Object_Item *added_item1 = NULL, *added_item2 = NULL;
test_eo = elm_multibuttonentry_add(NULL);
- added_item1 = elm_multibuttonentry_item_add_start(test_eo, "item1", NULL);
- added_item2 = elm_multibuttonentry_item_add_before(test_eo, NULL, added_item1, NULL);
+ added_item1 = elm_multibuttonentry_item_prepend(test_eo, "item1", NULL);
+ added_item2 = elm_multibuttonentry_item_insert_before(test_eo, added_item1, NULL, NULL);
TET_CHECK_FAIL(NULL, added_item2);
tet_result(TET_PASS);
- tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_multibuttonentry_item_add_before().");
+ tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_multibuttonentry_item_insert_before().");
}
-
+++ /dev/null
-#include <tet_api.h>
-#include <Elementary.h>
-
-// Definitions
-// For checking the result of the positive test case.
-#define TET_CHECK_PASS(x1, y...) \
-{ \
- Evas_Object *err = y; \
- if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
-}
-
-#define TET_CHECK_STRING_PASS(x, y)\
-{\
- if (x == NULL || y == NULL)\
- {\
- tet_printf("[TET_CHECK_STRING_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__);\
- tet_printf("[TET_CHECK_STRING_PASS]:: Test string is NULL");\
- tet_result(TET_FAIL);\
- return;\
- }\
- if (strcmp(x, y))\
- {\
- tet_printf("[TET_CHECK_STRING_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__);\
- tet_result(TET_FAIL);\
- return;\
- }\
-}
-
-// For checking the result of the negative test case.
-#define TET_CHECK_FAIL(x1, y...) \
-{ \
- Evas_Object *err = y; \
- if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
-}
-
-#define TET_CHECK_STRING_FAIL(x, y)\
-{\
- if (x == NULL || y == NULL)\
- return;\
- if (strcmp(x, y) == 0)\
- {\
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL);\
- return;\
- }\
-}
-
-Evas_Object *main_win;
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_UIFW_elm_multibuttonentry_item_label_get_func_01(void);
-static void utc_UIFW_elm_multibuttonentry_item_label_get_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_UIFW_elm_multibuttonentry_item_label_get_func_01, POSITIVE_TC_IDX },
- { utc_UIFW_elm_multibuttonentry_item_label_get_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-// Declare the global variables
-Evas_Object *main_win, *main_bg;
-Evas_Object *test_win, *test_bg;
-Evas_Object *test_eo = NULL;
-// Declare internal functions
-void _elm_precondition(void);
-static void _win_del(void *data, Evas_Object *obj, void *event_info);
-
-
-// Delete main window
-static void _win_del(void *data, Evas_Object *obj, void *event_info)
-{
- elm_exit();
-}
-
-// Do precondition.
-void _elm_precondition(void)
-{
- elm_init(0, NULL);
-
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- elm_win_title_set(main_win, "Elementary Unit Test Suite");
- evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
- main_bg = elm_bg_add(main_win);
- evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(main_win, main_bg);
- evas_object_show(main_bg);
-
- // set an initial window size
- evas_object_resize(main_win, 320, 480);
- // show the window
- evas_object_show(main_win);
-
- //elm_run();
-}
-
-// Start up function for each test purpose
-static void
-startup()
-{
- tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
-
- // Elm precondition
- _elm_precondition();
-
- // Test precondition
- test_win = elm_win_add(NULL, "Multi Button Entry", ELM_WIN_BASIC);
- elm_win_title_set(test_win, "Multi Button Entry");
- elm_win_autodel_set(test_win, 1);
-
- test_bg = elm_bg_add(test_win);
- elm_win_resize_object_add(test_win, test_bg);
- evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_show(test_bg);
-
- evas_object_resize(test_win, 480, 800);
- evas_object_show(test_win);
-
- tet_infoline("[[ TET_MSG ]]:: Completing startup");
-}
-
-// Clean up function for each test purpose
-static void
-cleanup()
-{
- tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
-
- // Clean up the used resources.
- if ( NULL != main_win ) {
- evas_object_del(main_win);
- main_win = NULL;
- }
-
- if ( NULL != main_bg ) {
- evas_object_del(main_bg);
- main_bg = NULL;
- }
-
- if ( NULL != test_win ) {
- evas_object_del(test_win);
- test_win = NULL;
- }
-
- if ( NULL != test_bg ) {
- evas_object_del(test_bg);
- test_bg = NULL;
- }
-
- if ( NULL != test_eo ) {
- evas_object_del(test_eo);
- test_eo = NULL;
- }
-
- // clean up and shut down
- elm_shutdown(); ;
-
- tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE ========== ");
-}
-
-
-/**
- * @brief Positive test case of elm_multibuttonentry_item_label_get()
- */
-static void utc_UIFW_elm_multibuttonentry_item_label_get_func_01(void)
-{
- const char *ret_str = NULL;
- Elm_Multibuttonentry_Item *item;
-
- test_eo = elm_multibuttonentry_add(test_win);
- item = elm_multibuttonentry_item_add_end(test_eo, "test", NULL);
- ret_str = elm_multibuttonentry_item_label_get(item);
- TET_CHECK_STRING_PASS("test", ret_str);
-
- tet_result(TET_PASS);
- tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, An Multi Button Entry is added successfully.");
-}
-
-
-/**
- * @brief Negative test case of ug_init elm_multibuttonentry_item_label_get()
- */
-static void utc_UIFW_elm_multibuttonentry_item_label_get_func_02(void)
-{
- char *ret_str = NULL;
- Elm_Multibuttonentry_Item *item;
-
- test_eo = elm_multibuttonentry_add(test_win);
- item = elm_multibuttonentry_item_add_end(test_eo, "test", NULL);
- elm_multibuttonentry_item_label_set(item, "");
- ret_str = elm_multibuttonentry_item_label_get(item);
- TET_CHECK_STRING_FAIL("test", ret_str);
-
- tet_result(TET_PASS);
- tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Adding an Multi Button Entry has failed.");
-}
-
void (*tet_startup)(void) = startup;
void (*tet_cleanup)(void) = cleanup;
-static void utc_UIFW_elm_multibuttonentry_item_next_func_01(void);
-static void utc_UIFW_elm_multibuttonentry_item_next_func_02(void);
+static void utc_UIFW_elm_multibuttonentry_item_next_get_func_01(void);
+static void utc_UIFW_elm_multibuttonentry_item_next_get_func_02(void);
enum {
POSITIVE_TC_IDX = 0x01,
};
struct tet_testlist tet_testlist[] = {
- { utc_UIFW_elm_multibuttonentry_item_next_func_01, POSITIVE_TC_IDX },
- { utc_UIFW_elm_multibuttonentry_item_next_func_02, NEGATIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_item_next_get_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_item_next_get_func_02, NEGATIVE_TC_IDX },
{ NULL, 0 }
};
// Do precondition.
void _elm_precondition(void)
{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
-
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
elm_win_title_set(main_win, "Elementary Unit Test Suite");
evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
evas_object_resize(main_win, 320, 480);
// show the window
evas_object_show(main_win);
-
- //elm_run();
}
// Start up function for each test purpose
tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE ========== ");
}
-
/**
- * @brief Positive test case of elm_multibuttonentry_item_next()
+ * @brief Positive test case of elm_multibuttonentry_item_next_get()
*/
-static void utc_UIFW_elm_multibuttonentry_item_next_func_01(void)
+static void utc_UIFW_elm_multibuttonentry_item_next_get_func_01(void)
{
test_eo = elm_multibuttonentry_add(test_win);
TET_CHECK_PASS(NULL, test_eo);
tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, An Multi Button Entry is added successfully.");
}
-
/**
- * @brief Negative test case of ug_init elm_multibuttonentry_item_next()
+ * @brief Negative test case of ug_init elm_multibuttonentry_item_next_get()
*/
-static void utc_UIFW_elm_multibuttonentry_item_next_func_02(void)
+static void utc_UIFW_elm_multibuttonentry_item_next_get_func_02(void)
{
test_eo = elm_multibuttonentry_add(NULL);
TET_CHECK_FAIL(NULL, test_eo);
tet_result(TET_PASS);
tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Adding an Multi Button Entry has failed.");
}
-
// For checking the result of the positive test case.
#define TET_CHECK_PASS(x1, y...) \
{ \
- Elm_Multibuttonentry_Item *err = y; \
- Elm_Multibuttonentry_Item *val = x1; \
+ Elm_Object_Item *err = y; \
+ Elm_Object_Item *val = x1; \
if (err == val) \
{ \
tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
// For checking the result of the negative test case.
#define TET_CHECK_FAIL(x1, y...) \
{ \
- Elm_Multibuttonentry_Item *err = y; \
- Elm_Multibuttonentry_Item *val = x1; \
+ Elm_Object_Item *err = y; \
+ Elm_Object_Item *val = x1; \
if (err != val) \
{ \
tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
void (*tet_startup)(void) = startup;
void (*tet_cleanup)(void) = cleanup;
-static void utc_UIFW_elm_multibuttonentry_item_add_end_func_01(void);
-static void utc_UIFW_elm_multibuttonentry_item_add_end_func_02(void);
+static void utc_UIFW_elm_multibuttonentry_item_prepend_func_01(void);
+static void utc_UIFW_elm_multibuttonentry_item_prepend_func_02(void);
enum {
POSITIVE_TC_IDX = 0x01,
};
struct tet_testlist tet_testlist[] = {
- { utc_UIFW_elm_multibuttonentry_item_add_end_func_01, POSITIVE_TC_IDX },
- { utc_UIFW_elm_multibuttonentry_item_add_end_func_02, NEGATIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_item_prepend_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_item_prepend_func_02, NEGATIVE_TC_IDX },
{ NULL, 0 }
};
void _elm_precondition(void)
{
elm_init(0, NULL);
-
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
elm_win_title_set(main_win, "Elementary Unit Test Suite");
evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
evas_object_resize(main_win, 320, 480);
// show the window
evas_object_show(main_win);
-
- //elm_run();
}
// Start up function for each test purpose
// Clean up the used resources.
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
if ( NULL != main_bg ) {
tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE ========== ");
}
-
/**
- * @brief Positive test case of elm_multibuttonentry_item_add_end()
+ * @brief Positive test case of elm_multibuttonentry_item_prepend()
*/
-static void utc_UIFW_elm_multibuttonentry_item_add_end_func_01(void)
+static void utc_UIFW_elm_multibuttonentry_item_prepend_func_01(void)
{
- Elm_Multibuttonentry_Item *added_item = NULL, *last_item = NULL;
+ Elm_Object_Item *added_item = NULL, *first_item = NULL;
test_eo = elm_multibuttonentry_add(test_win);
- added_item = elm_multibuttonentry_item_add_end(test_eo, "item1", NULL);
+ added_item = elm_multibuttonentry_item_prepend(test_eo, "item1", NULL);
TET_CHECK_PASS(NULL, added_item);
- last_item = elm_multibuttonentry_item_last_get(test_eo);
- if (added_item != last_item) {
- tet_infoline("elm_multibuttonentry_item_add_end() failed in positive test case");
+ first_item = elm_multibuttonentry_first_item_get(test_eo);
+ if (added_item != first_item) {
+ tet_infoline("elm_multibuttonentry_item_prepend() failed in positive test case");
tet_result(TET_FAIL);
return;
}
-
tet_result(TET_PASS);
- tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_multibuttonentry_item_add_end().");
+ tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_multibuttonentry_item_prepend().");
}
-
/**
- * @brief Negative test case of ug_init elm_multibuttonentry_item_add_end()
+ * @brief Negative test case of ug_init elm_multibuttonentry_item_prepend()
*/
-static void utc_UIFW_elm_multibuttonentry_item_add_end_func_02(void)
+static void utc_UIFW_elm_multibuttonentry_item_prepend_func_02(void)
{
-
- Elm_Multibuttonentry_Item *added_item = NULL;
+ Elm_Object_Item *added_item = NULL;
test_eo = elm_multibuttonentry_add(test_win);
- added_item = elm_multibuttonentry_item_add_end(test_eo, NULL, NULL);
+ added_item = elm_multibuttonentry_first_item_get(test_eo);
TET_CHECK_FAIL(NULL, added_item);
tet_result(TET_PASS);
- tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_multibuttonentry_item_add_end().");
+ tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_multibuttonentry_item_prepend().");
}
-
void (*tet_startup)(void) = startup;
void (*tet_cleanup)(void) = cleanup;
-static void utc_UIFW_elm_multibuttonentry_item_prev_func_01(void);
-static void utc_UIFW_elm_multibuttonentry_item_prev_func_02(void);
+static void utc_UIFW_elm_multibuttonentry_item_prev_get_func_01(void);
+static void utc_UIFW_elm_multibuttonentry_item_prev_get_func_02(void);
enum {
POSITIVE_TC_IDX = 0x01,
};
struct tet_testlist tet_testlist[] = {
- { utc_UIFW_elm_multibuttonentry_item_prev_func_01, POSITIVE_TC_IDX },
- { utc_UIFW_elm_multibuttonentry_item_prev_func_02, NEGATIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_item_prev_get_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_item_prev_get_func_02, NEGATIVE_TC_IDX },
{ NULL, 0 }
};
// Do precondition.
void _elm_precondition(void)
{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
-
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
elm_win_title_set(main_win, "Elementary Unit Test Suite");
evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
evas_object_resize(main_win, 320, 480);
// show the window
evas_object_show(main_win);
-
- //elm_run();
}
// Start up function for each test purpose
tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE ========== ");
}
-
/**
- * @brief Positive test case of elm_multibuttonentry_item_prev()
+ * @brief Positive test case of elm_multibuttonentry_item_prev_get()
*/
-static void utc_UIFW_elm_multibuttonentry_item_prev_func_01(void)
+static void utc_UIFW_elm_multibuttonentry_item_prev_get_func_01(void)
{
test_eo = elm_multibuttonentry_add(test_win);
TET_CHECK_PASS(NULL, test_eo);
tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, An Multi Button Entry is added successfully.");
}
-
/**
- * @brief Negative test case of ug_init elm_multibuttonentry_item_prev()
+ * @brief Negative test case of ug_init elm_multibuttonentry_item_prev_get()
*/
-static void utc_UIFW_elm_multibuttonentry_item_prev_func_02(void)
+static void utc_UIFW_elm_multibuttonentry_item_prev_get_func_02(void)
{
test_eo = elm_multibuttonentry_add(NULL);
TET_CHECK_FAIL(NULL, test_eo);
tet_result(TET_PASS);
tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Adding an Multi Button Entry has failed.");
}
-
}
for(i=0; i< 5; i++){
- elm_multibuttonentry_item_add_end(test_eo, "item", NULL);
+ elm_multibuttonentry_item_append(test_eo, "item", NULL);
}
// test 2
items = elm_multibuttonentry_items_get(test_eo);
- TET_CHECK_PASS(NULL, items);
+ TET_CHECK_PASS(NULL, (Eina_List*)items);
// test 3
count = eina_list_count(items);
*/
static void utc_UIFW_elm_multibuttonentry_items_get_func_02(void)
{
- Eina_List *items = NULL;
+ const Eina_List *items = NULL;
int i=0;
test_eo = elm_multibuttonentry_add(NULL);
for(i=0; i< 5; i++){
- elm_multibuttonentry_item_add_end(test_eo, "item", NULL);
+ elm_multibuttonentry_item_prepend(test_eo, "item", NULL);
}
items = elm_multibuttonentry_items_get(NULL);
TET_CHECK_FAIL(NULL, items);
// For checking the result of the positive test case.
#define TET_CHECK_PASS(x1, y...) \
{ \
- Evas_Object *err = y; \
- if (err == (x1)) \
+ Elm_Object_Item *err = y; \
+ Elm_Object_Item *val = x1; \
+ if (err == val) \
{ \
tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
tet_result(TET_FAIL); \
// For checking the result of the negative test case.
#define TET_CHECK_FAIL(x1, y...) \
{ \
- Evas_Object *err = y; \
- if (err != (x1)) \
+ Elm_Object_Item *err = y; \
+ Elm_Object_Item *val = x1; \
+ if (err != val) \
{ \
tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
tet_result(TET_FAIL); \
void (*tet_startup)(void) = startup;
void (*tet_cleanup)(void) = cleanup;
-static void utc_UIFW_elm_multibuttonentry_item_del_func_01(void);
-static void utc_UIFW_elm_multibuttonentry_item_del_func_02(void);
+static void utc_UIFW_elm_multibuttonentry_last_item_get_func_01(void);
+static void utc_UIFW_elm_multibuttonentry_last_item_get_func_02(void);
enum {
POSITIVE_TC_IDX = 0x01,
};
struct tet_testlist tet_testlist[] = {
- { utc_UIFW_elm_multibuttonentry_item_del_func_01, POSITIVE_TC_IDX },
- { utc_UIFW_elm_multibuttonentry_item_del_func_02, NEGATIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_last_item_get_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_last_item_get_func_02, NEGATIVE_TC_IDX },
{ NULL, 0 }
};
// Do precondition.
void _elm_precondition(void)
{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
-
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
elm_win_title_set(main_win, "Elementary Unit Test Suite");
evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
evas_object_resize(main_win, 320, 480);
// show the window
evas_object_show(main_win);
-
- //elm_run();
}
// Start up function for each test purpose
tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE ========== ");
}
-
/**
- * @brief Positive test case of elm_multibuttonentry_item_del()
+ * @brief Positive test case of elm_multibuttonentry_last_item_get()
*/
-static void utc_UIFW_elm_multibuttonentry_item_del_func_01(void)
+static void utc_UIFW_elm_multibuttonentry_last_item_get_func_01(void)
{
- Elm_Multibuttonentry_Item *added_item1 = NULL, *added_item2 = NULL, *first_item = NULL;
+ Elm_Object_Item *added_item1 = NULL, *added_item2 = NULL, *last_item = NULL;
test_eo = elm_multibuttonentry_add(test_win);
- added_item1 = elm_multibuttonentry_item_add_end(test_eo, "item1", NULL);
- added_item2 = elm_multibuttonentry_item_add_end(test_eo, "item2", NULL);
- elm_multibuttonentry_item_del(added_item1);
- first_item = elm_multibuttonentry_item_first_get(test_eo);
- if (first_item != added_item2) {
- tet_infoline("elm_multibuttonentry_item_del() failed in positive test case");
+ added_item1 = elm_multibuttonentry_item_append(test_eo, "item1", NULL);
+ added_item2 = elm_multibuttonentry_item_append(test_eo, "item2", NULL);
+ last_item = elm_multibuttonentry_last_item_get(test_eo);
+ if (last_item != added_item2) {
+ tet_infoline("elm_multibuttonentry_last_item_get() failed in positive test case");
tet_result(TET_FAIL);
return;
}
-
tet_result(TET_PASS);
- tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_multibuttonentry_item_del().");
+ tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_multibuttonentry_last_item_get().");
}
-
/**
- * @brief Negative test case of ug_init elm_multibuttonentry_item_del()
+ * @brief Negative test case of ug_init elm_multibuttonentry_last_item_get()
*/
-static void utc_UIFW_elm_multibuttonentry_item_del_func_02(void)
+static void utc_UIFW_elm_multibuttonentry_last_item_get_func_02(void)
{
- Elm_Multibuttonentry_Item *added_item1 = NULL;
- const Eina_List *items = NULL;
+ Elm_Object_Item *added_item1 = NULL, *added_item2 = NULL, *last_item = NULL;
test_eo = elm_multibuttonentry_add(test_win);
- added_item1 = elm_multibuttonentry_item_add_end(test_eo, "item1", NULL);
- elm_multibuttonentry_item_del(NULL);
- items = elm_multibuttonentry_items_get(test_eo);
- if (!items) {
- tet_infoline("elm_multibuttonentry_item_del() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
+ added_item1 = elm_multibuttonentry_item_append(test_eo, "item1", NULL);
+ added_item2 = elm_multibuttonentry_item_append(test_eo, "item2", NULL);
+ last_item = elm_multibuttonentry_last_item_get(test_win);
+ TET_CHECK_FAIL(NULL, last_item);
tet_result(TET_PASS);
- tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_multibuttonentry_item_del().");
+ tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_multibuttonentry_last_item_get().");
}
-
// For checking the result of the positive test case.
#define TET_CHECK_PASS(x1, y...) \
{ \
- Elm_Multibuttonentry_Item *err = y; \
+ Elm_Object_Item *err = y; \
if (err == (x1)) \
{ \
tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
// For checking the result of the negative test case.
#define TET_CHECK_FAIL(x1, y...) \
{ \
- Elm_Multibuttonentry_Item *err = y; \
+ Elm_Object_Item *err = y; \
if (err != (x1)) \
{ \
tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
void (*tet_startup)(void) = startup;
void (*tet_cleanup)(void) = cleanup;
-static void utc_UIFW_elm_multibuttonentry_item_selected_get_func_01(void);
-static void utc_UIFW_elm_multibuttonentry_item_selected_get_func_02(void);
+static void utc_UIFW_elm_multibuttonentry_selected_item_get_func_01(void);
+static void utc_UIFW_elm_multibuttonentry_selected_item_get_func_02(void);
enum {
POSITIVE_TC_IDX = 0x01,
};
struct tet_testlist tet_testlist[] = {
- { utc_UIFW_elm_multibuttonentry_item_selected_get_func_01, POSITIVE_TC_IDX },
- { utc_UIFW_elm_multibuttonentry_item_selected_get_func_02, NEGATIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_selected_item_get_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_multibuttonentry_selected_item_get_func_02, NEGATIVE_TC_IDX },
{ NULL, 0 }
};
// Do precondition.
void _elm_precondition(void)
{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
-
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
elm_win_title_set(main_win, "Elementary Unit Test Suite");
evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
evas_object_resize(main_win, 320, 480);
// show the window
evas_object_show(main_win);
-
- //elm_run();
}
// Start up function for each test purpose
tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE ========== ");
}
-
/**
- * @brief Positive test case of elm_multibuttonentry_item_selected_get()
+ * @brief Positive test case of elm_multibuttonentry_selected_item_get()
*/
-static void utc_UIFW_elm_multibuttonentry_item_selected_get_func_01(void)
+static void utc_UIFW_elm_multibuttonentry_selected_item_get_func_01(void)
{
- Elm_Multibuttonentry_Item *added_item1 = NULL, *added_item2 = NULL, *selected_item = NULL;
+ Elm_Object_Item *added_item1 = NULL, *added_item2 = NULL, *selected_item = NULL;
test_eo = elm_multibuttonentry_add(test_win);
- added_item1 = elm_multibuttonentry_item_add_end(test_eo, "item1", NULL);
- added_item2 = elm_multibuttonentry_item_add_end(test_eo, "item2", NULL);
- elm_multibuttonentry_item_selected_set(added_item1);
- selected_item = elm_multibuttonentry_item_selected_get(test_eo);
+ added_item1 = elm_multibuttonentry_item_prepend(test_eo, "item1", NULL);
+ added_item2 = elm_multibuttonentry_item_prepend(test_eo, "item2", NULL);
+ elm_multibuttonentry_item_select(added_item1, EINA_TRUE);
+
+ selected_item = elm_multibuttonentry_selected_item_get(test_eo);
if (selected_item != added_item1) {
- tet_infoline("elm_multibuttonentry_item_selected_get() failed in positive test case");
+ tet_infoline("elm_multibuttonentry_selected_item_get() failed in positive test case");
tet_result(TET_FAIL);
return;
}
-
tet_result(TET_PASS);
- tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_multibuttonentry_item_selected_get().");
+ tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_multibuttonentry_selected_item_get().");
}
-
/**
- * @brief Negative test case of ug_init elm_multibuttonentry_item_selected_get()
+ * @brief Negative test case of ug_init elm_multibuttonentry_selected_item_get()
*/
-static void utc_UIFW_elm_multibuttonentry_item_selected_get_func_02(void)
+static void utc_UIFW_elm_multibuttonentry_selected_item_get_func_02(void)
{
- Elm_Multibuttonentry_Item *added_item1 = NULL, *added_item2 = NULL, *selected_item = NULL;
+ Elm_Object_Item *added_item1 = NULL, *added_item2 = NULL, *selected_item = NULL;
test_eo = elm_multibuttonentry_add(NULL);
- added_item1 = elm_multibuttonentry_item_add_end(test_eo, "item1", NULL);
- added_item2 = elm_multibuttonentry_item_add_end(test_eo, "item2", NULL);
- selected_item = elm_multibuttonentry_item_selected_get(test_eo);
+ added_item1 = elm_multibuttonentry_item_prepend(test_eo, "item1", NULL);
+ added_item2 = elm_multibuttonentry_item_prepend(test_eo, "item2", NULL);
+ selected_item = elm_multibuttonentry_selected_item_get(test_eo);
TET_CHECK_FAIL(NULL, selected_item);
tet_result(TET_PASS);
tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_multibuttonentry_item_selected_get().");
}
-