[elm_genlist] add TC
authorSeunggyun Kim <sgyun.kim@samsung.com>
Fri, 29 Oct 2010 12:25:26 +0000 (21:25 +0900)
committerSeunggyun Kim <sgyun.kim@samsung.com>
Fri, 29 Oct 2010 12:25:26 +0000 (21:25 +0900)
23 files changed:
TC/elm_ts/genlist/Makefile
TC/elm_ts/genlist/utc_UIFW_elm_genlist_at_xy_item_get_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_first_item_get_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_append_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_disabled_get_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_disabled_set_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_display_only_set_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_expanded_get_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_expanded_set_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_genlist_get_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_insert_after_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_insert_before_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_next_get_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_parent_get_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_prepend_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_prev_get_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_selected_get_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_selected_set_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_subitems_clear_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_last_item_get_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_realized_items_get_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_selected_item_get_func.c [new file with mode: 0644]
TC/elm_ts/genlist/utc_UIFW_elm_genlist_selected_items_get_func.c [new file with mode: 0644]

index 8071b0c..4a3c435 100755 (executable)
@@ -23,7 +23,30 @@ TARGETS = utc_UIFW_elm_genlist_add_func \
          utc_UIFW_elm_genlist_effect_set_func \
          utc_UIFW_elm_genlist_pinch_zoom_set_func \
          utc_UIFW_elm_genlist_pinch_zoom_mode_set_func \
-         utc_UIFW_elm_genlist_pinch_zoom_mode_get_func
+         utc_UIFW_elm_genlist_pinch_zoom_mode_get_func  \
+         utc_UIFW_elm_genlist_item_append_func \
+         utc_UIFW_elm_genlist_item_prepend_func  \
+         utc_UIFW_elm_genlist_item_insert_before_func \
+         utc_UIFW_elm_genlist_item_insert_after_func \
+         utc_UIFW_elm_genlist_selected_item_get_func \
+         utc_UIFW_elm_genlist_selected_items_get_func \
+         utc_UIFW_elm_genlist_realized_items_get_func \
+         utc_UIFW_elm_genlist_at_xy_item_get_func \
+         utc_UIFW_elm_genlist_first_item_get_func  \
+         utc_UIFW_elm_genlist_last_item_get_func \
+         utc_UIFW_elm_genlist_item_next_get_func \
+         utc_UIFW_elm_genlist_item_prev_get_func \
+         utc_UIFW_elm_genlist_item_genlist_get_func \
+         utc_UIFW_elm_genlist_item_parent_get_func \
+         utc_UIFW_elm_genlist_item_subitems_clear_func \
+         utc_UIFW_elm_genlist_item_selected_set_funcA \
+         utc_UIFW_elm_genlist_item_selected_get_func \
+         utc_UIFW_elm_genlist_item_expanded_set_func \
+         utc_UIFW_elm_genlist_item_expanded_get_func \
+         utc_UIFW_elm_genlist_item_disabled_set_func \
+         utc_UIFW_elm_genlist_item_disabled_get_func \
+         utc_UIFW_elm_genlist_item_display_only_set_func
+
 
 PKGS = elementary
 
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_at_xy_item_get_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_at_xy_item_get_func.c
new file mode 100644 (file)
index 0000000..d9450de
--- /dev/null
@@ -0,0 +1,126 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+static char *Items[] = { "Main Item1", "Main Item 2", "Main Item 3", "Main Item 4", "Main Item 5", "Main Item 6", "Main Item 7", "Main Item 8"  };
+Elm_Genlist_Item_Class itc;
+
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_at_xy_item_get_func_01(void);
+static void utc_UIFW_elm_genlist_at_xy_item_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_at_xy_item_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_at_xy_item_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static char *_gl_label_get( const void *data, Evas_Object *obj, const char *part )
+{
+       int index = (int) data;
+
+       if (!strcmp(part, "elm.text")) {
+               return strdup(Items[index]);
+       }
+       return NULL;
+}
+static void startup(void)
+{
+       Elm_Genlist_Item *item = NULL;
+       int index = 0;
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = _gl_label_get;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+       for (index = 0; index < 5; index++) {
+               item = elm_genlist_item_append(genlist, &itc, (void *) index, NULL,
+                               ELM_GENLIST_ITEM_NONE, NULL, NULL);
+       }
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_at_xy_item_get()
+ */
+static void utc_UIFW_elm_genlist_at_xy_item_get_func_01(void)
+{
+   Elm_Genlist_Item *ret = NULL;
+       int where = 0;
+
+       ret = elm_genlist_at_xy_item_get(genlist, 0, 0, &where);  
+
+       tet_result(TET_PASS);   
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_at_xy_item_get()
+ */
+static void utc_UIFW_elm_genlist_at_xy_item_get_func_02(void)
+{
+   Elm_Genlist_Item *ret = NULL;
+       int where = 0;
+
+       ret = elm_genlist_at_xy_item_get(NULL, 0, 0, &where);  
+
+       if (ret) {
+               tet_infoline("elm_genlist_at_xy_item_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);   
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_first_item_get_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_first_item_get_func.c
new file mode 100644 (file)
index 0000000..b19b6d1
--- /dev/null
@@ -0,0 +1,136 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+static char *Items[] = { "Main Item1", "Main Item 2", "Main Item 3", "Main Item 4", "Main Item 5", "Main Item 6", "Main Item 7", "Main Item 8"  };
+Elm_Genlist_Item_Class itc;
+
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_first_item_get_func_01(void);
+static void utc_UIFW_elm_genlist_first_item_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_first_item_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_first_item_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static char *_gl_label_get( const void *data, Evas_Object *obj, const char *part )
+{
+       int index = (int) data;
+
+       if (!strcmp(part, "elm.text")) {
+               return strdup(Items[index]);
+       }
+       return NULL;
+}
+
+static void startup(void)
+{
+       Elm_Genlist_Item *item = NULL;
+       int index = 0;
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = _gl_label_get;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+       for (index = 0; index < 5; index++) {
+               item = elm_genlist_item_append(genlist, &itc, (void *) index, NULL,
+                               ELM_GENLIST_ITEM_NONE, NULL, NULL);
+       }
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_first_item_get()
+ */
+static void utc_UIFW_elm_genlist_first_item_get_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);   
+   
+       result_item = elm_genlist_first_item_get(genlist);
+
+       if (!result_item) {
+               tet_infoline("elm_genlist_first_item_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_first_item_get()
+ */
+static void utc_UIFW_elm_genlist_first_item_get_func_02(void)
+{
+   Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);   
+   
+       result_item = elm_genlist_first_item_get(NULL);
+
+       if (result_item) {
+               tet_infoline("elm_genlist_first_item_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_append_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_append_func.c
new file mode 100644 (file)
index 0000000..66f6b12
--- /dev/null
@@ -0,0 +1,112 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+Elm_Genlist_Item_Class itc;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_append_func_01(void);
+static void utc_UIFW_elm_genlist_item_append_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_append_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_append_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = NULL;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_append()
+ */
+static void utc_UIFW_elm_genlist_item_append_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL;
+       item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);
+
+       if (!item) {
+               tet_infoline("elm_genlist_item_append() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_append()
+ */
+static void utc_UIFW_elm_genlist_item_append_func_02(void)
+{
+   Elm_Genlist_Item *item = NULL;
+       item = elm_genlist_item_append(NULL, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);
+
+       if (item) {
+               tet_infoline("elm_genlist_item_append() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_disabled_get_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_disabled_get_func.c
new file mode 100644 (file)
index 0000000..9d77f57
--- /dev/null
@@ -0,0 +1,121 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+Elm_Genlist_Item_Class itc;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_disabled_get_func_01(void);
+static void utc_UIFW_elm_genlist_item_disabled_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_disabled_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_disabled_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = NULL;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_disabled_get()
+ */
+static void utc_UIFW_elm_genlist_item_disabled_get_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL;
+   Eina_Bool ret = EINA_FALSE;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+       elm_genlist_item_disabled_set(item, 1);
+
+       ret = elm_genlist_item_disabled_get(item);
+   
+       if (!ret) {
+               tet_infoline("elm_genlist_item_disabled_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_disabled_get()
+ */
+static void utc_UIFW_elm_genlist_item_disabled_get_func_02(void)
+{
+   Elm_Genlist_Item *item = NULL;
+   Eina_Bool ret = EINA_FALSE;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+   
+       ret = elm_genlist_item_disabled_get(NULL);
+   
+       if (ret) {
+               tet_infoline("elm_genlist_item_disabled_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_disabled_set_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_disabled_set_func.c
new file mode 100644 (file)
index 0000000..bae0b51
--- /dev/null
@@ -0,0 +1,116 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+Elm_Genlist_Item_Class itc;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_disabled_set_func_01(void);
+static void utc_UIFW_elm_genlist_item_disabled_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_disabled_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_disabled_set_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = NULL;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_disabled_set()
+ */
+static void utc_UIFW_elm_genlist_item_disabled_set_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL;
+   Eina_Bool ret = EINA_FALSE;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+       elm_genlist_item_disabled_set(item, 1);
+
+       ret = elm_genlist_item_disabled_get(item);
+   
+       if (!ret) {
+               tet_infoline("elm_genlist_item_disabled_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_disabled_set()
+ */
+static void utc_UIFW_elm_genlist_item_disabled_set_func_02(void)
+{
+   Elm_Genlist_Item *item = NULL;
+   Eina_Bool ret = EINA_FALSE;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+   
+       elm_genlist_item_disabled_set(NULL,0);
+   
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_display_only_set_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_display_only_set_func.c
new file mode 100644 (file)
index 0000000..0ccd314
--- /dev/null
@@ -0,0 +1,116 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+Elm_Genlist_Item_Class itc;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_display_only_set_func_01(void);
+static void utc_UIFW_elm_genlist_item_display_only_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_display_only_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_display_only_set_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = NULL;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_display_only_set()
+ */
+static void utc_UIFW_elm_genlist_item_display_only_set_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL;
+   Eina_Bool ret = EINA_FALSE;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+       elm_genlist_item_display_only_set(item, 1);
+
+       ret = elm_genlist_item_display_only_get(item);
+   
+       if (!ret) {
+               tet_infoline("elm_genlist_item_display_only_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_display_only_set()
+ */
+static void utc_UIFW_elm_genlist_item_display_only_set_func_02(void)
+{
+   Elm_Genlist_Item *item = NULL;
+   Eina_Bool ret = EINA_FALSE;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+   
+       elm_genlist_item_display_only_set(NULL, 0);
+   
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_expanded_get_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_expanded_get_func.c
new file mode 100644 (file)
index 0000000..21773c5
--- /dev/null
@@ -0,0 +1,121 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+Elm_Genlist_Item_Class itc;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_expanded_get_func_01(void);
+static void utc_UIFW_elm_genlist_item_expanded_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_expanded_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_expanded_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = NULL;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_expanded_get()
+ */
+static void utc_UIFW_elm_genlist_item_expanded_get_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL;
+   Eina_Bool ret = EINA_FALSE;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+       elm_genlist_item_expanded_set(item, 1);
+
+       ret = elm_genlist_item_expanded_get(item);
+   
+       if (!ret) {
+               tet_infoline("elm_genlist_item_expanded_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_expanded_get()
+ */
+static void utc_UIFW_elm_genlist_item_expanded_get_func_02(void)
+{
+   Elm_Genlist_Item *item = NULL;
+   Eina_Bool ret = EINA_FALSE;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+   
+       ret = elm_genlist_item_expanded_get(NULL);
+   
+       if (ret) {
+               tet_infoline("elm_genlist_item_expanded_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_expanded_set_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_expanded_set_func.c
new file mode 100644 (file)
index 0000000..a776a8b
--- /dev/null
@@ -0,0 +1,107 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+Elm_Genlist_Item_Class itc;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_expanded_set_func_01(void);
+static void utc_UIFW_elm_genlist_item_expanded_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_expanded_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_expanded_set_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = NULL;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_expanded_set()
+ */
+static void utc_UIFW_elm_genlist_item_expanded_set_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+       elm_genlist_item_expanded_set(item, 1);
+
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_expanded_set()
+ */
+static void utc_UIFW_elm_genlist_item_expanded_set_func_02(void)
+{
+   Elm_Genlist_Item *item = NULL;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+   
+       elm_genlist_item_expanded_set(NULL, 1);
+
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_genlist_get_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_genlist_get_func.c
new file mode 100644 (file)
index 0000000..84df69d
--- /dev/null
@@ -0,0 +1,120 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+Elm_Genlist_Item_Class itc;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_genlist_get_func_01(void);
+static void utc_UIFW_elm_genlist_item_genlist_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_genlist_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_genlist_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = NULL;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_genlist_get()
+ */
+static void utc_UIFW_elm_genlist_item_genlist_get_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL;
+   Evas_Object *ret = NULL;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);   
+   
+       ret = elm_genlist_item_genlist_get(item);
+
+       if (!ret) {
+               tet_infoline("elm_genlist_item_genlist_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_genlist_get()
+ */
+static void utc_UIFW_elm_genlist_item_genlist_get_func_02(void)
+{
+   Elm_Genlist_Item *item = NULL;
+   Evas_Object *ret = NULL;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);   
+   
+       ret = elm_genlist_item_genlist_get(NULL);
+
+       if (!ret) {
+               tet_infoline("elm_genlist_item_genlist_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_insert_after_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_insert_after_func.c
new file mode 100644 (file)
index 0000000..3b856d5
--- /dev/null
@@ -0,0 +1,120 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+Elm_Genlist_Item_Class itc;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_insert_after_func_01(void);
+static void utc_UIFW_elm_genlist_item_insert_after_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_insert_after_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_insert_after_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = NULL;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_insert_after()
+ */
+static void utc_UIFW_elm_genlist_item_insert_after_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);   
+   
+       result_item = elm_genlist_item_insert_after(genlist, &itc, (void *) 0, item,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);
+
+       if (!result_item) {
+               tet_infoline("elm_genlist_item_insert_after() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_insert_after()
+ */
+static void utc_UIFW_elm_genlist_item_insert_after_func_02(void)
+{
+   Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);   
+   
+       result_item = elm_genlist_item_insert_after(NULL, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);
+
+       if (result_item) {
+               tet_infoline("elm_genlist_item_insert_after() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_insert_before_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_insert_before_func.c
new file mode 100644 (file)
index 0000000..4b620da
--- /dev/null
@@ -0,0 +1,120 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+Elm_Genlist_Item_Class itc;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_insert_before_func_01(void);
+static void utc_UIFW_elm_genlist_item_insert_before_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_insert_before_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_insert_before_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = NULL;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_insert_before()
+ */
+static void utc_UIFW_elm_genlist_item_insert_before_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);   
+   
+       result_item = elm_genlist_item_insert_before(genlist, &itc, (void *) 0, item,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);
+
+       if (!result_item) {
+               tet_infoline("elm_genlist_item_insert_before() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_insert_before()
+ */
+static void utc_UIFW_elm_genlist_item_insert_before_func_02(void)
+{
+   Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);   
+   
+       result_item = elm_genlist_item_insert_before(NULL, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);
+
+       if (result_item) {
+               tet_infoline("elm_genlist_item_insert_before() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_next_get_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_next_get_func.c
new file mode 100644 (file)
index 0000000..081faed
--- /dev/null
@@ -0,0 +1,131 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+static char *Items[] = { "Main Item1", "Main Item 2", "Main Item 3", "Main Item 4", "Main Item 5", "Main Item 6", "Main Item 7", "Main Item 8"  };
+Elm_Genlist_Item_Class itc;
+
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_next_get_func_01(void);
+static void utc_UIFW_elm_genlist_item_next_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_next_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_next_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static char *_gl_label_get( const void *data, Evas_Object *obj, const char *part )
+{
+       int index = (int) data;
+
+       if (!strcmp(part, "elm.text")) {
+               return strdup(Items[index]);
+       }
+       return NULL;
+}
+static void startup(void)
+{
+       Elm_Genlist_Item *item = NULL;
+       int index = 0;
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = _gl_label_get;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+       for (index = 0; index < 5; index++) {
+               item = elm_genlist_item_append(genlist, &itc, (void *) index, NULL,
+                               ELM_GENLIST_ITEM_NONE, NULL, NULL);
+       }
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_next_get()
+ */
+static void utc_UIFW_elm_genlist_item_next_get_func_01(void)
+{
+   Elm_Genlist_Item *it = NULL, *ret = NULL;
+   
+   it =        elm_genlist_first_item_get(genlist);
+   ret = elm_genlist_item_next_get(it);
+
+       if (!ret) {
+               tet_infoline("elm_genlist_first_item_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_next_get()
+ */
+static void utc_UIFW_elm_genlist_item_next_get_func_02(void)
+{
+   Elm_Genlist_Item *it = NULL, *ret = NULL;
+   
+   it =        elm_genlist_first_item_get(genlist);
+   ret = elm_genlist_item_next_get(NULL);
+
+       if (ret) {
+               tet_infoline("elm_genlist_item_next_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);   
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_parent_get_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_parent_get_func.c
new file mode 100644 (file)
index 0000000..992fea8
--- /dev/null
@@ -0,0 +1,108 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+Elm_Genlist_Item_Class itc;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_parent_get_func_01(void);
+static void utc_UIFW_elm_genlist_item_parent_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_parent_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_parent_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = NULL;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_parent_get()
+ */
+static void utc_UIFW_elm_genlist_item_parent_get_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL, *ret = NULL;
+
+   item = elm_genlist_last_item_get(genlist); 
+       ret = elm_genlist_item_parent_get(item);
+
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_parent_get()
+ */
+static void utc_UIFW_elm_genlist_item_parent_get_func_02(void)
+{
+   Elm_Genlist_Item  *ret = NULL;
+
+       ret = elm_genlist_item_parent_get(NULL);
+
+       if (ret) {
+               tet_infoline("elm_genlist_item_parent_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_prepend_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_prepend_func.c
new file mode 100644 (file)
index 0000000..9638a37
--- /dev/null
@@ -0,0 +1,112 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+Elm_Genlist_Item_Class itc;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_prepend_func_01(void);
+static void utc_UIFW_elm_genlist_item_prepend_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_prepend_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_prepend_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = NULL;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_prepend()
+ */
+static void utc_UIFW_elm_genlist_item_prepend_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL;
+       item = elm_genlist_item_prepend(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);
+
+       if (!item) {
+               tet_infoline("elm_genlist_item_prepend() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_prepend()
+ */
+static void utc_UIFW_elm_genlist_item_prepend_func_02(void)
+{
+   Elm_Genlist_Item *item = NULL;
+       item = elm_genlist_item_prepend(NULL, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);
+
+       if (item) {
+               tet_infoline("elm_genlist_item_prepend() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_prev_get_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_prev_get_func.c
new file mode 100644 (file)
index 0000000..548ba7b
--- /dev/null
@@ -0,0 +1,131 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+static char *Items[] = { "Main Item1", "Main Item 2", "Main Item 3", "Main Item 4", "Main Item 5", "Main Item 6", "Main Item 7", "Main Item 8"  };
+Elm_Genlist_Item_Class itc;
+
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_prev_get_func_01(void);
+static void utc_UIFW_elm_genlist_item_prev_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_prev_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_prev_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static char *_gl_label_get( const void *data, Evas_Object *obj, const char *part )
+{
+       int index = (int) data;
+
+       if (!strcmp(part, "elm.text")) {
+               return strdup(Items[index]);
+       }
+       return NULL;
+}
+static void startup(void)
+{
+       Elm_Genlist_Item *item = NULL;
+       int index = 0;
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = _gl_label_get;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+       for (index = 0; index < 5; index++) {
+               item = elm_genlist_item_append(genlist, &itc, (void *) index, NULL,
+                               ELM_GENLIST_ITEM_NONE, NULL, NULL);
+       }
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_prev_get()
+ */
+static void utc_UIFW_elm_genlist_item_prev_get_func_01(void)
+{
+   Elm_Genlist_Item *it = NULL, *ret = NULL;
+   
+   it =        elm_genlist_last_item_get(genlist);
+   ret = elm_genlist_item_prev_get(it);
+
+       if (!ret) {
+               tet_infoline("elm_genlist_first_item_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_prev_get()
+ */
+static void utc_UIFW_elm_genlist_item_prev_get_func_02(void)
+{
+   Elm_Genlist_Item *it = NULL, *ret = NULL;
+   
+   it =        elm_genlist_last_item_get(genlist);
+   ret = elm_genlist_item_prev_get(NULL);
+
+       if (ret) {
+               tet_infoline("elm_genlist_item_prev_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);   
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_selected_get_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_selected_get_func.c
new file mode 100644 (file)
index 0000000..1f30dbf
--- /dev/null
@@ -0,0 +1,121 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+Elm_Genlist_Item_Class itc;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_selected_get_func_01(void);
+static void utc_UIFW_elm_genlist_item_selected_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_selected_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_selected_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = NULL;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_selected_get()
+ */
+static void utc_UIFW_elm_genlist_item_selected_get_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL;
+   Eina_Bool ret = EINA_FALSE;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+       elm_genlist_item_selected_set(item, 1);
+
+       ret = elm_genlist_item_selected_get(item);
+   
+       if (!ret) {
+               tet_infoline("elm_genlist_item_selected_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_selected_get()
+ */
+static void utc_UIFW_elm_genlist_item_selected_get_func_02(void)
+{
+   Elm_Genlist_Item *item = NULL;
+   Eina_Bool ret = EINA_FALSE;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+   
+       ret = elm_genlist_item_selected_get(NULL);
+   
+       if (ret) {
+               tet_infoline("elm_genlist_item_selected_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_selected_set_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_selected_set_func.c
new file mode 100644 (file)
index 0000000..83ff4cb
--- /dev/null
@@ -0,0 +1,107 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+Elm_Genlist_Item_Class itc;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_selected_set_func_01(void);
+static void utc_UIFW_elm_genlist_item_selected_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_selected_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_selected_set_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = NULL;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_selected_set()
+ */
+static void utc_UIFW_elm_genlist_item_selected_set_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+       elm_genlist_item_selected_set(item, 1);
+
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_selected_set()
+ */
+static void utc_UIFW_elm_genlist_item_selected_set_func_02(void)
+{
+   Elm_Genlist_Item *item = NULL;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+   
+       elm_genlist_item_selected_set(NULL, 1);
+
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_subitems_clear_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_item_subitems_clear_func.c
new file mode 100644 (file)
index 0000000..53c0327
--- /dev/null
@@ -0,0 +1,102 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+Elm_Genlist_Item_Class itc;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_item_subitems_clear_func_01(void);
+static void utc_UIFW_elm_genlist_item_subitems_clear_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_item_subitems_clear_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_item_subitems_clear_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = NULL;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_item_subitems_clear()
+ */
+static void utc_UIFW_elm_genlist_item_subitems_clear_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);      
+       elm_genlist_item_subitems_clear(item);
+
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_item_subitems_clear()
+ */
+static void utc_UIFW_elm_genlist_item_subitems_clear_func_02(void)
+{
+       elm_genlist_item_subitems_clear(NULL);
+
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_last_item_get_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_last_item_get_func.c
new file mode 100644 (file)
index 0000000..e12a60f
--- /dev/null
@@ -0,0 +1,118 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+Elm_Genlist_Item_Class itc;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_last_item_get_func_01(void);
+static void utc_UIFW_elm_genlist_last_item_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_last_item_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_last_item_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = NULL;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_last_item_get()
+ */
+static void utc_UIFW_elm_genlist_last_item_get_func_01(void)
+{
+   Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);   
+   
+       result_item = elm_genlist_last_item_get(genlist);
+
+       if (!result_item) {
+               tet_infoline("elm_genlist_last_item_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_last_item_get()
+ */
+static void utc_UIFW_elm_genlist_last_item_get_func_02(void)
+{
+   Elm_Genlist_Item *item = NULL, *result_item = NULL;
+
+   item = elm_genlist_item_append(genlist, &itc, (void *) 0, NULL,
+                       ELM_GENLIST_ITEM_NONE, NULL, NULL);   
+   
+       result_item = elm_genlist_last_item_get(NULL);
+
+       if (result_item) {
+               tet_infoline("elm_genlist_last_item_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_realized_items_get_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_realized_items_get_func.c
new file mode 100644 (file)
index 0000000..4fa4da4
--- /dev/null
@@ -0,0 +1,124 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+static char *Items[] = { "Main Item1", "Main Item 2", "Main Item 3", "Main Item 4", "Main Item 5", "Main Item 6", "Main Item 7", "Main Item 8"  };
+Elm_Genlist_Item_Class itc;
+
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_realized_items_get_func_01(void);
+static void utc_UIFW_elm_genlist_realized_items_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_realized_items_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_realized_items_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static char *_gl_label_get( const void *data, Evas_Object *obj, const char *part )
+{
+       int index = (int) data;
+
+       if (!strcmp(part, "elm.text")) {
+               return strdup(Items[index]);
+       }
+       return NULL;
+}
+static void startup(void)
+{
+       Elm_Genlist_Item *item = NULL;
+       int index = 0;
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = _gl_label_get;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+       for (index = 0; index < 5; index++) {
+               item = elm_genlist_item_append(genlist, &itc, (void *) index, NULL,
+                               ELM_GENLIST_ITEM_NONE, NULL, NULL);
+       }
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_realized_items_get()
+ */
+static void utc_UIFW_elm_genlist_realized_items_get_func_01(void)
+{
+   Eina_List *ret = NULL;
+   
+   ret = elm_genlist_realized_items_get(genlist);
+
+       tet_result(TET_PASS);   
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_realized_items_get()
+ */
+static void utc_UIFW_elm_genlist_realized_items_get_func_02(void)
+{
+   Eina_List *ret = NULL;
+   
+   ret = elm_genlist_realized_items_get(NULL);
+
+       if (ret) {
+               tet_infoline("elm_genlist_realized_items_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);   
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_selected_item_get_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_selected_item_get_func.c
new file mode 100644 (file)
index 0000000..d30812e
--- /dev/null
@@ -0,0 +1,130 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+static char *Items[] = { "Main Item1", "Main Item 2", "Main Item 3", "Main Item 4", "Main Item 5", "Main Item 6", "Main Item 7", "Main Item 8"  };
+Elm_Genlist_Item_Class itc;
+
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_selected_item_get_func_01(void);
+static void utc_UIFW_elm_genlist_selected_item_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_selected_item_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_selected_item_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static char *_gl_label_get( const void *data, Evas_Object *obj, const char *part )
+{
+       int index = (int) data;
+
+       if (!strcmp(part, "elm.text")) {
+               return strdup(Items[index]);
+       }
+       return NULL;
+}
+static void startup(void)
+{
+       Elm_Genlist_Item *item = NULL;
+       int index = 0;
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = _gl_label_get;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+       for (index = 0; index < 5; index++) {
+               item = elm_genlist_item_append(genlist, &itc, (void *) index, NULL,
+                               ELM_GENLIST_ITEM_NONE, NULL, NULL);
+      elm_genlist_item_selected_set(item, 1);
+       }
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_selected_item_get()
+ */
+static void utc_UIFW_elm_genlist_selected_item_get_func_01(void)
+{
+   Elm_Genlist_Item *ret = NULL;
+   
+   ret = elm_genlist_selected_item_get(genlist);
+
+       if (!ret) {
+               tet_infoline("elm_genlist_selected_item_get() failed in positive test case");      
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);   
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_selected_item_get()
+ */
+static void utc_UIFW_elm_genlist_selected_item_get_func_02(void)
+{
+   Elm_Genlist_Item *ret = NULL;
+   
+   ret = elm_genlist_selected_item_get(NULL);
+
+       if (ret) {
+               tet_infoline("elm_genlist_selected_item_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);   
+}
diff --git a/TC/elm_ts/genlist/utc_UIFW_elm_genlist_selected_items_get_func.c b/TC/elm_ts/genlist/utc_UIFW_elm_genlist_selected_items_get_func.c
new file mode 100644 (file)
index 0000000..ec56e81
--- /dev/null
@@ -0,0 +1,130 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err == (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+       Evas_Object *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+
+Evas_Object *main_win, *genlist;
+static char *Items[] = { "Main Item1", "Main Item 2", "Main Item 3", "Main Item 4", "Main Item 5", "Main Item 6", "Main Item 7", "Main Item 8"  };
+Elm_Genlist_Item_Class itc;
+
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_genlist_selected_items_get_func_01(void);
+static void utc_UIFW_elm_genlist_selected_items_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_genlist_selected_items_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_genlist_selected_items_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static char *_gl_label_get( const void *data, Evas_Object *obj, const char *part )
+{
+       int index = (int) data;
+
+       if (!strcmp(part, "elm.text")) {
+               return strdup(Items[index]);
+       }
+       return NULL;
+}
+static void startup(void)
+{
+       Elm_Genlist_Item *item = NULL;
+       int index = 0;
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+       elm_init(0, NULL);
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       evas_object_show(main_win);     
+       genlist = elm_genlist_add(main_win);
+       evas_object_show(genlist);
+       elm_win_resize_object_add(main_win, genlist);
+       evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       itc.item_style = "1line_textonly";
+       itc.func.label_get = _gl_label_get;
+       itc.func.icon_get = NULL;
+       itc.func.state_get = NULL;
+       itc.func.del = NULL;
+       for (index = 0; index < 5; index++) {
+               item = elm_genlist_item_append(genlist, &itc, (void *) index, NULL,
+                               ELM_GENLIST_ITEM_NONE, NULL, NULL);
+      elm_genlist_item_selected_set(item, 1);
+       }
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_genlist_selected_items_get()
+ */
+static void utc_UIFW_elm_genlist_selected_items_get_func_01(void)
+{
+   const Eina_List *ret = NULL;
+   
+   ret = elm_genlist_selected_items_get(genlist);
+
+       if (!ret) {
+               tet_infoline("elm_genlist_selected_items_get() failed in positive test case");      
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);   
+}
+
+/**
+ * @brief Negative test case of ug_init elm_genlist_selected_items_get()
+ */
+static void utc_UIFW_elm_genlist_selected_items_get_func_02(void)
+{
+   const Eina_List *ret = NULL;
+   
+   ret = elm_genlist_selected_items_get(NULL);
+
+       if (ret) {
+               tet_infoline("elm_genlist_selected_items_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);   
+}