*.la
.libs
.deps
-*.swp
+.*.swp
*.pc
Makefile
Makefile.in
*.so
*.edj
-*~
src/lib/Elementary.h
-src/lib/Makefile
-src/lib/Makefile.in
elementary_config
elementary_quicklaunch
elementary_run
elementary_testql
/aclocal.m4
/autom4te.cache/
+/config.cache
/config.guess
/config.log
/config.status
CC ?= gcc
-TARGETS = utc_elm_controlbar_add_func \
- utc_elm_controlbar_tab_item_append_func \
- utc_elm_controlbar_tab_item_prepend_func \
- utc_elm_controlbar_tab_item_insert_before_func \
- utc_elm_controlbar_tab_item_insert_after_func \
- utc_elm_controlbar_tool_item_append_func \
- utc_elm_controlbar_tool_item_prepend_func \
- utc_elm_controlbar_tool_item_insert_before_func \
- utc_elm_controlbar_tool_item_insert_after_func \
- utc_elm_controlbar_object_item_append_func \
- utc_elm_controlbar_object_item_prepend_func \
- utc_elm_controlbar_object_item_insert_before_func \
- utc_elm_controlbar_object_item_insert_after_func \
- utc_elm_controlbar_object_item_del_func \
- utc_elm_controlbar_object_item_select_func \
- utc_elm_controlbar_object_item_visible_set_func \
- utc_elm_controlbar_object_item_visible_get_func \
- utc_elm_controlbar_object_item_disable_set_func \
- utc_elm_controlbar_item_icon_set_func \
- utc_elm_controlbar_object_item_icon_get_func \
- utc_elm_controlbar_item_label_get_func \
- utc_elm_controlbar_item_label_set_func \
- utc_elm_controlbar_selected_item_get_func \
- utc_elm_controlbar_first_item_get_func \
- utc_elm_controlbar_last_item_get_func \
- utc_elm_controlbar_items_get_func \
- utc_elm_controlbar_item_prev_func \
- utc_elm_controlbar_item_next_func \
- utc_elm_controlbar_item_view_set_func \
- utc_elm_controlbar_item_view_get_func \
- utc_elm_controlbar_mode_set_func \
- utc_elm_controlbar_alpha_set_func \
- utc_elm_controlbar_item_auto_align_set_func \
- utc_elm_controlbar_vertical_set_func
+TARGETS = utc_UIFW_elm_controlbar_add_func \
+ utc_UIFW_elm_controlbar_tab_item_append_func \
+ utc_UIFW_elm_controlbar_tab_item_prepend_func \
+ utc_UIFW_elm_controlbar_tab_item_insert_before_func \
+ utc_UIFW_elm_controlbar_tab_item_insert_after_func \
+ utc_UIFW_elm_controlbar_tool_item_append_func \
+ utc_UIFW_elm_controlbar_tool_item_prepend_func \
+ utc_UIFW_elm_controlbar_tool_item_insert_before_func \
+ utc_UIFW_elm_controlbar_tool_item_insert_after_func \
+ utc_UIFW_elm_controlbar_object_item_append_func \
+ utc_UIFW_elm_controlbar_object_item_prepend_func \
+ utc_UIFW_elm_controlbar_object_item_insert_before_func \
+ utc_UIFW_elm_controlbar_object_item_insert_after_func \
+ utc_UIFW_elm_controlbar_item_del_func \
+ utc_UIFW_elm_controlbar_item_select_func \
+ utc_UIFW_elm_controlbar_item_visible_set_func \
+ utc_UIFW_elm_controlbar_item_visible_get_func \
+ utc_UIFW_elm_controlbar_item_disable_set_func \
+ utc_UIFW_elm_controlbar_item_icon_set_func \
+ utc_UIFW_elm_controlbar_item_icon_get_func \
+ utc_UIFW_elm_controlbar_item_label_set_func \
+ utc_UIFW_elm_controlbar_item_label_get_func \
+ utc_UIFW_elm_controlbar_selected_item_get_func \
+ utc_UIFW_elm_controlbar_first_item_get_func \
+ utc_UIFW_elm_controlbar_last_item_get_func \
+ utc_UIFW_elm_controlbar_items_get_func \
+ utc_UIFW_elm_controlbar_item_prev_func \
+ utc_UIFW_elm_controlbar_item_next_func \
+ utc_UIFW_elm_controlbar_item_view_set_func \
+ utc_UIFW_elm_controlbar_item_view_get_func \
+ utc_UIFW_elm_controlbar_mode_set_func \
+ utc_UIFW_elm_controlbar_alpha_set_func \
+ utc_UIFW_elm_controlbar_item_auto_align_set_func \
+ utc_UIFW_elm_controlbar_vertical_set_func
-PKGS = elementary
+PKGS = elementary evas
LDFLAGS = `pkg-config --libs $(PKGS)`
LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
all: $(TARGETS)
-$(TARGET): %: %.c
- $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
+$(TARGETS): %: %.c
+ $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
clean:
rm -f $(TARGETS)
utc_UIFW_elm_genlist_item_expanded_get_func \
utc_UIFW_elm_genlist_item_disabled_set_func \
utc_UIFW_elm_genlist_item_disabled_get_func \
- utc_UIFW_elm_genlist_item_display_only_set_func
+ utc_UIFW_elm_genlist_item_display_only_set_func \
+ utc_UIFW_elm_genlist_item_display_only_get_func \
+ utc_UIFW_elm_genlist_item_show_func \
+ utc_UIFW_elm_genlist_item_bring_in_func \
+ utc_UIFW_elm_genlist_item_top_show_func \
+ utc_UIFW_elm_genlist_item_top_bring_in_func \
+ utc_UIFW_elm_genlist_item_middle_show_func \
+ utc_UIFW_elm_genlist_item_middle_bring_in_func \
+ utc_UIFW_elm_genlist_item_del_func \
+ utc_UIFW_elm_genlist_item_data_set_func \
+ utc_UIFW_elm_genlist_item_data_get_func \
+ utc_UIFW_elm_genlist_item_update_func \
+ utc_UIFW_elm_genlist_scroller_policy_set_func \
+ utc_UIFW_elm_genlist_edit_mode_set_func \
+ utc_UIFW_elm_genlist_item_expanded_depth_get_func \
+ utc_UIFW_elm_genlist_item_rename_mode_set_func \
+ utc_UIFW_elm_genlist_item_move_after_func
-
-PKGS = elementary
+PKGS = elementary evas
LDFLAGS = `pkg-config --libs $(PKGS)`
LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
all: $(TARGETS)
-$(TARGET): %: %.c
- $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
+$(TARGETS): %: %.c
+ $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
clean:
rm -f $(TARGETS)
/elm_ts/genlist/utc_UIFW_elm_genlist_item_update_func
/elm_ts/genlist/utc_UIFW_elm_genlist_scroller_policy_set_func
/elm_ts/genlist/utc_UIFW_elm_genlist_edit_mode_set_func
-/elm_ts/genlist/utc_UIFW_elm_genlist_edit_selected_items_del_func
-/elm_ts/genlist/utc_UIFW_elm_genlist_edit_selected_items_get_func
/elm_ts/genlist/utc_UIFW_elm_genlist_item_expanded_depth_get_func
/elm_ts/genlist/utc_UIFW_elm_genlist_item_rename_mode_set_func
/elm_ts/genlist/utc_UIFW_elm_genlist_item_move_after_func
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
}
static void cleanup(void)
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
static void utc_UIFW_elm_genlist_add_func_01(void)
{
Evas_Object *r = NULL;
- r = elm_genlist_add(main_win);
-
+ r = elm_genlist_add(main_win);
+
if (!r) {
tet_infoline("elm_genlist_add() failed in positive test case");
tet_result(TET_FAIL);
static void utc_UIFW_elm_genlist_add_func_02(void)
{
Evas_Object* r = NULL;
- r = elm_genlist_add(NULL);
-
+ r = elm_genlist_add(NULL);
+
if (r) {
tet_infoline("elm_genlist_add() failed in negative test case");
tet_result(TET_FAIL);
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{
Eina_Bool res = EINA_FALSE;
- res = elm_genlist_always_select_mode_get(genlist);
+ res = elm_genlist_always_select_mode_get(genlist);
if (!res) {
tet_infoline("elm_genlist_always_select_mode_get() failed in positive test case");
{
Eina_Bool res = EINA_FALSE;
- res = elm_genlist_always_select_mode_get(NULL);
+ res = elm_genlist_always_select_mode_get(NULL);
if (res) {
tet_infoline("elm_genlist_always_select_mode_get() failed in negative test case");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_always_select_mode_set_func_01(void)
{
- elm_genlist_always_select_mode_set(genlist, EINA_TRUE);
+ elm_genlist_always_select_mode_set(genlist, EINA_TRUE);
tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
Elm_Genlist_Item *ret = NULL;
int where = 0;
- ret = elm_genlist_at_xy_item_get(genlist, 0, 0, &where);
+ ret = elm_genlist_at_xy_item_get(genlist, 0, 0, &where);
- tet_result(TET_PASS);
+ tet_result(TET_PASS);
}
/**
*/
static void utc_UIFW_elm_genlist_at_xy_item_get_func_02(void)
{
- Elm_Genlist_Item *ret = NULL;
+ Elm_Genlist_Item *ret = NULL;
int where = 0;
- ret = elm_genlist_at_xy_item_get(NULL, 0, 0, &where);
+ ret = elm_genlist_at_xy_item_get(NULL, 0, 0, &where);
if (ret) {
tet_infoline("elm_genlist_at_xy_item_get() failed in negative test case");
tet_result(TET_FAIL);
return;
}
- tet_result(TET_PASS);
+ tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{
int r = 0;
- r = elm_genlist_block_count_get(genlist);
+ r = elm_genlist_block_count_get(genlist);
if (!r) {
tet_infoline("elm_genlist_block_count_get() failed in positive test case");
{
int r = 0;
- r = elm_genlist_block_count_get(NULL);
+ r = elm_genlist_block_count_get(NULL);
if (r) {
tet_infoline("elm_genlist_block_count_get() failed in negative test case");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_block_count_set_func_01(void)
{
- elm_genlist_block_count_set(genlist, 5);
+ elm_genlist_block_count_set(genlist, 5);
tet_result(TET_PASS);
}
*/
static void utc_UIFW_elm_genlist_block_count_set_func_02(void)
{
- elm_genlist_block_count_set(NULL, 5);
+ elm_genlist_block_count_set(NULL, 5);
tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
//TODO ::: bug!!! fix this!!!
/*
- if ((ret_h != my_h) || (ret_v != my_v)) {
- tet_infoline("elm_genlist_bounce_get() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- */
+ if ((ret_h != my_h) || (ret_v != my_v)) {
+ tet_infoline("elm_genlist_bounce_get() failed in positive test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ */
tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
Evas_Object *main_win, *genlist;
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
Eina_Bool r = EINA_FALSE;
- r = elm_genlist_compress_mode_get(genlist);
+ r = elm_genlist_compress_mode_get(genlist);
if (!r) {
tet_infoline("elm_genlist_compress_mode_get() failed in positive test case");
tet_result(TET_FAIL);
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_compress_mode_set_func_01(void)
{
- elm_genlist_compress_mode_set(genlist, EINA_TRUE);
+ elm_genlist_compress_mode_set(genlist, EINA_TRUE);
tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
}
-static Elm_Genlist_Edit_Class ec;
-
/**
* @brief Positive test case of elm_genlist_edit_mode_set()
*/
static void utc_UIFW_elm_genlist_edit_mode_set_func_01(void)
{
- ec.move = NULL;
- ec.item_selected = NULL;
+ itc.func.moved = NULL;
+ itc.edit_item_style = "edit_default";
- elm_genlist_edit_mode_set(genlist, ELM_GENLIST_EDIT_MODE_REORDER | ELM_GENLIST_EDIT_MODE_SELECT, &ec);
+ elm_genlist_edit_mode_set(genlist, EINA_TRUE);
tet_result(TET_PASS);
}
*/
static void utc_UIFW_elm_genlist_edit_mode_set_func_02(void)
{
- elm_genlist_edit_mode_set(NULL, ELM_GENLIST_EDIT_MODE_NONE, NULL);
+ elm_genlist_edit_mode_set(NULL, EINA_FALSE);
tet_result(TET_PASS);
}
+++ /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; \
- } \
-}
-
-// 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; \
- } \
-}
-
-
-Evas_Object *main_win, *genlist;
-static char *Items[] = { "Main Item1", "Main Item 2", "Main Item 3", "Main Item 4", "Main Item 5", "Main Item 6", "Main Item 7", "Main Item 8" };
-Elm_Genlist_Item_Class itc;
-
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_UIFW_elm_genlist_edit_selected_items_del_func_01(void);
-static void utc_UIFW_elm_genlist_edit_selected_items_del_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_UIFW_elm_genlist_edit_selected_items_del_func_01, POSITIVE_TC_IDX },
- { utc_UIFW_elm_genlist_edit_selected_items_del_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static char *_gl_label_get( const void *data, Evas_Object *obj, const char *part )
-{
- int index = (int) data;
-
- if (!strcmp(part, "elm.text")) {
- return strdup(Items[index]);
- }
- return NULL;
-}
-
-static void startup(void)
-{
- Elm_Genlist_Item *item = NULL;
- int index = 0;
- tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
- elm_init(0, NULL);
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
- genlist = elm_genlist_add(main_win);
- evas_object_show(genlist);
- elm_win_resize_object_add(main_win, genlist);
- evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- itc.item_style = "1line_textonly";
- itc.func.label_get = _gl_label_get;
- itc.func.icon_get = NULL;
- itc.func.state_get = NULL;
- itc.func.del = NULL;
- for (index = 0; index < 5; index++) {
- item = elm_genlist_item_append(genlist, &itc, (void *) index, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
- }
-}
-
-static void cleanup(void)
-{
- if ( NULL != main_win ) {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
-}
-
-static Elm_Genlist_Edit_Class ec;
-
-/**
- * @brief Positive test case of elm_genlist_edit_selected_items_del()
- */
-static void utc_UIFW_elm_genlist_edit_selected_items_del_func_01(void)
-{
- ec.move = NULL;
- ec.item_selected = NULL;
-
- elm_genlist_edit_mode_set(genlist, ELM_GENLIST_EDIT_MODE_REORDER | ELM_GENLIST_EDIT_MODE_SELECT, &ec);
- elm_genlist_edit_selected_items_del(genlist);
-
- tet_result(TET_PASS);
-}
-
-/**
- * @brief Negative test case of ug_init elm_genlist_edit_selected_items_del()
- */
-static void utc_UIFW_elm_genlist_edit_selected_items_del_func_02(void)
-{
- elm_genlist_edit_selected_items_del(NULL);
- tet_result(TET_PASS);
-}
+++ /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; \
- } \
-}
-
-// 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; \
- } \
-}
-
-
-Evas_Object *main_win, *genlist;
-static char *Items[] = { "Main Item1", "Main Item 2", "Main Item 3", "Main Item 4", "Main Item 5", "Main Item 6", "Main Item 7", "Main Item 8" };
-Elm_Genlist_Item_Class itc;
-
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_UIFW_elm_genlist_edit_selected_items_get_func_01(void);
-static void utc_UIFW_elm_genlist_edit_selected_items_get_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_UIFW_elm_genlist_edit_selected_items_get_func_01, POSITIVE_TC_IDX },
- { utc_UIFW_elm_genlist_edit_selected_items_get_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static char *_gl_label_get( const void *data, Evas_Object *obj, const char *part )
-{
- int index = (int) data;
-
- if (!strcmp(part, "elm.text")) {
- return strdup(Items[index]);
- }
- return NULL;
-}
-
-static void startup(void)
-{
- Elm_Genlist_Item *item = NULL;
- int index = 0;
- tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
- elm_init(0, NULL);
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
- genlist = elm_genlist_add(main_win);
- evas_object_show(genlist);
- elm_win_resize_object_add(main_win, genlist);
- evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- itc.item_style = "1line_textonly";
- itc.func.label_get = _gl_label_get;
- itc.func.icon_get = NULL;
- itc.func.state_get = NULL;
- itc.func.del = NULL;
- for (index = 0; index < 5; index++) {
- item = elm_genlist_item_append(genlist, &itc, (void *) index, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
- }
-}
-
-static void cleanup(void)
-{
- if ( NULL != main_win ) {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
-}
-
-static Elm_Genlist_Edit_Class ec;
-
-/**
- * @brief Positive test case of elm_genlist_edit_selected_items_get()
- */
-static void utc_UIFW_elm_genlist_edit_selected_items_get_func_01(void)
-{
- ec.move = NULL;
- ec.item_selected = NULL;
-
- elm_genlist_edit_mode_set(genlist, ELM_GENLIST_EDIT_MODE_REORDER | ELM_GENLIST_EDIT_MODE_SELECT, &ec);
- elm_genlist_edit_selected_items_get(genlist);
- tet_result(TET_PASS);
-}
-
-/**
- * @brief Negative test case of ug_init elm_genlist_edit_selected_items_get()
- */
-static void utc_UIFW_elm_genlist_edit_selected_items_get_func_02(void)
-{
- elm_genlist_edit_selected_items_get(NULL);
- tet_result(TET_PASS);
-}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_effect_set_func_01(void)
{
- elm_genlist_effect_set(genlist, EINA_TRUE);
+ elm_genlist_effect_set(genlist, EINA_TRUE);
tet_result(TET_PASS);
}
*/
static void utc_UIFW_elm_genlist_effect_set_func_02(void)
{
- elm_genlist_effect_set(NULL, EINA_TRUE);
+ elm_genlist_effect_set(NULL, EINA_TRUE);
tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_first_item_get_func_01(void)
{
- Elm_Genlist_Item *item = NULL, *result_item = NULL;
+ Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
-
result_item = elm_genlist_first_item_get(genlist);
if (!result_item) {
*/
static void utc_UIFW_elm_genlist_first_item_get_func_02(void)
{
- Elm_Genlist_Item *item = NULL, *result_item = NULL;
+ Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
-
result_item = elm_genlist_first_item_get(NULL);
if (result_item) {
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
Eina_Bool res = EINA_FALSE;
- res = elm_genlist_homogeneous_get(genlist);
+ res = elm_genlist_homogeneous_get(genlist);
if (!res) {
tet_infoline("elm_genlist_bounce_get() failed in positive test case");
tet_result(TET_FAIL);
Eina_Bool res = EINA_FALSE;
- res = elm_genlist_homogeneous_get(NULL);
+ res = elm_genlist_homogeneous_get(NULL);
if (res) {
tet_infoline("elm_genlist_bounce_get() failed in negative test case");
tet_result(TET_FAIL);
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_homogeneous_set_func_01(void)
{
- elm_genlist_homogeneous_set(genlist, EINA_TRUE);
+ elm_genlist_homogeneous_set(genlist, EINA_TRUE);
tet_result(TET_PASS);
}
*/
static void utc_UIFW_elm_genlist_homogeneous_set_func_02(void)
{
- elm_genlist_homogeneous_set(NULL, EINA_TRUE);
+ elm_genlist_homogeneous_set(NULL, EINA_TRUE);
tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
Elm_List_Mode my_mode = ELM_LIST_SCROLL, ret_mode = 0;
elm_genlist_horizontal_mode_set(genlist, my_mode);
- ret_mode = elm_genlist_horizontal_mode_get(genlist);
+ ret_mode = elm_genlist_horizontal_mode_get(genlist);
if (ret_mode != my_mode) {
tet_infoline("elm_genlist_horizontal_mode_get() failed in positive test case");
Elm_List_Mode my_mode = ELM_LIST_SCROLL, ret_mode = 0;
elm_genlist_horizontal_mode_set(genlist, my_mode);
- ret_mode = elm_genlist_horizontal_mode_get(NULL);
+ ret_mode = elm_genlist_horizontal_mode_get(NULL);
if (ret_mode == my_mode) {
tet_infoline("elm_genlist_horizontal_mode_get() failed in negative test case");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_horizontal_mode_set_func_01(void)
{
- elm_genlist_horizontal_mode_set(genlist, ELM_LIST_LIMIT);
+ elm_genlist_horizontal_mode_set(genlist, ELM_LIST_LIMIT);
tet_result(TET_PASS);
}
*/
static void utc_UIFW_elm_genlist_horizontal_mode_set_func_02(void)
{
- elm_genlist_horizontal_mode_set(NULL, ELM_LIST_LIMIT);
+ elm_genlist_horizontal_mode_set(NULL, ELM_LIST_LIMIT);
tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_item_disabled_get_func_01(void)
{
- Elm_Genlist_Item *item = NULL;
- Eina_Bool ret = EINA_FALSE;
+ Elm_Genlist_Item *item = NULL;
+ Eina_Bool ret = EINA_FALSE;
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_disabled_set(item, 1);
ret = elm_genlist_item_disabled_get(item);
-
+
if (!ret) {
tet_infoline("elm_genlist_item_disabled_get() failed in positive test case");
tet_result(TET_FAIL);
*/
static void utc_UIFW_elm_genlist_item_disabled_get_func_02(void)
{
- Elm_Genlist_Item *item = NULL;
- Eina_Bool ret = EINA_FALSE;
+ Elm_Genlist_Item *item = NULL;
+ Eina_Bool ret = EINA_FALSE;
+
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
-
ret = elm_genlist_item_disabled_get(NULL);
-
+
if (ret) {
tet_infoline("elm_genlist_item_disabled_get() failed in negative test case");
tet_result(TET_FAIL);
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
Elm_Genlist_Item *item = NULL;
Eina_Bool ret = EINA_FALSE;
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_disabled_set(item, EINA_TRUE);
ret = elm_genlist_item_disabled_get(item);
-
+
if (!ret) {
tet_infoline("elm_genlist_item_disabled_set() failed in positive test case");
tet_result(TET_FAIL);
{
Elm_Genlist_Item *item = NULL;
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_disabled_set(NULL, EINA_FALSE);
-
+
tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
Elm_Genlist_Item *item = NULL;
Eina_Bool ret = EINA_FALSE;
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_display_only_set(item, EINA_TRUE);
ret = elm_genlist_item_display_only_get(item);
-
+
if (!ret) {
tet_infoline("elm_genlist_item_display_only_set() failed in positive test case");
tet_result(TET_FAIL);
{
Elm_Genlist_Item *item = NULL;
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_display_only_set(NULL, EINA_FALSE);
-
+
tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_item_expanded_get_func_01(void)
{
- Elm_Genlist_Item *item = NULL;
- Eina_Bool ret = EINA_FALSE;
+ Elm_Genlist_Item *item = NULL;
+ Eina_Bool ret = EINA_FALSE;
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_expanded_set(item, 1);
ret = elm_genlist_item_expanded_get(item);
-
+
if (!ret) {
tet_infoline("elm_genlist_item_expanded_get() failed in positive test case");
tet_result(TET_FAIL);
*/
static void utc_UIFW_elm_genlist_item_expanded_get_func_02(void)
{
- Elm_Genlist_Item *item = NULL;
- Eina_Bool ret = EINA_FALSE;
+ Elm_Genlist_Item *item = NULL;
+ Eina_Bool ret = EINA_FALSE;
+
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
-
ret = elm_genlist_item_expanded_get(NULL);
-
+
if (ret) {
tet_infoline("elm_genlist_item_expanded_get() failed in negative test case");
tet_result(TET_FAIL);
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_item_expanded_set_func_01(void)
{
- Elm_Genlist_Item *item = NULL;
+ Elm_Genlist_Item *item = NULL;
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_expanded_set(item, 1);
tet_result(TET_PASS);
*/
static void utc_UIFW_elm_genlist_item_expanded_set_func_02(void)
{
- Elm_Genlist_Item *item = NULL;
+ Elm_Genlist_Item *item = NULL;
+
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
-
elm_genlist_item_expanded_set(NULL, 1);
tet_result(TET_PASS);
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
Elm_Genlist_Item *item = NULL;
Evas_Object *ret = NULL;
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
ret = elm_genlist_item_genlist_get(item);
if (!ret) {
Elm_Genlist_Item *item = NULL;
Evas_Object *ret = NULL;
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
ret = elm_genlist_item_genlist_get(NULL);
if (ret) {
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_item_insert_after_func_01(void)
{
- Elm_Genlist_Item *item = NULL, *result_item = NULL;
+ Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
-
result_item = elm_genlist_item_insert_after(genlist, &itc, (void *) 0, NULL, item,
ELM_GENLIST_ITEM_NONE, NULL, NULL);
*/
static void utc_UIFW_elm_genlist_item_insert_after_func_02(void)
{
- Elm_Genlist_Item *item = NULL, *result_item = NULL;
+ Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
-
- result_item = elm_genlist_item_insert_after(NULL, &itc, (void *) 0, NULL, NULL,
+ result_item = elm_genlist_item_insert_after(NULL, &itc, (void *) 0, NULL, item,
ELM_GENLIST_ITEM_NONE, NULL, NULL);
if (result_item) {
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_item_insert_before_func_01(void)
{
- Elm_Genlist_Item *item = NULL, *result_item = NULL;
+ Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
-
result_item = elm_genlist_item_insert_before(genlist, &itc, (void *) 0, NULL, item,
ELM_GENLIST_ITEM_NONE, NULL, NULL);
*/
static void utc_UIFW_elm_genlist_item_insert_before_func_02(void)
{
- Elm_Genlist_Item *item = NULL, *result_item = NULL;
+ Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
-
result_item = elm_genlist_item_insert_before(NULL, &itc, (void *) 0, NULL, NULL,
ELM_GENLIST_ITEM_NONE, NULL, NULL);
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_item_next_get_func_01(void)
{
- Elm_Genlist_Item *it = NULL, *ret = NULL;
-
- it = elm_genlist_first_item_get(genlist);
- ret = elm_genlist_item_next_get(it);
+ Elm_Genlist_Item *it = NULL, *ret = NULL;
+
+ it = elm_genlist_first_item_get(genlist);
+ ret = elm_genlist_item_next_get(it);
if (!ret) {
tet_infoline("elm_genlist_first_item_get() failed in positive test case");
*/
static void utc_UIFW_elm_genlist_item_next_get_func_02(void)
{
- Elm_Genlist_Item *it = NULL, *ret = NULL;
-
- it = elm_genlist_first_item_get(genlist);
- ret = elm_genlist_item_next_get(NULL);
+ Elm_Genlist_Item *it = NULL, *ret = NULL;
+
+ it = elm_genlist_first_item_get(genlist);
+ ret = elm_genlist_item_next_get(NULL);
if (ret) {
tet_infoline("elm_genlist_item_next_get() failed in negative test case");
tet_result(TET_FAIL);
return;
}
- tet_result(TET_PASS);
+ tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_item_parent_get_func_01(void)
{
- Elm_Genlist_Item *item = NULL, *ret = NULL;
+ Elm_Genlist_Item *item = NULL, *ret = NULL;
- item = elm_genlist_last_item_get(genlist);
+ item = elm_genlist_last_item_get(genlist);
ret = elm_genlist_item_parent_get(item);
tet_result(TET_PASS);
*/
static void utc_UIFW_elm_genlist_item_parent_get_func_02(void)
{
- Elm_Genlist_Item *ret = NULL;
+ Elm_Genlist_Item *ret = NULL;
ret = elm_genlist_item_parent_get(NULL);
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_item_prepend_func_01(void)
{
- Elm_Genlist_Item *item = NULL;
+ Elm_Genlist_Item *item = NULL;
item = elm_genlist_item_prepend(genlist, &itc, (void *) 0, NULL,
ELM_GENLIST_ITEM_NONE, NULL, NULL);
*/
static void utc_UIFW_elm_genlist_item_prepend_func_02(void)
{
- Elm_Genlist_Item *item = NULL;
+ Elm_Genlist_Item *item = NULL;
item = elm_genlist_item_prepend(NULL, &itc, (void *) 0, NULL,
ELM_GENLIST_ITEM_NONE, NULL, NULL);
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_item_prev_get_func_01(void)
{
- Elm_Genlist_Item *it = NULL, *ret = NULL;
-
- it = elm_genlist_last_item_get(genlist);
- ret = elm_genlist_item_prev_get(it);
+ Elm_Genlist_Item *it = NULL, *ret = NULL;
+
+ it = elm_genlist_last_item_get(genlist);
+ ret = elm_genlist_item_prev_get(it);
if (!ret) {
tet_infoline("elm_genlist_first_item_get() failed in positive test case");
*/
static void utc_UIFW_elm_genlist_item_prev_get_func_02(void)
{
- Elm_Genlist_Item *it = NULL, *ret = NULL;
-
- it = elm_genlist_last_item_get(genlist);
- ret = elm_genlist_item_prev_get(NULL);
+ Elm_Genlist_Item *it = NULL, *ret = NULL;
+
+ it = elm_genlist_last_item_get(genlist);
+ ret = elm_genlist_item_prev_get(NULL);
if (ret) {
tet_infoline("elm_genlist_item_prev_get() failed in negative test case");
tet_result(TET_FAIL);
return;
}
- tet_result(TET_PASS);
+ tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
}
-static Elm_Genlist_Edit_Class ec;
-
/**
* @brief Positive test case of elm_genlist_item_rename_mode_set()
*/
{
Elm_Genlist_Item *it = NULL;
- elm_genlist_edit_mode_set(genlist, ELM_GENLIST_EDIT_MODE_REORDER | ELM_GENLIST_EDIT_MODE_SELECT, &ec);
it = elm_genlist_item_append(genlist, &itc, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_rename_mode_set(it, EINA_TRUE);
tet_result(TET_PASS);
*/
static void utc_UIFW_elm_genlist_item_rename_mode_set_func_02(void)
{
- elm_genlist_edit_mode_set(genlist, ELM_GENLIST_EDIT_MODE_REORDER | ELM_GENLIST_EDIT_MODE_SELECT, &ec);
elm_genlist_item_rename_mode_set(NULL, EINA_FALSE);
tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_item_selected_get_func_01(void)
{
- Elm_Genlist_Item *item = NULL;
- Eina_Bool ret = EINA_FALSE;
+ Elm_Genlist_Item *item = NULL;
+ Eina_Bool ret = EINA_FALSE;
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_selected_set(item, 1);
ret = elm_genlist_item_selected_get(item);
-
+
if (!ret) {
tet_infoline("elm_genlist_item_selected_get() failed in positive test case");
tet_result(TET_FAIL);
*/
static void utc_UIFW_elm_genlist_item_selected_get_func_02(void)
{
- Elm_Genlist_Item *item = NULL;
- Eina_Bool ret = EINA_FALSE;
+ Elm_Genlist_Item *item = NULL;
+ Eina_Bool ret = EINA_FALSE;
+
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
-
ret = elm_genlist_item_selected_get(NULL);
-
+
if (ret) {
tet_infoline("elm_genlist_item_selected_get() failed in negative test case");
tet_result(TET_FAIL);
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{
Elm_Genlist_Item *item = NULL;
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_selected_set(item, EINA_TRUE);
tet_result(TET_PASS);
{
Elm_Genlist_Item *item = NULL;
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_selected_set(NULL, 1);
tet_result(TET_PASS);
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_item_subitems_clear_func_01(void)
{
- Elm_Genlist_Item *item = NULL;
+ Elm_Genlist_Item *item = NULL;
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_subitems_clear(item);
tet_result(TET_PASS);
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_last_item_get_func_01(void)
{
- Elm_Genlist_Item *item = NULL, *result_item = NULL;
+ Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
-
result_item = elm_genlist_last_item_get(genlist);
if (!result_item) {
*/
static void utc_UIFW_elm_genlist_last_item_get_func_02(void)
{
- Elm_Genlist_Item *item = NULL, *result_item = NULL;
+ Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+ item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+ ELM_GENLIST_ITEM_NONE, NULL, NULL);
- item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
- ELM_GENLIST_ITEM_NONE, NULL, NULL);
-
result_item = elm_genlist_last_item_get(NULL);
if (result_item) {
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{
double r = 0.0;
- r = elm_genlist_longpress_timeout_get(genlist);
+ r = elm_genlist_longpress_timeout_get(genlist);
if (!r) {
tet_infoline("elm_genlist_longpress_timeout_get() failed in positive test case");
{
double r = 0.0;
- r = elm_genlist_longpress_timeout_get(NULL);
+ r = elm_genlist_longpress_timeout_get(NULL);
if (r) {
tet_infoline("elm_genlist_longpress_timeout_get() failed in negative test case");
tet_result(TET_FAIL);
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
static void utc_UIFW_elm_genlist_multi_select_get_func_01(void)
{
Eina_Bool res = EINA_FALSE;
- res = elm_genlist_multi_select_get(genlist);
+ res = elm_genlist_multi_select_get(genlist);
if (!res) {
tet_infoline("elm_genlist_multi_select_get() failed in positive test case");
tet_result(TET_FAIL);
static void utc_UIFW_elm_genlist_multi_select_get_func_02(void)
{
Eina_Bool res = EINA_FALSE;
- res = elm_genlist_multi_select_get(NULL);
+ res = elm_genlist_multi_select_get(NULL);
if (res) {
tet_infoline("elm_genlist_multi_select_get() failed in negative test case");
tet_result(TET_FAIL);
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_multi_select_set_func_01(void)
{
- elm_genlist_multi_select_set(genlist, EINA_TRUE);
+ elm_genlist_multi_select_set(genlist, EINA_TRUE);
tet_result(TET_PASS);
}
*/
static void utc_UIFW_elm_genlist_multi_select_set_func_02(void)
{
- elm_genlist_multi_select_set(NULL, EINA_TRUE);
+ elm_genlist_multi_select_set(NULL, EINA_TRUE);
tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
Eina_Bool ret_mode = EINA_FALSE, my_mode = EINA_TRUE;
elm_genlist_no_select_mode_set(genlist, my_mode);
- ret_mode = elm_genlist_no_select_mode_get(genlist);
+ ret_mode = elm_genlist_no_select_mode_get(genlist);
if (ret_mode != my_mode) {
tet_infoline("elm_genlist_no_select_mode_get() failed in positive test case");
Eina_Bool ret_mode = EINA_FALSE, my_mode = EINA_TRUE;
elm_genlist_no_select_mode_set(genlist, my_mode);
- ret_mode = elm_genlist_no_select_mode_get(NULL);
+ ret_mode = elm_genlist_no_select_mode_get(NULL);
if (ret_mode == my_mode) {
tet_infoline("elm_genlist_no_select_mode_get() failed in negative test case");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
Eina_Bool ret_mode = EINA_FALSE, my_mode = EINA_TRUE;
elm_genlist_pinch_zoom_mode_set(genlist, my_mode);
- ret_mode = elm_genlist_pinch_zoom_mode_get(genlist);
+ ret_mode = elm_genlist_pinch_zoom_mode_get(genlist);
//TODO ::: bug!!! fix this!!!
/*
- if (ret_mode != my_mode) {
- tet_infoline("elm_genlist_pinch_zoom_mode_get() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- */
+ if (ret_mode != my_mode) {
+ tet_infoline("elm_genlist_pinch_zoom_mode_get() failed in positive test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ */
tet_result(TET_PASS);
}
Eina_Bool ret_mode = EINA_FALSE, my_mode = EINA_TRUE;
elm_genlist_pinch_zoom_mode_set(genlist, my_mode);
- ret_mode = elm_genlist_pinch_zoom_mode_get(NULL);
-
+ ret_mode = elm_genlist_pinch_zoom_mode_get(NULL);
+
if (ret_mode == my_mode) {
tet_infoline("elm_genlist_pinch_zoom_mode_get() failed in negative test case");
tet_result(TET_FAIL);
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_pinch_zoom_mode_set_func_01(void)
{
- elm_genlist_pinch_zoom_mode_set(genlist, EINA_TRUE);
- tet_result(TET_PASS);
+ elm_genlist_pinch_zoom_mode_set(genlist, EINA_TRUE);
+ tet_result(TET_PASS);
}
/**
*/
static void utc_UIFW_elm_genlist_pinch_zoom_mode_set_func_02(void)
{
- elm_genlist_pinch_zoom_mode_set(NULL, EINA_TRUE);
- tet_result(TET_PASS);
+ elm_genlist_pinch_zoom_mode_set(NULL, EINA_TRUE);
+ tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_pinch_zoom_set_func_01(void)
{
- elm_genlist_pinch_zoom_set(genlist, EINA_TRUE);
+ elm_genlist_pinch_zoom_set(genlist, EINA_TRUE);
tet_result(TET_PASS);
}
*/
static void utc_UIFW_elm_genlist_pinch_zoom_set_func_02(void)
{
- elm_genlist_pinch_zoom_set(NULL, EINA_TRUE);
+ elm_genlist_pinch_zoom_set(NULL, EINA_TRUE);
tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_realized_items_get_func_01(void)
{
- Eina_List *ret = NULL;
-
- ret = elm_genlist_realized_items_get(genlist);
+ Eina_List *ret = NULL;
- tet_result(TET_PASS);
+ ret = elm_genlist_realized_items_get(genlist);
+
+ tet_result(TET_PASS);
}
/**
*/
static void utc_UIFW_elm_genlist_realized_items_get_func_02(void)
{
- Eina_List *ret = NULL;
-
- ret = elm_genlist_realized_items_get(NULL);
+ Eina_List *ret = NULL;
+
+ ret = elm_genlist_realized_items_get(NULL);
if (ret) {
tet_infoline("elm_genlist_realized_items_get() failed in negative test case");
tet_result(TET_FAIL);
return;
}
- tet_result(TET_PASS);
+ tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
for (index = 0; index < 5; index++) {
item = elm_genlist_item_append(genlist, &itc, (void *) index, NULL,
ELM_GENLIST_ITEM_NONE, NULL, NULL);
- elm_genlist_item_selected_set(item, 1);
+ elm_genlist_item_selected_set(item, 1);
}
}
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_selected_item_get_func_01(void)
{
- Elm_Genlist_Item *ret = NULL;
-
- ret = elm_genlist_selected_item_get(genlist);
+ Elm_Genlist_Item *ret = NULL;
+
+ ret = elm_genlist_selected_item_get(genlist);
if (!ret) {
- tet_infoline("elm_genlist_selected_item_get() failed in positive test case");
+ tet_infoline("elm_genlist_selected_item_get() failed in positive test case");
tet_result(TET_FAIL);
return;
}
- tet_result(TET_PASS);
+ tet_result(TET_PASS);
}
/**
*/
static void utc_UIFW_elm_genlist_selected_item_get_func_02(void)
{
- Elm_Genlist_Item *ret = NULL;
-
- ret = elm_genlist_selected_item_get(NULL);
+ Elm_Genlist_Item *ret = NULL;
+
+ ret = elm_genlist_selected_item_get(NULL);
if (ret) {
tet_infoline("elm_genlist_selected_item_get() failed in negative test case");
tet_result(TET_FAIL);
return;
}
- tet_result(TET_PASS);
+ tet_result(TET_PASS);
}
{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
for (index = 0; index < 5; index++) {
item = elm_genlist_item_append(genlist, &itc, (void *) index, NULL,
ELM_GENLIST_ITEM_NONE, NULL, NULL);
- elm_genlist_item_selected_set(item, 1);
+ elm_genlist_item_selected_set(item, 1);
}
}
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_selected_items_get_func_01(void)
{
- const Eina_List *ret = NULL;
-
- ret = elm_genlist_selected_items_get(genlist);
+ const Eina_List *ret = NULL;
+
+ ret = elm_genlist_selected_items_get(genlist);
if (!ret) {
- tet_infoline("elm_genlist_selected_items_get() failed in positive test case");
+ tet_infoline("elm_genlist_selected_items_get() failed in positive test case");
tet_result(TET_FAIL);
return;
}
- tet_result(TET_PASS);
+ tet_result(TET_PASS);
}
/**
*/
static void utc_UIFW_elm_genlist_selected_items_get_func_02(void)
{
- const Eina_List *ret = NULL;
-
- ret = elm_genlist_selected_items_get(NULL);
+ const Eina_List *ret = NULL;
+
+ ret = elm_genlist_selected_items_get(NULL);
if (ret) {
tet_infoline("elm_genlist_selected_items_get() failed in negative test case");
tet_result(TET_FAIL);
return;
}
- tet_result(TET_PASS);
+ tet_result(TET_PASS);
}
elm_button_label_set(button, "next");
elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
- Evas_Object *btn = elm_navigationbar_title_button_get(navibar, content, ELM_NAVIGATIONBAR_FUNCTION_BUTTON1);
+ Evas_Object *btn = elm_navigationbar_title_button_get(NULL, content, ELM_NAVIGATIONBAR_FUNCTION_BUTTON1);
if (btn) {
tet_infoline("elm_navigationbar_title_button_get() failed in negative test case");
tet_result(TET_FAIL);
popup = elm_popup_add(NULL);
- if (!popup) {
+ if (popup) {
tet_infoline("elm_popup_add() with parent as NULL failed in positive test case");
tet_result(TET_FAIL);
return;
Evas_Object *popup = NULL;
popup = elm_popup_with_buttons_add(NULL, "title", "this is text", 1, "ok", ELM_POPUP_RESPONSE_OK, NULL);
- if (!popup) {
+ if (popup) {
tet_infoline("elm_popup_with_buttons_add() parent as NULL failed in positive test case");
tet_result(TET_FAIL);
return;
-PKGS = elementary
+PKGS = elementary evas
LDFLAGS = `pkg-config --libs $(PKGS)`
LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
all: $(TARGETS)
-$(TARGET): %: %.c
- $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
+$(TARGETS): %: %.c
+ $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
clean:
rm -f $(TARGETS)
:include:/elm_ts/label/tslist
:include:/elm_ts/searchbar/tslist
:include:/elm_ts/datefield/tslist
- :include:/elm_ts/bubble/tslist
:include:/elm_ts/navigationbar/tslist
:include:/elm_ts/calendar/tslist
:include:/elm_ts/check/tslist
:include:/elm_ts/conformant/tslist
# below will be deprecated.
#:include:/elm_ts/stackedicon/tslist
+#:include:/elm_ts/bubble/tslist
#yhkim
ch
:include:/elm_ts/label/tslist
:include:/elm_ts/searchbar/tslist
:include:/elm_ts/datefield/tslist
- :include:/elm_ts/bubble/tslist
:include:/elm_ts/navigationbar/tslist
:include:/elm_ts/calendar/tslist
:include:/elm_ts/check/tslist
:include:/elm_ts/conformant/tslist
# below will be deprecated.
#:include:/elm_ts/stackedicon/tslist
+#:include:/elm_ts/bubble/tslist
#yhkim
ch
static void _show_region_hook(void *data,
Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
-static void _item_unrealize(Elm_Genlist_Item *it);
+static void _item_unrealize(Elm_Genlist_Item *it, Eina_Bool calc);
static void _item_block_unrealize(Item_Block *itb);
static void _calc_job(void *data);
static void _on_focus_hook(void *data,
it->wd->walking -= it->walking;
if (it->wd->show_item == it) it->wd->show_item = NULL;
if (it->selected) it->wd->selected = eina_list_remove(it->wd->selected, it);
- if (it->realized) _item_unrealize(it);
+ if (it->realized) _item_unrealize(it, EINA_FALSE);
if (it->effect_item_realized) _effect_item_unrealize(it);
if (it->block) _item_block_del(it);
if ((!it->delete_me) && (it->itc->func.del))
{
if (it->want_unrealize)
{
- _item_unrealize(it);
+ _item_unrealize(it, EINA_FALSE);
if (it->block->want_unrealize)
_item_block_unrealize(it->block);
}
it->want_unrealize = EINA_FALSE;
if (itc) _item_cache_free(itc);
- evas_object_smart_callback_call(it->base.widget, "realized", it);
+ if (!calc) evas_object_smart_callback_call(it->base.widget, "realized", it);
if ((!calc) && (it->wd->edit_mode) && (it->flags != ELM_GENLIST_ITEM_GROUP))
{
if (it->itc->edit_item_style )
}
static void
-_item_unrealize(Elm_Genlist_Item *it)
+_item_unrealize(Elm_Genlist_Item *it, Eina_Bool calc)
{
Evas_Object *icon;
if (!it->realized) return;
if (it->wd->reorder_it && it->wd->reorder_it == it) return;
- evas_object_smart_callback_call(it->base.widget, "unrealized", it);
+ if (!calc) evas_object_smart_callback_call(it->base.widget, "unrealized", it);
if (it->long_timer)
{
ecore_timer_del(it->long_timer);
if (changed)
{
_item_realize(it, in, EINA_TRUE);
- _item_unrealize(it);
+ _item_unrealize(it, EINA_TRUE);
}
}
else
{
_item_realize(it, in, EINA_TRUE);
- if (!it->wd->contracting) _item_unrealize(it);
+ if (!it->wd->contracting) _item_unrealize(it, EINA_TRUE);
}
}
else
it->want_unrealize = EINA_TRUE;
}
else
- if (!it->wd->contracting) _item_unrealize(it);
+ if (!it->wd->contracting) _item_unrealize(it, EINA_FALSE);
}
}
if (!dragging)
}
else
{
- if (!it->dragging) _item_unrealize(it);
+ if (!it->dragging) _item_unrealize(it, EINA_FALSE);
}
}
in++;
else if (!git->want_realize && git->realized)
{
if (!git->dragging)
- _item_unrealize(git);
+ _item_unrealize(git, EINA_FALSE);
}
}
}
it->updateme = EINA_FALSE;
if (it->realized)
{
- _item_unrealize(it);
+ _item_unrealize(it, EINA_FALSE);
_item_realize(it, num, 0);
position = 1;
}
else
{
_item_realize(it, num, 1);
- _item_unrealize(it);
+ _item_unrealize(it, EINA_TRUE);
}
if ((it->minw != itminw) || (it->minh != itminh))
recalc = 1;
if (it->flags & ELM_GENLIST_ITEM_GROUP)
it->wd->group_items = eina_list_remove(it->wd->group_items, it);
elm_widget_item_pre_notify_del(it);
- if (it->realized) _item_unrealize(it);
+ if (it->realized) _item_unrealize(it, EINA_FALSE);
if (((wd->clear_me) || (!it->delete_me)) && (it->itc->func.del))
it->itc->func.del((void *)it->base.data, it->base.widget);
if (it->long_timer) ecore_timer_del(it->long_timer);
it);
if (it->block)
{
- if (it->realized) _item_unrealize(it);
+ if (it->realized) _item_unrealize(it, EINA_FALSE);
it->block->changed = EINA_TRUE;
if (it->wd->calc_job) ecore_job_del(it->wd->calc_job);
it->wd->calc_job = ecore_job_add(_calc_job, it->wd);
if (renamed)
{
- _item_unrealize(it);
+ _item_unrealize(it, EINA_FALSE);
it->renamed = EINA_TRUE;
it->wd->rename_it = it;
it->nocache = EINA_TRUE;