[Scroller] Create the unit test cases for Scroller.
authorMyoungWoon Roy Kim <myoungwoon.kim@samsung.com>
Mon, 25 Oct 2010 08:46:29 +0000 (17:46 +0900)
committerMyoungWoon Roy Kim <myoungwoon.kim@samsung.com>
Mon, 25 Oct 2010 08:46:29 +0000 (17:46 +0900)
19 files changed:
TC/elm_ts/elm_scroller/tc_gen.sh [new file with mode: 0755]
TC/elm_ts/elm_scroller/tslist [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_MODULE_API_func.c.in [new file with mode: 0755]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_add_func.c [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_bounce_set_func.c [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_child_size_get_func.c [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_min_limit_func.c [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_set_func.c [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_unset_func.c [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_custom_widget_base_theme_set_func.c [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_move_set_func.c [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_relative_set_func.c [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_size_set_func.c [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_get_func.c [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_set_func.c [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_propagate_events_set_func.c [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_bring_in_func.c [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_get_func.c [new file with mode: 0644]
TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_show_func.c [new file with mode: 0644]

diff --git a/TC/elm_ts/elm_scroller/tc_gen.sh b/TC/elm_ts/elm_scroller/tc_gen.sh
new file mode 100755 (executable)
index 0000000..a55200a
--- /dev/null
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+TMPSTR=$0
+SCRIPT=${TMPSTR##*/}
+
+if [ $# -lt 3 ]; then
+       echo "Usage) $SCRIPT module_name winset_name api_name"
+       exit 1
+fi
+
+MODULE=$1
+WINSET=$2
+API=$3
+TEMPLATE=utc_MODULE_API_func.c.in
+TESTCASE=utc_${MODULE}_${API}_func
+
+sed -e '
+       s^@API@^'"$API"'^g
+       s^@MODULE@^'"$MODULE"'^g
+       ' $TEMPLATE > $TESTCASE.c
+
+if [ ! -e "$TESTCASE.c" ]; then
+       echo "Failed"
+       exit 1
+fi
+
+echo "/elm_ts/$WINSET/$TESTCASE" >> tslist
+
+echo "Testcase file is $TESTCASE.c"
+echo "$TESTCASE is added to tslist"
+echo "Done"
+echo "please put \"$TESTCASE\" as Target in Makefile"
diff --git a/TC/elm_ts/elm_scroller/tslist b/TC/elm_ts/elm_scroller/tslist
new file mode 100644 (file)
index 0000000..5e9a1b9
--- /dev/null
@@ -0,0 +1,16 @@
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_add_func
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_set_func
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_unset_func
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_custom_widget_base_theme_set_func
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_min_limit_func
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_show_func
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_set_func
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_get_func
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_get_func
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_child_size_get_func
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_bounce_set_func
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_relative_set_func
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_size_set_func
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_bring_in_func
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_move_set_func
+/elm_ts/elm_scroller/utc_UIFW_elm_scroller_propagate_events_set_func
diff --git a/TC/elm_ts/elm_scroller/utc_MODULE_API_func.c.in b/TC/elm_ts/elm_scroller/utc_MODULE_API_func.c.in
new file mode 100755 (executable)
index 0000000..6c6febe
--- /dev/null
@@ -0,0 +1,104 @@
+#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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_@MODULE@_@API@_func_01(void);
+static void utc_@MODULE@_@API@_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_@MODULE@_@API@_func_01, POSITIVE_TC_IDX },
+       { utc_@MODULE@_@API@_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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 @API@()
+ */
+static void utc_@MODULE@_@API@_func_01(void)
+{
+       int r = 0;
+
+/*
+       r = @API@(...);
+*/
+       if (!r) {
+               tet_infoline("@API@() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init @API@()
+ */
+static void utc_@MODULE@_@API@_func_02(void)
+{
+       int r = 0;
+
+/*
+       r = @API@(...);
+*/
+       if (r) {
+               tet_infoline("@API@() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_add_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_add_func.c
new file mode 100644 (file)
index 0000000..4b06bed
--- /dev/null
@@ -0,0 +1,98 @@
+#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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_add_func_01(void);
+static void utc_UIFW_elm_scroller_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_add_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_add()
+ */
+static void utc_UIFW_elm_scroller_add_func_01(void)
+{
+       Evas_Object *test_scroller = NULL;
+
+       test_scroller = elm_scroller_add(main_win);
+       TET_CHECK_PASS(NULL, test_scroller);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: PASS, Add a new scroller to the parent.");
+
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_add()
+ */
+static void utc_UIFW_elm_scroller_add_func_02(void)
+{
+       Evas_Object *test_scroller = NULL;
+
+       test_scroller = elm_scroller_add(NULL);
+       TET_CHECK_FAIL(NULL, test_scroller);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_02, [TYPE]: Negative, [RESULT]: PASS, Adding a new scroller to the parent has failed.");
+
+}
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_bounce_set_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_bounce_set_func.c
new file mode 100644 (file)
index 0000000..dd41872
--- /dev/null
@@ -0,0 +1,98 @@
+#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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_bounce_set_func_01(void);
+static void utc_UIFW_elm_scroller_bounce_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_bounce_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_bounce_set_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_bounce_set()
+ */
+static void utc_UIFW_elm_scroller_bounce_set_func_01(void)
+{
+       Evas_Object *test_scroller = NULL;
+
+       test_scroller = elm_scroller_add(main_win);
+
+       // Current return type of this API is "Void"
+       elm_scroller_bounce_set(test_scroller, EINA_FALSE, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: PASS, Setting bouncing behavior has succeed.");
+               
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_bounce_set()
+ */
+static void utc_UIFW_elm_scroller_bounce_set_func_02(void)
+{
+       //Current return type of this API is "Void"
+       elm_scroller_bounce_set(NULL, EINA_TRUE, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_02, [TYPE]: Negative, [RESULT]: PASS, Setting bouncing behavior has failed.");
+
+}
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_child_size_get_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_child_size_get_func.c
new file mode 100644 (file)
index 0000000..0b022e9
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_child_size_get_func_01(void);
+static void utc_UIFW_elm_scroller_child_size_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_child_size_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_child_size_get_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_child_size_get()
+ */
+static void utc_UIFW_elm_scroller_child_size_get_func_01(void)
+{
+       Evas_Coord x, y, w, h, vw, vh;
+       Evas_Object *test_scroller = NULL;
+       Evas_Object *tb = NULL;
+
+       test_scroller = elm_scroller_add(main_win);
+       tb = elm_table_add(main_win);
+       elm_scroller_content_set(test_scroller, tb);
+
+       elm_scroller_region_get(test_scroller, &x, &y, &w, &h);
+
+       // Current return type of this API is "Void".
+       elm_scroller_child_size_get(test_scroller, &vw, &vh);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: PASS, Getting the size of the content child object has succeed.");
+
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_child_size_get()
+ */
+static void utc_UIFW_elm_scroller_child_size_get_func_02(void)
+{
+       Evas_Coord vw, vh;
+
+       // Current return type of this API is "Void".
+       elm_scroller_child_size_get(NULL, &vw, &vh);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_02, [TYPE]: Negative, [RESULT]: PASS, Getting the size of the content child object has failed.");
+}
+
+
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_min_limit_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_min_limit_func.c
new file mode 100644 (file)
index 0000000..268d27d
--- /dev/null
@@ -0,0 +1,104 @@
+#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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_content_min_limit_func_01(void);
+static void utc_UIFW_elm_scroller_content_min_limit_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_content_min_limit_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_content_min_limit_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_content_min_limit()
+ */
+static void utc_UIFW_elm_scroller_content_min_limit_func_01(void)
+{
+       int r = 0;
+
+/*
+       r = elm_scroller_content_min_limit(...);
+*/
+       if (!r) {
+               tet_infoline("elm_scroller_content_min_limit() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_content_min_limit()
+ */
+static void utc_UIFW_elm_scroller_content_min_limit_func_02(void)
+{
+       int r = 0;
+
+/*
+       r = elm_scroller_content_min_limit(...);
+*/
+       if (r) {
+               tet_infoline("elm_scroller_content_min_limit() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_set_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_set_func.c
new file mode 100644 (file)
index 0000000..0152a07
--- /dev/null
@@ -0,0 +1,101 @@
+#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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_content_set_func_01(void);
+static void utc_UIFW_elm_scroller_content_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_content_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_content_set_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_content_set()
+ */
+static void utc_UIFW_elm_scroller_content_set_func_01(void)
+{
+       Evas_Object *test_scroller = NULL;
+       Evas_Object *tb = NULL;
+
+       test_scroller = elm_scroller_add(main_win);
+       tb = elm_table_add(main_win);
+
+       // Current return type of this API is "Void"
+       elm_scroller_content_set(test_scroller, tb);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: PASS, Set the content of the scroller widget.");
+
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_content_set()
+ */
+static void utc_UIFW_elm_scroller_content_set_func_02(void)
+{
+
+       // Current return type of this API is "Void"
+       elm_scroller_content_set(NULL, NULL);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_02, [TYPE]: Negative, [RESULT]: PASS, Setting the content of the scroller widget has failed.");
+
+}
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_unset_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_unset_func.c
new file mode 100644 (file)
index 0000000..286cd2e
--- /dev/null
@@ -0,0 +1,106 @@
+#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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_content_unset_func_01(void);
+static void utc_UIFW_elm_scroller_content_unset_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_content_unset_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_content_unset_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_content_unset()
+ */
+static void utc_UIFW_elm_scroller_content_unset_func_01(void)
+{
+        Evas_Object *test_scroller = NULL;
+        Evas_Object *tb = NULL;
+       Evas_Object *rc = NULL;
+
+        test_scroller = elm_scroller_add(main_win);
+        tb = elm_table_add(main_win);
+       elm_scroller_content_set(test_scroller, tb);
+       
+       rc = elm_scroller_content_unset(test_scroller);
+       TET_CHECK_PASS(NULL, rc);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: PASS, Unset the content of the scroller widget.");        
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_content_unset()
+ */
+static void utc_UIFW_elm_scroller_content_unset_func_02(void)
+{
+        Evas_Object *test_scroller = NULL;
+       Evas_Object *rc = NULL;
+
+        test_scroller = elm_scroller_add(main_win);
+
+       rc = elm_scroller_content_unset(test_scroller);
+       TET_CHECK_FAIL(NULL, rc);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_02, [TYPE]: Negative, [RESULT]: PASS, Unseting the content of the scroller widget has failed.");  
+
+}
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_custom_widget_base_theme_set_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_custom_widget_base_theme_set_func.c
new file mode 100644 (file)
index 0000000..ac84fd6
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_custom_widget_base_theme_set_func_01(void);
+static void utc_UIFW_elm_scroller_custom_widget_base_theme_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_custom_widget_base_theme_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_custom_widget_base_theme_set_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_custom_widget_base_theme_set()
+ */
+static void utc_UIFW_elm_scroller_custom_widget_base_theme_set_func_01(void)
+{
+       Evas_Object *test_scroller = NULL;
+
+       test_scroller = elm_scroller_add(main_win);
+       
+       // Current return type of this API is "Void"
+       elm_scroller_custom_widget_base_theme_set(test_scroller, "list", "base");
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: PASS, Set the custom theme elements for the scroller");
+       
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_custom_widget_base_theme_set()
+ */
+static void utc_UIFW_elm_scroller_custom_widget_base_theme_set_func_02(void)
+{
+       Evas_Object *test_scroller = NULL;
+
+       test_scroller = elm_scroller_add(main_win);
+       
+       // Current return type of this API is "Void"
+       elm_scroller_custom_widget_base_theme_set(test_scroller, NULL, NULL);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_02, [TYPE]: Negative, [RESULT]: PASS, Setting the custom theme elements for the scroller has failed.");
+
+}
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_move_set_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_move_set_func.c
new file mode 100644 (file)
index 0000000..a010ef4
--- /dev/null
@@ -0,0 +1,97 @@
+#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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_page_move_set_func_01(void);
+static void utc_UIFW_elm_scroller_page_move_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_page_move_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_page_move_set_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_page_move_set()
+ */
+static void utc_UIFW_elm_scroller_page_move_set_func_01(void)
+{
+       Evas_Object *test_scroller = NULL;
+
+       test_scroller = elm_scroller_add(main_win);
+
+       // Current return type of this API is "Void".
+       elm_scroller_page_move_set(test_scroller, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: PASS, Setting scroll only one page had succeed.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_page_move_set()
+ */
+static void utc_UIFW_elm_scroller_page_move_set_func_02(void)
+{
+       // Current return type of this API is "Void".
+       elm_scroller_page_move_set(NULL, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_02, [TYPE]: Negative, [RESULT]: PASS, Setting scroll only one page had failed.");
+
+}
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_relative_set_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_relative_set_func.c
new file mode 100644 (file)
index 0000000..c785ab1
--- /dev/null
@@ -0,0 +1,99 @@
+#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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_page_relative_set_func_01(void);
+static void utc_UIFW_elm_scroller_page_relative_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_page_relative_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_page_relative_set_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_page_relative_set()
+ */
+static void utc_UIFW_elm_scroller_page_relative_set_func_01(void)
+{
+       Evas_Object *test_scroller = NULL;
+
+       test_scroller = elm_scroller_add(main_win);
+
+       // Current return type of this API is "Void."
+       elm_scroller_page_relative_set(test_scroller, 1.0, 1.0);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: PASS, Setting scoller page size relative to viewport size had succeed.");
+
+       
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_page_relative_set()
+ */
+static void utc_UIFW_elm_scroller_page_relative_set_func_02(void)
+{
+       // Current return type of this API is "Void".
+       elm_scroller_page_relative_set(NULL, 1.0, 1.0);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_02, [TYPE]: Negative, [RESULT]: PASS, Setting scoller page size relative to viewport size had failed.");
+       
+}
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_size_set_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_size_set_func.c
new file mode 100644 (file)
index 0000000..02dd69c
--- /dev/null
@@ -0,0 +1,99 @@
+#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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_page_size_set_func_01(void);
+static void utc_UIFW_elm_scroller_page_size_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_page_size_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_page_size_set_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_page_size_set()
+ */
+static void utc_UIFW_elm_scroller_page_size_set_func_01(void)
+{
+       Evas_Object *test_scroller = NULL;
+
+       test_scroller = elm_scroller_add(main_win);
+
+       // Current return type of this API is "Void."
+       elm_scroller_page_size_set(test_scroller, 200, 200);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: PASS, Setting scroller page size had succeed.");
+       
+
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_page_size_set()
+ */
+static void utc_UIFW_elm_scroller_page_size_set_func_02(void)
+{
+       // Current return type of this API is "Void".
+       elm_scroller_page_size_set(NULL, 1.0, 1.0);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_02, [TYPE]: Negative, [RESULT]: PASS, Setting scoller page size had failed.");
+
+}
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_get_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_get_func.c
new file mode 100644 (file)
index 0000000..b649455
--- /dev/null
@@ -0,0 +1,128 @@
+#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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_policy_get_func_01(void);
+static void utc_UIFW_elm_scroller_policy_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_policy_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_policy_get_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_policy_get()
+ */
+static void utc_UIFW_elm_scroller_policy_get_func_01(void)
+{
+       Elm_Scroller_Policy policy_h;
+       Elm_Scroller_Policy policy_v;
+
+       Evas_Object *test_scroller = NULL;
+
+       test_scroller = elm_scroller_add(main_win);
+
+       // Current return type of this API is "Void"
+       elm_scroller_policy_get(test_scroller, &policy_h, &policy_v);
+
+       switch(policy_h)
+       {
+               case ELM_SCROLLER_POLICY_AUTO:
+               case ELM_SCROLLER_POLICY_ON:
+               case ELM_SCROLLER_POLICY_OFF:
+               case ELM_SCROLLER_POLICY_LAST:
+                       {
+                               switch(policy_v)
+                               {
+                                       case ELM_SCROLLER_POLICY_AUTO:
+                                       case ELM_SCROLLER_POLICY_ON:
+                                       case ELM_SCROLLER_POLICY_OFF:
+                                       case ELM_SCROLLER_POLICY_LAST:
+                                               tet_result(TET_PASS);
+                                               tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: PASS, Get the scroller scrollbar policy.");
+                                       default:
+                                               tet_result(TET_FAIL);
+                                               tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: FAIL, Getting the scroller scrollbar policy has failed.");
+
+                               }
+                       }
+               default:
+                       tet_result(TET_FAIL);
+                       tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: FAIL, Getting the scroller scrollbar policy has failed.");
+                               
+       }
+
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_policy_get()
+ */
+static void utc_UIFW_elm_scroller_policy_get_func_02(void)
+{
+       Elm_Scroller_Policy *policy_h;
+       Elm_Scroller_Policy *policy_v;
+
+       // Current return type of this API is "Void"
+       elm_scroller_policy_get(NULL, policy_h, policy_v);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_02, [TYPE]: Negative, [RESULT]: PASS, Getting the scroller scrollbar policy has failed.");
+       
+}
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_set_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_set_func.c
new file mode 100644 (file)
index 0000000..f8bf223
--- /dev/null
@@ -0,0 +1,99 @@
+#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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_policy_set_func_01(void);
+static void utc_UIFW_elm_scroller_policy_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_policy_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_policy_set_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_policy_set()
+ */
+static void utc_UIFW_elm_scroller_policy_set_func_01(void)
+{
+       Evas_Object *test_scroller = NULL;
+
+       test_scroller = elm_scroller_add(main_win);
+
+       // Current return type of this API is "Void"
+       elm_scroller_policy_set(test_scroller, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_AUTO);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: PASS, Set the scroller scrollbar policy.");
+
+       
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_policy_set()
+ */
+static void utc_UIFW_elm_scroller_policy_set_func_02(void)
+{
+       // Current return type of this API is "Void"
+       elm_scroller_policy_set(NULL, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_AUTO);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_02, [TYPE]: Negative, [RESULT]: PASS, Setting the scroller scrollbar policy has failed.");
+       
+}
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_propagate_events_set_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_propagate_events_set_func.c
new file mode 100644 (file)
index 0000000..7afba4e
--- /dev/null
@@ -0,0 +1,98 @@
+#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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_propagate_events_set_func_01(void);
+static void utc_UIFW_elm_scroller_propagate_events_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_propagate_events_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_propagate_events_set_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_propagate_events_set()
+ */
+static void utc_UIFW_elm_scroller_propagate_events_set_func_01(void)
+{
+       Evas_Object *test_scroller = NULL;
+
+       test_scroller = elm_scroller_add(main_win);
+
+       // Current return type of this API is "Void".
+       elm_scroller_propagate_events_set(test_scroller, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: PASS, Setting events propagation had succeed.");
+
+       
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_propagate_events_set()
+ */
+static void utc_UIFW_elm_scroller_propagate_events_set_func_02(void)
+{
+       // Current return type of this API is "Void".
+       elm_scroller_propagate_events_set(NULL, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_02, [TYPE]: Negative, [RESULT]: PASS, Setting events propagation had failed.");
+}
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_bring_in_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_bring_in_func.c
new file mode 100644 (file)
index 0000000..28ce449
--- /dev/null
@@ -0,0 +1,100 @@
+#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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_region_bring_in_func_01(void);
+static void utc_UIFW_elm_scroller_region_bring_in_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_region_bring_in_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_region_bring_in_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_region_bring_in()
+ */
+static void utc_UIFW_elm_scroller_region_bring_in_func_01(void)
+{
+       Evas_Object *test_scroller = NULL;
+
+       test_scroller = elm_scroller_add(main_win);
+
+       // Current return type of this API is "Void."
+       elm_scroller_region_bring_in(test_scroller, 0, 0, 480, 800);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: PASS, Showing a specific virtual region within the scroller content object had succeed.");
+
+       
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_region_bring_in()
+ */
+static void utc_UIFW_elm_scroller_region_bring_in_func_02(void)
+{
+       // Current return type of this API is "Void".
+       elm_scroller_region_bring_in(NULL, 0, 0, 480, 800);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_02, [TYPE]: Negative, [RESULT]: PASS, Showing a specific virtual region within the scroller content object had failed.");
+       
+       
+}
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_get_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_get_func.c
new file mode 100644 (file)
index 0000000..4fba610
--- /dev/null
@@ -0,0 +1,106 @@
+#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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_region_get_func_01(void);
+static void utc_UIFW_elm_scroller_region_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_region_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_region_get_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_region_get()
+ */
+static void utc_UIFW_elm_scroller_region_get_func_01(void)
+{
+       int x, y, w, h;
+
+       Evas_Object *test_scroller = NULL;
+
+       test_scroller = elm_scroller_add(main_win);
+       
+       // Current return type of this API is "Void".
+       elm_scroller_region_get(test_scroller, &x, &y, &w, &h);
+
+       if ( x < 0 || y < 0 || w < 0 || h < 0 ) {
+               tet_result(TET_FAIL);
+               tet_infoline("[[[ TET_MSG ]]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: FAIL, Getting the currently visible content region has failed.");
+       } else {
+               tet_result(TET_PASS);
+               tet_infoline("[[[ TET_MSG ]]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: PASS, Getting the currently visible content region had succeed.");
+       }
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_region_get()
+ */
+static void utc_UIFW_elm_scroller_region_get_func_02(void)
+{
+       int x, y, w, h;
+
+       // Current return type of this API is "Void"
+       elm_scroller_region_get(NULL, &x, &y, &w, &h);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_02, [TYPE]: Negative, [RESULT]: PASS, Getting the currently visible content region has failed.");
+       
+}
diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_show_func.c b/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_show_func.c
new file mode 100644 (file)
index 0000000..b66c343
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scroller_region_show_func_01(void);
+static void utc_UIFW_elm_scroller_region_show_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scroller_region_show_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scroller_region_show_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0 }
+};
+
+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);     
+}
+
+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_scroller_region_show()
+ */
+static void utc_UIFW_elm_scroller_region_show_func_01(void)
+{
+       int x, y, w, h;
+
+       Evas_Object *test_scroller = NULL;
+
+       test_scroller = elm_scroller_add(main_win);
+       elm_scroller_region_get(test_scroller, &x, &y, &w, &h);
+
+       // Current return type of this API is "Void"
+       elm_scroller_region_show(test_scroller, x, y, w, h);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_01, [TYPE]: Positive, [RESULT]: PASS, Show a specific virtual region within the scroller content object.");
+
+       
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scroller_region_show()
+ */
+static void utc_UIFW_elm_scroller_region_show_func_02(void)
+{
+       // Current return type of this API is "Void"
+       elm_scroller_region_show(NULL, 0, 0, 0, 0);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]: TC_02, [TYPE]: Negative, [RESULT]: PASS, Showing a specific virtual region within the scroller content object has failed.");
+       
+}