gengrid, selectioninfo, pagecontrol TC added
authorjh0506.yun <jh0506.yun@samsung.com>
Wed, 8 Sep 2010 04:14:01 +0000 (13:14 +0900)
committerjh0506.yun <jh0506.yun@samsung.com>
Wed, 8 Sep 2010 04:14:01 +0000 (13:14 +0900)
29 files changed:
TC/elm_ts/gengrid/Makefile [new file with mode: 0755]
TC/elm_ts/gengrid/tslist [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_add_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_align_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_always_select_mode_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_bounce_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_append_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_data_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_disabled_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_object_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_pos_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_selected_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_size_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_multi_select_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_no_select_mode_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_item_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_items_get_func.c [new file with mode: 0644]
TC/elm_ts/pagecontrol/Makefile [new file with mode: 0755]
TC/elm_ts/pagecontrol/tslist [new file with mode: 0644]
TC/elm_ts/pagecontrol/utc_UIFW_elm_page_control_add_func.c [new file with mode: 0644]
TC/elm_ts/pagecontrol/utc_UIFW_elm_page_control_page_id_get_func.c [new file with mode: 0644]
TC/elm_ts/selectioninfo/Makefile [new file with mode: 0755]
TC/elm_ts/selectioninfo/tslist [new file with mode: 0644]
TC/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_add_func.c [new file with mode: 0644]
TC/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_checked_count_get_func.c [new file with mode: 0644]
TC/tet_scen_arm
TC/tet_scen_i686
src/lib/Elementary.h.in
src/lib/elm_gengrid.c

diff --git a/TC/elm_ts/gengrid/Makefile b/TC/elm_ts/gengrid/Makefile
new file mode 100755 (executable)
index 0000000..53feb79
--- /dev/null
@@ -0,0 +1,36 @@
+CC ?= gcc
+
+TARGETS = utc_UIFW_elm_gengrid_add_func \
+         utc_UIFW_elm_gengrid_item_size_get_func \
+         utc_UIFW_elm_gengrid_align_get_func \
+         utc_UIFW_elm_gengrid_item_append_func \
+         utc_UIFW_elm_gengrid_item_object_get_func \
+         utc_UIFW_elm_gengrid_item_data_get_func \
+         utc_UIFW_elm_gengrid_item_pos_get_func \
+         utc_UIFW_elm_gengrid_multi_select_get_func \
+         utc_UIFW_elm_gengrid_selected_item_get_func \
+         utc_UIFW_elm_gengrid_selected_items_get_func \
+         utc_UIFW_elm_gengrid_item_selected_get_func \
+         utc_UIFW_elm_gengrid_item_disabled_get_func \
+         utc_UIFW_elm_gengrid_always_select_mode_get_func \
+         utc_UIFW_elm_gengrid_no_select_mode_get_func \
+         utc_UIFW_elm_gengrid_bounce_get_func
+
+PKGS = elementary
+
+LDFLAGS = `pkg-config --libs $(PKGS)`
+LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
+LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s
+LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s
+
+CFLAGS = -I. `pkg-config --cflags $(PKGS)`
+CFLAGS += -I$(TET_ROOT)/inc/tet3
+CFLAGS += -Wall
+
+all: $(TARGETS)
+
+$(TARGET): %: %.c
+       $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
+
+clean:
+       rm -f $(TARGETS)
diff --git a/TC/elm_ts/gengrid/tslist b/TC/elm_ts/gengrid/tslist
new file mode 100644 (file)
index 0000000..a06a6dd
--- /dev/null
@@ -0,0 +1,15 @@
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_add_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_size_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_align_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_append_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_object_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_data_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_pos_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_multi_select_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_item_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_items_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_selected_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_disabled_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_always_select_mode_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_no_select_mode_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_bounce_get_func
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_add_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_add_func.c
new file mode 100644 (file)
index 0000000..5d5eb25
--- /dev/null
@@ -0,0 +1,140 @@
+#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, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_gengrid_add_func_01(void);
+static void utc_UIFW_elm_gengrid_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_add_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Selection Info", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Selection Info");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_add_func_01(void)
+{
+       test_eo = NULL;
+       test_eo = elm_gengrid_add(test_win);
+       TET_CHECK_PASS(NULL, test_eo);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_add");
+}
+
+static void utc_UIFW_elm_gengrid_add_func_02(void)
+{
+       test_eo = NULL;
+       test_eo = elm_gengrid_add(NULL);
+       TET_CHECK_FAIL(NULL, test_eo);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_add");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_align_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_align_get_func.c
new file mode 100644 (file)
index 0000000..cc3adb1
--- /dev/null
@@ -0,0 +1,145 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_gengrid_align_get_func_01(void);
+static void utc_UIFW_elm_gengrid_align_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_align_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_align_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       elm_gengrid_align_set(test_eo, 0.5, 0.5);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_align_get_func_01(void)
+{
+       double x, y;
+       x = -1; y = -1;
+       elm_gengrid_align_get(test_eo, &x, &y);
+       TET_CHECK_PASS(-1, x);
+       TET_CHECK_PASS(-1, y);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_align_get");
+}
+
+static void utc_UIFW_elm_gengrid_align_get_func_02(void)
+{
+       double x, y;
+       x = -1; y = -1;
+       elm_gengrid_align_get(NULL, &x, &y);
+       TET_CHECK_FAIL(-1, x);
+       TET_CHECK_FAIL(-1, y);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_align_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_always_select_mode_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_always_select_mode_get_func.c
new file mode 100644 (file)
index 0000000..6975a73
--- /dev/null
@@ -0,0 +1,146 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_gengrid_always_select_mode_get_func_01(void);
+static void utc_UIFW_elm_gengrid_always_select_mode_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_always_select_mode_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_always_select_mode_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+
+       elm_gengrid_always_select_mode_set(test_eo, EINA_TRUE);
+               
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_always_select_mode_get_func_01(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+       
+       flag = elm_gengrid_always_select_mode_get(test_eo);
+       
+       TET_CHECK_PASS(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_always_select_mode_get");
+}
+
+static void utc_UIFW_elm_gengrid_always_select_mode_get_func_02(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+
+       flag = elm_gengrid_always_select_mode_get(NULL);
+       
+       TET_CHECK_FAIL(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_always_select_mode_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_bounce_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_bounce_get_func.c
new file mode 100644 (file)
index 0000000..89b682c
--- /dev/null
@@ -0,0 +1,145 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_gengrid_bounce_get_func_01(void);
+static void utc_UIFW_elm_gengrid_bounce_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_bounce_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_bounce_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       elm_gengrid_bounce_set(test_eo, EINA_TRUE, EINA_TRUE);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_bounce_get_func_01(void)
+{
+       Eina_Bool h, v;
+       h = EINA_FALSE; v = EINA_FALSE;
+       elm_gengrid_bounce_get(test_eo, &h, &v);
+       TET_CHECK_PASS(EINA_FALSE, h);
+       TET_CHECK_PASS(EINA_FALSE, v);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_bounce_get");
+}
+
+static void utc_UIFW_elm_gengrid_bounce_get_func_02(void)
+{
+       Eina_Bool h, v;
+       h = EINA_FALSE; v = EINA_FALSE;
+       elm_gengrid_bounce_get(NULL, &h, &v);
+       TET_CHECK_FAIL(EINA_FALSE, h);
+       TET_CHECK_FAIL(EINA_FALSE, v);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_bounce_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_append_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_append_func.c
new file mode 100644 (file)
index 0000000..877dc7e
--- /dev/null
@@ -0,0 +1,146 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_gengrid_item_append_func_01(void);
+static void utc_UIFW_elm_gengrid_item_append_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_item_append_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_item_append_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       gic.item_style = "default_grid";
+       gic.func.label_get = NULL;
+       gic.func.icon_get = NULL;
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_item_append_func_01(void)
+{
+       Elm_Gengrid_Item *item = NULL;
+       
+       item = elm_gengrid_item_append(test_eo, &gic, NULL, NULL, NULL);
+       TET_CHECK_PASS(NULL, item);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_item_append");
+}
+
+static void utc_UIFW_elm_gengrid_item_append_func_02(void)
+{
+       Elm_Gengrid_Item *item = NULL;
+
+       item = elm_gengrid_item_append(NULL, NULL, NULL, NULL, NULL);
+       TET_CHECK_FAIL(NULL, item);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_item_append");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_data_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_data_get_func.c
new file mode 100644 (file)
index 0000000..2dda48a
--- /dev/null
@@ -0,0 +1,151 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+Elm_Gengrid_Item *item;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_gengrid_item_data_get_func_01(void);
+static void utc_UIFW_elm_gengrid_item_data_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_item_data_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_item_data_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       gic.item_style = "default_grid";
+       gic.func.label_get = NULL;
+       gic.func.icon_get = NULL;
+       
+       item = elm_gengrid_item_append(test_eo, &gic, test_bg, NULL, NULL);
+               
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_item_data_get_func_01(void)
+{
+       void *data = NULL;
+       
+       data = elm_gengrid_item_data_get(item);
+       
+       TET_CHECK_PASS(NULL, data);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_item_data_get");
+}
+
+static void utc_UIFW_elm_gengrid_item_data_get_func_02(void)
+{
+       void *data = NULL;
+
+       data = elm_gengrid_item_data_get(NULL);
+       
+       TET_CHECK_FAIL(NULL, data);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_item_data_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_disabled_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_disabled_get_func.c
new file mode 100644 (file)
index 0000000..490403a
--- /dev/null
@@ -0,0 +1,153 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+Elm_Gengrid_Item *item;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_gengrid_item_disabled_get_func_01(void);
+static void utc_UIFW_elm_gengrid_item_disabled_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_item_disabled_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_item_disabled_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+
+       gic.item_style = "default_grid";
+        gic.func.label_get = NULL;
+        gic.func.icon_get = NULL;
+
+        item = elm_gengrid_item_append(test_eo, &gic, NULL, NULL, NULL);
+        elm_gengrid_item_disabled_set(item, EINA_TRUE);        
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_item_disabled_get_func_01(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+       
+       flag = elm_gengrid_item_disabled_get(item);
+       
+       TET_CHECK_PASS(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_item_disabled_get");
+}
+
+static void utc_UIFW_elm_gengrid_item_disabled_get_func_02(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+
+       flag = elm_gengrid_item_disabled_get(NULL);
+       
+       TET_CHECK_FAIL(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_item_disabled_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_object_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_object_get_func.c
new file mode 100644 (file)
index 0000000..ea23ac0
--- /dev/null
@@ -0,0 +1,152 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+Elm_Gengrid_Item *item;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_gengrid_item_object_get_func_01(void);
+static void utc_UIFW_elm_gengrid_item_object_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_item_object_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_item_object_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       
+       gic.item_style = "default_gridtext";
+       gic.func.label_get = grid_label_get;
+       gic.func.icon_get = grid_icon_get;
+       
+       item = elm_gengrid_item_append(test_eo, &gic, NULL, NULL, NULL);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_item_object_get_func_01(void)
+{
+       const Evas_Object *obj = NULL;
+       
+       obj = elm_gengrid_item_object_get(item);
+       
+       TET_CHECK_FAIL(NULL, obj);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_item_object_get");
+}
+
+static void utc_UIFW_elm_gengrid_item_object_get_func_02(void)
+{
+       const Evas_Object *obj = NULL;
+       
+       obj = elm_gengrid_item_object_get(NULL);
+       
+       TET_CHECK_FAIL(NULL, obj);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_item_object_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_pos_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_pos_get_func.c
new file mode 100644 (file)
index 0000000..2619660
--- /dev/null
@@ -0,0 +1,155 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+Elm_Gengrid_Item *item;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_gengrid_item_pos_get_func_01(void);
+static void utc_UIFW_elm_gengrid_item_pos_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_item_pos_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_item_pos_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       gic.item_style = "default_grid";
+       gic.func.label_get = NULL;
+       gic.func.icon_get = NULL;
+       
+       item = elm_gengrid_item_append(test_eo, &gic, test_bg, NULL, NULL);
+               
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_item_pos_get_func_01(void)
+{
+       unsigned int x, y;
+       x = -1; y = -1;
+       
+       elm_gengrid_item_pos_get(item, &x, &y);
+       
+       TET_CHECK_PASS(-1, x);
+       TET_CHECK_PASS(-1, y);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_item_pos_get");
+}
+
+static void utc_UIFW_elm_gengrid_item_pos_get_func_02(void)
+{
+       unsigned int x, y;
+       x = -1; y = -1;
+       
+       elm_gengrid_item_pos_get(NULL, &x, &y);
+       
+       TET_CHECK_FAIL(-1, x);
+       TET_CHECK_FAIL(-1, y);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_item_pos_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_selected_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_selected_get_func.c
new file mode 100644 (file)
index 0000000..d30e0de
--- /dev/null
@@ -0,0 +1,153 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+Elm_Gengrid_Item *item;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_gengrid_item_selected_get_func_01(void);
+static void utc_UIFW_elm_gengrid_item_selected_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_item_selected_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_item_selected_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+
+       gic.item_style = "default_grid";
+        gic.func.label_get = NULL;
+        gic.func.icon_get = NULL;
+
+        item = elm_gengrid_item_append(test_eo, &gic, NULL, NULL, NULL);
+        elm_gengrid_item_selected_set(item, EINA_TRUE);        
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_item_selected_get_func_01(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+       
+       flag = elm_gengrid_item_selected_get(item);
+       
+       TET_CHECK_PASS(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_item_selected_get");
+}
+
+static void utc_UIFW_elm_gengrid_item_selected_get_func_02(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+
+       flag = elm_gengrid_item_selected_get(NULL);
+       
+       TET_CHECK_FAIL(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_item_selected_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_size_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_size_get_func.c
new file mode 100644 (file)
index 0000000..899a204
--- /dev/null
@@ -0,0 +1,145 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_gengrid_item_size_get_func_01(void);
+static void utc_UIFW_elm_gengrid_item_size_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_item_size_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_item_size_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       elm_gengrid_item_size_set(test_eo, 120, 120);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_item_size_get_func_01(void)
+{
+       Evas_Coord w, h;
+       w = -1; h = -1;
+       elm_gengrid_item_size_get(test_eo, &w, &h);
+       TET_CHECK_PASS(-1, w);
+       TET_CHECK_PASS(-1, h);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_item_size_get");
+}
+
+static void utc_UIFW_elm_gengrid_item_size_get_func_02(void)
+{
+       Evas_Coord w, h;
+       w = -1; h = -1;
+       elm_gengrid_item_size_get(NULL, NULL, NULL);
+       TET_CHECK_FAIL(-1, w);
+       TET_CHECK_FAIL(-1, h);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_item_size_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_multi_select_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_multi_select_get_func.c
new file mode 100644 (file)
index 0000000..14b2a46
--- /dev/null
@@ -0,0 +1,146 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_gengrid_multi_select_get_func_01(void);
+static void utc_UIFW_elm_gengrid_multi_select_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_multi_select_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_multi_select_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+
+       elm_gengrid_multi_select_set(test_eo, EINA_TRUE);
+               
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_multi_select_get_func_01(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+       
+       flag = elm_gengrid_multi_select_get(test_eo);
+       
+       TET_CHECK_PASS(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_multi_select_get");
+}
+
+static void utc_UIFW_elm_gengrid_multi_select_get_func_02(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+
+       flag = elm_gengrid_multi_select_get(NULL);
+       
+       TET_CHECK_FAIL(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_multi_select_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_no_select_mode_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_no_select_mode_get_func.c
new file mode 100644 (file)
index 0000000..d37d120
--- /dev/null
@@ -0,0 +1,146 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_gengrid_no_select_mode_get_func_01(void);
+static void utc_UIFW_elm_gengrid_no_select_mode_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_no_select_mode_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_no_select_mode_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+
+       elm_gengrid_no_select_mode_set(test_eo, EINA_TRUE);
+               
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_no_select_mode_get_func_01(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+       
+       flag = elm_gengrid_no_select_mode_get(test_eo);
+       
+       TET_CHECK_PASS(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_no_select_mode_get");
+}
+
+static void utc_UIFW_elm_gengrid_no_select_mode_get_func_02(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+
+       flag = elm_gengrid_no_select_mode_get(NULL);
+       
+       TET_CHECK_FAIL(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_no_select_mode_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_item_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_item_get_func.c
new file mode 100644 (file)
index 0000000..e0eff09
--- /dev/null
@@ -0,0 +1,152 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+Elm_Gengrid_Item *item;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_gengrid_selected_item_get_func_01(void);
+static void utc_UIFW_elm_gengrid_selected_item_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_selected_item_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_selected_item_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       gic.item_style = "default_grid";
+       gic.func.label_get = NULL;
+       gic.func.icon_get = NULL;
+       
+       item = elm_gengrid_item_append(test_eo, &gic, test_bg, NULL, NULL);
+       elm_gengrid_item_selected_set(item, EINA_TRUE);
+               
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_selected_item_get_func_01(void)
+{
+       Elm_Gengrid_Item *temp_item = NULL;
+       
+       temp_item = elm_gengrid_selected_item_get(test_eo);
+       
+       TET_CHECK_PASS(NULL, temp_item);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_selected_item_get");
+}
+
+static void utc_UIFW_elm_gengrid_selected_item_get_func_02(void)
+{
+       Elm_Gengrid_Item *temp_item = NULL;
+
+       temp_item = elm_gengrid_selected_item_get(NULL);
+       
+       TET_CHECK_FAIL(NULL, temp_item);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_selected_item_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_items_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_items_get_func.c
new file mode 100644 (file)
index 0000000..a44f0d6
--- /dev/null
@@ -0,0 +1,152 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+Elm_Gengrid_Item *item;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_gengrid_selected_items_get_func_01(void);
+static void utc_UIFW_elm_gengrid_selected_items_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_selected_items_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_selected_items_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       gic.item_style = "default_grid";
+       gic.func.label_get = NULL;
+       gic.func.icon_get = NULL;
+       
+       item = elm_gengrid_item_append(test_eo, &gic, test_bg, NULL, NULL);
+       elm_gengrid_item_selected_set(item, EINA_TRUE);
+               
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_selected_items_get_func_01(void)
+{
+       const Eina_List *list = NULL;
+       
+       list = elm_gengrid_selected_items_get(test_eo);
+       
+       TET_CHECK_PASS(NULL, list);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_selected_items_get");
+}
+
+static void utc_UIFW_elm_gengrid_selected_items_get_func_02(void)
+{
+       const Eina_List *list = NULL;
+
+       list = elm_gengrid_selected_items_get(NULL);
+       
+       TET_CHECK_FAIL(NULL, list);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_selected_items_get");
+}
diff --git a/TC/elm_ts/pagecontrol/Makefile b/TC/elm_ts/pagecontrol/Makefile
new file mode 100755 (executable)
index 0000000..8658b72
--- /dev/null
@@ -0,0 +1,23 @@
+CC ?= gcc
+
+TARGETS = utc_UIFW_elm_page_control_add_func \
+         utc_UIFW_elm_page_control_page_id_get_func
+
+PKGS = elementary
+
+LDFLAGS = `pkg-config --libs $(PKGS)`
+LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
+LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s
+LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s
+
+CFLAGS = -I. `pkg-config --cflags $(PKGS)`
+CFLAGS += -I$(TET_ROOT)/inc/tet3
+CFLAGS += -Wall
+
+all: $(TARGETS)
+
+$(TARGET): %: %.c
+       $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
+
+clean:
+       rm -f $(TARGETS)
diff --git a/TC/elm_ts/pagecontrol/tslist b/TC/elm_ts/pagecontrol/tslist
new file mode 100644 (file)
index 0000000..468a597
--- /dev/null
@@ -0,0 +1,2 @@
+/elm_ts/pagecontrol/utc_UIFW_elm_page_control_add_func
+/elm_ts/pagecontrol/utc_UIFW_elm_page_control_page_id_get_func
diff --git a/TC/elm_ts/pagecontrol/utc_UIFW_elm_page_control_add_func.c b/TC/elm_ts/pagecontrol/utc_UIFW_elm_page_control_add_func.c
new file mode 100644 (file)
index 0000000..46917a1
--- /dev/null
@@ -0,0 +1,140 @@
+#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, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_page_control_add_func_01(void);
+static void utc_UIFW_elm_page_control_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_page_control_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_page_control_add_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_page_control_add_func_01(void)
+{
+       test_eo = NULL;
+       test_eo = elm_page_control_add(test_win);
+       TET_CHECK_PASS(NULL, test_eo);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_page_control_add");
+}
+
+static void utc_UIFW_elm_page_control_add_func_02(void)
+{
+       test_eo = NULL;
+       test_eo = elm_page_control_add(NULL);
+       TET_CHECK_FAIL(NULL, test_eo);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_page_control_add");
+}
diff --git a/TC/elm_ts/pagecontrol/utc_UIFW_elm_page_control_page_id_get_func.c b/TC/elm_ts/pagecontrol/utc_UIFW_elm_page_control_page_id_get_func.c
new file mode 100644 (file)
index 0000000..9050ce3
--- /dev/null
@@ -0,0 +1,140 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_page_control_page_id_get_func_01(void);
+static void utc_UIFW_elm_page_control_page_id_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_page_control_page_id_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_page_control_page_id_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_page_control_add(test_win);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_page_control_page_id_get_func_01(void)
+{
+       int page_id = -1;
+       page_id = elm_page_control_page_id_get(test_eo);
+       TET_CHECK_PASS(-1, page_id);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_page_control_page_id_get");
+}
+
+static void utc_UIFW_elm_page_control_page_id_get_func_02(void)
+{
+       int page_id = -1;
+       page_id = elm_page_control_page_id_get(NULL);
+       TET_CHECK_FAIL(-1, page_id);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_page_control_page_id_get");
+}
diff --git a/TC/elm_ts/selectioninfo/Makefile b/TC/elm_ts/selectioninfo/Makefile
new file mode 100755 (executable)
index 0000000..4815fa6
--- /dev/null
@@ -0,0 +1,23 @@
+CC ?= gcc
+
+TARGETS = utc_UIFW_elm_selectioninfo_add_func \
+         utc_UIFW_elm_selectioninfo_checked_count_get_func
+
+PKGS = elementary
+
+LDFLAGS = `pkg-config --libs $(PKGS)`
+LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
+LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s
+LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s
+
+CFLAGS = -I. `pkg-config --cflags $(PKGS)`
+CFLAGS += -I$(TET_ROOT)/inc/tet3
+CFLAGS += -Wall
+
+all: $(TARGETS)
+
+$(TARGET): %: %.c
+       $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
+
+clean:
+       rm -f $(TARGETS)
diff --git a/TC/elm_ts/selectioninfo/tslist b/TC/elm_ts/selectioninfo/tslist
new file mode 100644 (file)
index 0000000..75366ad
--- /dev/null
@@ -0,0 +1,2 @@
+/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_add_func
+/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_checked_count_get_func
diff --git a/TC/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_add_func.c b/TC/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_add_func.c
new file mode 100644 (file)
index 0000000..8735490
--- /dev/null
@@ -0,0 +1,140 @@
+#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, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_selectioninfo_add_func_01(void);
+static void utc_UIFW_elm_selectioninfo_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_selectioninfo_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_selectioninfo_add_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Selection Info", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Selection Info");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_selectioninfo_add_func_01(void)
+{
+       test_eo = NULL;
+       test_eo = elm_selectioninfo_add(test_win);
+       TET_CHECK_PASS(NULL, test_eo);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_selectioninfo_add");
+}
+
+static void utc_UIFW_elm_selectioninfo_add_func_02(void)
+{
+       test_eo = NULL;
+       test_eo = elm_selectioninfo_add(NULL);
+       TET_CHECK_FAIL(NULL, test_eo);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_selectioninfo_add");
+}
diff --git a/TC/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_checked_count_get_func.c b/TC/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_checked_count_get_func.c
new file mode 100644 (file)
index 0000000..e1bf3a2
--- /dev/null
@@ -0,0 +1,147 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Eina_Bool state_pointer[10] = {0};
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(main_win);     
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_selectioninfo_checked_count_get_func_01(void);
+static void utc_UIFW_elm_selectioninfo_checked_count_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_selectioninfo_checked_count_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_selectioninfo_checked_count_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_selectioninfo_add(test_win);
+       
+       int i;
+       for (i = 0; i < 10 ; i++)
+               state_pointer[i] = EINA_FALSE;
+
+       elm_selectioninfo_check_state_set(test_eo, &state_pointer[0], 10);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_selectioninfo_checked_count_get_func_01(void)
+{
+       int checked_count = -1;
+       checked_count = elm_selectioninfo_checked_count_get(test_eo);
+       TET_CHECK_PASS(-1, checked_count);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_selectioninfo_checked_count_get");
+}
+
+static void utc_UIFW_elm_selectioninfo_checked_count_get_func_02(void)
+{
+       int checked_count = -1;
+       checked_count = elm_selectioninfo_checked_count_get(NULL);
+       TET_CHECK_FAIL(-1, checked_count);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_selectioninfo_checked_count_get");
+}
index 6f45dfc..0f8ad70 100755 (executable)
@@ -9,6 +9,9 @@ all
 elm
        :include:/elm_ts/imageslider/tslist
        :include:/elm_ts/colorpalette/tslist
+       :include:/elm_ts/gengrid/tslist
+        :include:/elm_ts/pagecontrol/tslist
+        :include:/elm_ts/selectioninfo/tslist
 
 
 #yhkim
index ddabbd5..3363750 100755 (executable)
@@ -9,15 +9,12 @@ all
 ##### Scenarios for the frameworks ######
 
 # Multimedia
-mediaplayer
-       :include:/multimedia-framework/Multimedia_M2_testscripts/player/tslist
-camcorder
-       :include:/multimedia-framework/Multimedia_M2_testscripts/camcorder/tslist
-sound
-       :include:/multimedia-framework/Multimedia_M2_testscripts/sound/tslist
-attrs
-       :include:/multimedia-framework/Multimedia_M2_testscripts/attrs/tslist
-
+elm
+        :include:/elm_ts/imageslider/tslist
+        :include:/elm_ts/colorpalette/tslist
+        :include:/elm_ts/gengrid/tslist
+        :include:/elm_ts/pagecontrol/tslist
+        :include:/elm_ts/selectioninfo/tslist
 
 #yhkim
 ch 
index fcb0335..90b4eb6 100644 (file)
@@ -631,7 +631,10 @@ extern "C" {
    EAPI void         elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected);
    EAPI Eina_Bool    elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item);
    EAPI const Evas_Object *elm_gengrid_item_object_get(Elm_Gengrid_Item *item);
+   EAPI Elm_Gengrid_Item *elm_gengrid_selected_item_get(const Evas_Object *obj);
    EAPI const Eina_List *elm_gengrid_selected_items_get(const Evas_Object *obj);
+   EAPI void elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled);
+   EAPI Eina_Bool elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item);
    EAPI Elm_Gengrid_Item *elm_gengrid_item_append(Evas_Object *obj, const Elm_Gengrid_Item_Class *gcc,  const void *data, Evas_Smart_Cb func, const void *func_data);
    /* smart callbacks called:
     *
index 22d7a5c..0e9e567 100644 (file)
@@ -927,6 +927,8 @@ _scr_scroll(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__
 EAPI Evas_Object *
 elm_gengrid_add(Evas_Object *parent)
 {
+   if (!parent) return NULL;
+   
    Evas_Object *obj;
    Evas *e;
    Evas_Coord minw, minh;
@@ -1083,6 +1085,7 @@ elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y)
 {
     ELM_CHECK_WIDTYPE(obj, widtype);
     Widget_Data *wd = elm_widget_data_get(obj);
+    if (!wd) return;
     if (align_x) *align_x = wd->align_x;
     if (align_y) *align_y = wd->align_y;
 }