Merge branch 'master' of 165.213.180.234:/git/slp/pkgs/elementary
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Tue, 26 Oct 2010 10:51:20 +0000 (19:51 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Tue, 26 Oct 2010 10:51:20 +0000 (19:51 +0900)
66 files changed:
TC/elm_ts/scrolled_entry/tc_gen.sh [new file with mode: 0755]
TC/elm_ts/scrolled_entry/tslist [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_MODULE_API_func.c.in [new file with mode: 0755]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_add_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_begin_set_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_down_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_end_set_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_line_begin_set_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_line_end_set_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_next_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_prev_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_up_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_editable_get_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_editable_set_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_entry_get_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_entry_insert_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_entry_set_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_line_char_wrap_set_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_line_wrap_set_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_password_get_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_password_set_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_select_all_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_select_none_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_selection_get_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_single_line_get_func.c [new file with mode: 0644]
TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_single_line_set_func.c [new file with mode: 0644]
TC/elm_ts/slider/Makefile [new file with mode: 0644]
TC/elm_ts/slider/tc_gen.sh [new file with mode: 0644]
TC/elm_ts/slider/tslist [new file with mode: 0644]
TC/elm_ts/slider/utc_MODULE_API_func.c.in [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_add_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_end_icon_get_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_end_icon_set_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_end_label_get_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_end_label_set_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_horizontal_get_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_horizontal_set_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_icon_get_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_icon_set_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_indicator_format_function_set_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_indicator_format_get_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_indicator_format_set_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_indicator_show_set_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_inverted_get_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_inverted_set_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_label_get_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_label_set_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_min_max_get_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_min_max_set_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_span_size_get_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_span_size_set_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_unit_format_get_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_unit_format_set_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_value_animated_set_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_value_get_func.c [new file with mode: 0644]
TC/elm_ts/slider/utc_UIFW_elm_slider_value_set_func.c [new file with mode: 0644]
TC/tet_scen_arm
TC/tet_scen_i686
debian/changelog
src/lib/Elementary.h.in [changed mode: 0755->0644]
src/lib/elm_bubble.c [changed mode: 0644->0755]
src/lib/elm_button.c
src/lib/elm_controlbar.c
src/lib/elm_gengrid.c
src/lib/elm_genlist.c
src/lib/elm_navigationbar_ex.c

diff --git a/TC/elm_ts/scrolled_entry/tc_gen.sh b/TC/elm_ts/scrolled_entry/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/scrolled_entry/tslist b/TC/elm_ts/scrolled_entry/tslist
new file mode 100644 (file)
index 0000000..99d3daa
--- /dev/null
@@ -0,0 +1,23 @@
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_add_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_single_line_set_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_single_line_get_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_password_set_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_password_get_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_entry_set_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_entry_get_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_selection_get_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_entry_insert_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_line_wrap_set_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_line_char_wrap_set_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_editable_set_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_editable_get_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_select_none_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_select_all_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_next_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_prev_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_up_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_down_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_begin_set_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_end_set_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_line_begin_set_func
+/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_line_end_set_func
diff --git a/TC/elm_ts/scrolled_entry/utc_MODULE_API_func.c.in b/TC/elm_ts/scrolled_entry/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/scrolled_entry/utc_UIFW_elm_scrolled_entry_add_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_add_func.c
new file mode 100644 (file)
index 0000000..0ddcfd1
--- /dev/null
@@ -0,0 +1,94 @@
+#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_scrolled_entry_add_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_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_scrolled_entry_add()
+ */
+static void utc_UIFW_elm_scrolled_entry_add_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+       TET_CHECK_PASS(NULL, test_en);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, An Scrolled entry is added successfully.");
+       
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_add()
+ */
+static void utc_UIFW_elm_scrolled_entry_add_func_02(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(NULL);
+       TET_CHECK_FAIL(NULL, test_en);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Adding an Scrolled entry has failed.");
+       
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_begin_set_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_begin_set_func.c
new file mode 100644 (file)
index 0000000..8dad7d1
--- /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_scrolled_entry_cursor_begin_set_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_cursor_begin_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_cursor_begin_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_cursor_begin_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_scrolled_entry_cursor_begin_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_begin_set_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+       elm_scrolled_entry_entry_set(test_en, "This is<br> test scrolled entry");
+
+       // Current return type of this API is "void"
+       elm_scrolled_entry_cursor_begin_set(test_en);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Moving the cursor to the beginning of the scrolled entry had succeed.");
+       
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_cursor_begin_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_begin_set_func_02(void)
+{
+       // Current return type of this API is "void"
+       elm_scrolled_entry_cursor_begin_set(NULL);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Moving the cursor to the beginning of the scrolled entry had failed.");
+
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_down_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_down_func.c
new file mode 100644 (file)
index 0000000..c00f746
--- /dev/null
@@ -0,0 +1,111 @@
+#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_scrolled_entry_cursor_down_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_cursor_down_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_cursor_down_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_cursor_down_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_scrolled_entry_cursor_down()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_down_func_01(void)
+{
+       Eina_Bool result;
+
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+       elm_scrolled_entry_entry_set(test_en, "This is<br> test scrolled entry");
+       elm_scrolled_entry_cursor_begin_set(test_en);
+
+       // Current return type of this API is "void"
+       result = elm_scrolled_entry_cursor_down(test_en);
+
+       if (result == EINA_TRUE)
+       {
+               tet_result(TET_PASS);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Moving the cursor one line down within the entry had succeed.");
+       } else {
+               tet_result(TET_FAIL);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:FAIL, Moving the cursor one line down within the entry had failed.");
+       }
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_cursor_down()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_down_func_02(void)
+{
+       Eina_Bool result;
+       // Current return type of this API is "void"
+       result = elm_scrolled_entry_cursor_down(NULL);
+
+       if (result == EINA_FALSE)
+       {
+               tet_result(TET_PASS);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Moving the cursor one line down within the entry had failed.");
+       } else {
+               tet_result(TET_FAIL);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negetive, [RESULT]:FAIL, Error occurs while moving the cursor one line down within the entry.");
+       }
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_end_set_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_end_set_func.c
new file mode 100644 (file)
index 0000000..6feeb14
--- /dev/null
@@ -0,0 +1,96 @@
+#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_scrolled_entry_cursor_end_set_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_cursor_end_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_cursor_end_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_cursor_end_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_scrolled_entry_cursor_end_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_end_set_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+       elm_scrolled_entry_entry_set(test_en, "This is<br> test scrolled entry");
+
+       // Current return type of this API is "void"
+       elm_scrolled_entry_cursor_end_set(test_en);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Moving the cursor to the end of the scrolled entry had succeed.");
+       
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_cursor_end_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_end_set_func_02(void)
+{
+       // Current return type of this API is "void"
+       elm_scrolled_entry_cursor_end_set(NULL);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Moving the cursor to the end of the scrolled entry had failed.");
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_line_begin_set_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_line_begin_set_func.c
new file mode 100644 (file)
index 0000000..c7d4a92
--- /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_scrolled_entry_cursor_line_begin_set_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_cursor_line_begin_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_cursor_line_begin_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_cursor_line_begin_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_scrolled_entry_cursor_line_begin_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_line_begin_set_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+       elm_scrolled_entry_entry_set(test_en, "This is<br> test scrolled entry");
+       elm_scrolled_entry_cursor_begin_set(test_en);
+       elm_scrolled_entry_cursor_line_end_set(test_en);
+
+       // Current return type of this API is "void"
+       elm_scrolled_entry_cursor_line_begin_set(test_en);      
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Moving the cursor to the beginning of the current line had succeed.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_cursor_line_begin_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_line_begin_set_func_02(void)
+{
+       // Current return type of this API is "void"
+       elm_scrolled_entry_cursor_line_begin_set(NULL);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Moving the cursor to the beginning of the current line had failed.");
+
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_line_end_set_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_line_end_set_func.c
new file mode 100644 (file)
index 0000000..83060b2
--- /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_scrolled_entry_cursor_line_end_set_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_cursor_line_end_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_cursor_line_end_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_cursor_line_end_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_scrolled_entry_cursor_line_end_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_line_end_set_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+       elm_scrolled_entry_entry_set(test_en, "This is<br> test scrolled entry");
+       elm_scrolled_entry_cursor_begin_set(test_en);
+       elm_scrolled_entry_cursor_line_begin_set(test_en);
+
+       // Current return type of this API is "void"
+       elm_scrolled_entry_cursor_line_end_set(test_en);        
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Moving the cursor to the end of the current line had succeed.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_cursor_line_end_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_line_end_set_func_02(void)
+{
+       // Current return type of this API is "void"
+       elm_scrolled_entry_cursor_line_end_set(NULL);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Moving the cursor to the end of the current line had failed.");
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_next_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_next_func.c
new file mode 100644 (file)
index 0000000..d5f0909
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scrolled_entry_cursor_next_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_cursor_next_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_cursor_next_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_cursor_next_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_scrolled_entry_cursor_next()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_next_func_01(void)
+{
+       Eina_Bool result;
+
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+       elm_scrolled_entry_entry_set(test_en, "This is test scrolled entry");
+
+       // Current return type of this API is "void"
+       result = elm_scrolled_entry_cursor_next(test_en);
+
+       if (result == EINA_TRUE)
+       {
+               tet_result(TET_PASS);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Moving the cursor on place to the right within the entry had succeed.");
+       } else {
+               tet_result(TET_FAIL);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:FAIL, Moving the cursor on place to the right within the entry had failed.");
+       }
+
+}
+       
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_cursor_next()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_next_func_02(void)
+{
+       Eina_Bool result;
+       // Current return type of this API is "void"
+       result = elm_scrolled_entry_cursor_next(NULL);
+
+       if (result == EINA_FALSE)
+       {
+               tet_result(TET_PASS);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Moving the cursor on place to the right within the entry had failed.");
+       } else {
+               tet_result(TET_FAIL);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negetive, [RESULT]:FAIL, Error occurs while moving the cursor on place to the right within the entry.");
+       }
+
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_prev_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_prev_func.c
new file mode 100644 (file)
index 0000000..d6e63de
--- /dev/null
@@ -0,0 +1,111 @@
+#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_scrolled_entry_cursor_prev_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_cursor_prev_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_cursor_prev_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_cursor_prev_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_scrolled_entry_cursor_prev()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_prev_func_01(void)
+{
+       Eina_Bool result;
+
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+       elm_scrolled_entry_entry_set(test_en, "This is test scrolled entry");
+
+       // Current return type of this API is "void"
+       result = elm_scrolled_entry_cursor_prev(test_en);
+
+       if (result == EINA_TRUE)
+       {
+               tet_result(TET_PASS);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Moving the cursor on place to the left within the entry had succeed.");
+       } else {
+               tet_result(TET_FAIL);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:FAIL, Moving the cursor on place to the left within the entry had failed.");
+       }
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_cursor_prev()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_prev_func_02(void)
+{
+       Eina_Bool result;
+       // Current return type of this API is "void"
+       result = elm_scrolled_entry_cursor_prev(NULL);
+
+       if (result == EINA_FALSE)
+       {
+               tet_result(TET_PASS);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Moving the cursor on place to the left within the entry had failed.");
+       } else {
+               tet_result(TET_FAIL);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:FAIL, Error occurs while moving the cursor on place to the left within the entry.");
+       }
+
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_up_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_cursor_up_func.c
new file mode 100644 (file)
index 0000000..1d7f919
--- /dev/null
@@ -0,0 +1,111 @@
+#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_scrolled_entry_cursor_up_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_cursor_up_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_cursor_up_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_cursor_up_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_scrolled_entry_cursor_up()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_up_func_01(void)
+{
+       Eina_Bool result;
+
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+       elm_scrolled_entry_entry_set(test_en, "This is<br>test scrolled entry");
+
+       // Current return type of this API is "void"
+       result = elm_scrolled_entry_cursor_up(test_en);
+
+       if (result == EINA_TRUE)
+       {
+               tet_result(TET_PASS);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Moving the cursor one line up within the entry had succeed.");
+       } else {
+               tet_result(TET_FAIL);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:FAIL, Moving the cursor one line up within the entry had failed.");
+       }
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_cursor_up()
+ */
+static void utc_UIFW_elm_scrolled_entry_cursor_up_func_02(void)
+{
+       Eina_Bool result;
+       // Current return type of this API is "void"
+       result = elm_scrolled_entry_cursor_up(NULL);
+
+       if (result == EINA_FALSE)
+       {
+               tet_result(TET_PASS);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Moving the cursor one line up within the entry had failed.");
+       } else {
+               tet_result(TET_FAIL);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:FAIL, Error occurs while moving the cursor one line up within the entry.");
+
+       }
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_editable_get_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_editable_get_func.c
new file mode 100644 (file)
index 0000000..bcec387
--- /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_scrolled_entry_editable_get_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_editable_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_editable_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_editable_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_scrolled_entry_editable_get()
+ */
+static void utc_UIFW_elm_scrolled_entry_editable_get_func_01(void)
+{
+       Eina_Bool result;
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+
+       elm_scrolled_entry_editable_set(test_en, EINA_TRUE);
+       result = elm_scrolled_entry_editable_get(test_en);
+
+       if (result == EINA_TRUE) {
+               tet_result(TET_PASS);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Getting the editable attribute of the scrolled entry had succeed.");
+       } else {
+               tet_result(TET_FAIL);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:FAIL, Getting the editable attribute of the scrolled entry had failed.");   
+       }
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_editable_get()
+ */
+static void utc_UIFW_elm_scrolled_entry_editable_get_func_02(void)
+{
+       Eina_Bool result;
+
+       result = elm_scrolled_entry_editable_get(NULL);
+
+       if (result == EINA_FALSE) {
+               tet_result(TET_PASS);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Getting the editable attribute of the scrolled entry had failed.");
+       } else {
+               tet_result(TET_FAIL);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:FAIL, Error occurs while getting the editable attribute of the scrolled entry.");   
+       }
+
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_editable_set_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_editable_set_func.c
new file mode 100644 (file)
index 0000000..7216730
--- /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_scrolled_entry_editable_set_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_editable_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_editable_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_editable_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_scrolled_entry_editable_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_editable_set_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+
+       // Current return type of this API is "void".
+       elm_scrolled_entry_editable_set(test_en, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Setting the editable attribute of the scrolled entry had succeed.");
+
+       
+
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_editable_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_editable_set_func_02(void)
+{
+       // Current return type of this API is "void".
+       elm_scrolled_entry_editable_set(NULL, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Setting the editable attribute of the scrolled entry had failed.");
+
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_entry_get_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_entry_get_func.c
new file mode 100644 (file)
index 0000000..fff134a
--- /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...) \
+{ \
+       const char *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...) \
+{ \
+       const char *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_scrolled_entry_entry_get_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_entry_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_entry_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_entry_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_scrolled_entry_entry_get()
+ */
+static void utc_UIFW_elm_scrolled_entry_entry_get_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+
+       elm_scrolled_entry_entry_set(test_en, "This is test entry");
+
+       const char *s = elm_scrolled_entry_entry_get(test_en);
+       TET_CHECK_PASS(NULL, s);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Getting the text currently shown in scrolled entry had succeed.");
+       
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_entry_get()
+ */
+static void utc_UIFW_elm_scrolled_entry_entry_get_func_02(void)
+{
+       const char *s = elm_scrolled_entry_entry_get(NULL);
+       TET_CHECK_FAIL(NULL, s);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Getting the text currently shown is scrolled entry had failed.");
+       
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_entry_insert_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_entry_insert_func.c
new file mode 100644 (file)
index 0000000..59207b5
--- /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_scrolled_entry_entry_insert_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_entry_insert_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_entry_insert_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_entry_insert_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_scrolled_entry_entry_insert()
+ */
+static void utc_UIFW_elm_scrolled_entry_entry_insert_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+       elm_scrolled_entry_entry_set(test_en, "This is test scrolled entry");
+
+       // Current return type of this API is "void".
+       elm_scrolled_entry_entry_insert(test_en, "Insert some <b>BOLD</b> text");
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Inserting text at the beginning of the scrolled entry had succeed.");
+
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_entry_insert()
+ */
+static void utc_UIFW_elm_scrolled_entry_entry_insert_func_02(void)
+{
+       // Current return type of this API is "void"
+       elm_scrolled_entry_entry_insert(NULL, "This is negative test case");
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Inserting test at the beginning of the scrolled entry had failed.");
+       
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_entry_set_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_entry_set_func.c
new file mode 100644 (file)
index 0000000..ece8e94
--- /dev/null
@@ -0,0 +1,96 @@
+#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_scrolled_entry_entry_set_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_entry_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_entry_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_entry_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_scrolled_entry_entry_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_entry_set_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+
+       // Current return type of this API is "void".
+       elm_scrolled_entry_entry_set(test_en, "This is the test entry");
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Setting the text displaed within the scrolled entry had succeed.");
+       
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_entry_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_entry_set_func_02(void)
+{
+       // Current return type of this API is "void"
+       elm_scrolled_entry_entry_set(NULL, "This is Negative test case");
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Setting the text displayed within the scrolled entry had failed.");
+       
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_line_char_wrap_set_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_line_char_wrap_set_func.c
new file mode 100644 (file)
index 0000000..fb8024c
--- /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_scrolled_entry_line_char_wrap_set_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_line_char_wrap_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_line_char_wrap_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_line_char_wrap_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_scrolled_entry_line_char_wrap_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_line_char_wrap_set_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+
+       // Current return type of this API is "void".
+       elm_scrolled_entry_line_char_wrap_set(test_en, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Enabling character line wrapping in the scrolled entry object had succeed.");
+       
+
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_line_char_wrap_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_line_char_wrap_set_func_02(void)
+{
+       // Current return type of this API is "void".
+       elm_scrolled_entry_line_char_wrap_set(NULL, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Enabling character line wrapping in the scrolled entry object had succeed.");
+
+
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_line_wrap_set_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_line_wrap_set_func.c
new file mode 100644 (file)
index 0000000..04ce089
--- /dev/null
@@ -0,0 +1,96 @@
+#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_scrolled_entry_line_wrap_set_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_line_wrap_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_line_wrap_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_line_wrap_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_scrolled_entry_line_wrap_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_line_wrap_set_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+
+       // Current return type of this API is "void"
+       elm_scrolled_entry_line_wrap_set(test_en, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Enabling word line wrapping in the scrolled entry object had succeed.");
+
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_line_wrap_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_line_wrap_set_func_02(void)
+{
+       // Current return type of this API is "void"
+       elm_scrolled_entry_line_wrap_set(NULL, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Enabling word line wrapping in the scrolled entry object had failed.");
+       
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_password_get_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_password_get_func.c
new file mode 100644 (file)
index 0000000..eaff140
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_scrolled_entry_password_get_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_password_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_password_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_password_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_scrolled_entry_password_get()
+ */
+static void utc_UIFW_elm_scrolled_entry_password_get_func_01(void)
+{
+       Eina_Bool result;
+
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+       elm_scrolled_entry_password_set(test_en, EINA_TRUE);
+       
+       result = elm_scrolled_entry_password_get(test_en);
+
+       if ( result == EINA_TRUE) {
+               tet_result(TET_PASS);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Getting the status that the scrolled entry is on password mode had succeed.");
+       } else {
+               tet_result(TET_FAIL);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:FAIL, Getting the status that the scrolled entry is on password mode had failed.");
+       
+       }
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_password_get()
+ */
+static void utc_UIFW_elm_scrolled_entry_password_get_func_02(void)
+{
+       Eina_Bool result;
+
+       result = elm_scrolled_entry_password_get(NULL);
+
+       if ( result == EINA_FALSE) {
+               tet_result(TET_PASS);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, In case that the scrolled entry is NULL, this API should return FALSE.");
+       } else {
+               tet_result(TET_FAIL);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:FAIL, Error occurs while getting the status that the scrolled entry is on password mode.");
+       }
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_password_set_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_password_set_func.c
new file mode 100644 (file)
index 0000000..735acb6
--- /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_scrolled_entry_password_set_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_password_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_password_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_password_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_scrolled_entry_password_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_password_set_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+       
+       // Current return type of this API is "void".
+       elm_scrolled_entry_password_set(test_en, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Setting the scrolled entry object to password mode had succeed.");
+
+}
+
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_password_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_password_set_func_02(void)
+{
+       // Current return type of this API is "void".
+       elm_scrolled_entry_password_set(NULL, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Setting the scrolled entry object to password mode had failed.");
+
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_select_all_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_select_all_func.c
new file mode 100644 (file)
index 0000000..0916688
--- /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_scrolled_entry_select_all_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_select_all_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_select_all_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_select_all_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_scrolled_entry_select_all()
+ */
+static void utc_UIFW_elm_scrolled_entry_select_all_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+       elm_scrolled_entry_entry_set(test_en, "This is test scrolled entry");
+
+       // Current return type of this API is "void".
+       elm_scrolled_entry_select_all(test_en);
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Selecting all text within the scrolled entry had succeed.");
+
+
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_select_all()
+ */
+static void utc_UIFW_elm_scrolled_entry_select_all_func_02(void)
+{
+       // Current return type of this API is "void".
+       elm_scrolled_entry_select_all(NULL);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Selecting all text within the scrolled entry had failed.");
+
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_select_none_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_select_none_func.c
new file mode 100644 (file)
index 0000000..c61fdd8
--- /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_scrolled_entry_select_none_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_select_none_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_select_none_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_select_none_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_scrolled_entry_select_none()
+ */
+static void utc_UIFW_elm_scrolled_entry_select_none_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+       elm_scrolled_entry_entry_set(test_en, "This is test scrolled entry");
+       elm_scrolled_entry_select_all(test_en);
+
+       // Current return type of this API is "void".
+       elm_scrolled_entry_select_none(test_en);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Dropping any existing test selection within the scrolled entry had succeed.");
+
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_select_none()
+ */
+static void utc_UIFW_elm_scrolled_entry_select_none_func_02(void)
+{
+       // Current return type of this API is "void".
+       elm_scrolled_entry_select_none(NULL);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Negative, [RESULT]:PASS, Dropping any existing test selection within the scrolled entry had failed.");
+       
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_selection_get_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_selection_get_func.c
new file mode 100644 (file)
index 0000000..6040072
--- /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...) \
+{ \
+       const char *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...) \
+{ \
+       const char *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_scrolled_entry_selection_get_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_selection_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_selection_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_selection_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_scrolled_entry_selection_get()
+ */
+static void utc_UIFW_elm_scrolled_entry_selection_get_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+       elm_scrolled_entry_entry_set(test_en, "This is test scrolled entry");
+       elm_scrolled_entry_select_all(test_en);
+
+       const char *s = elm_scrolled_entry_selection_get(test_en);
+       TET_CHECK_PASS(NULL, s);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Getting all selected text within scrolled entry had succeed.");
+
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_selection_get()
+ */
+static void utc_UIFW_elm_scrolled_entry_selection_get_func_02(void)
+{
+       const char *s = elm_scrolled_entry_selection_get(NULL);
+       TET_CHECK_FAIL(NULL, s);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Getting all selected text within scrolled entry had failed.");
+       
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_single_line_get_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_single_line_get_func.c
new file mode 100644 (file)
index 0000000..6255edd
--- /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_scrolled_entry_single_line_get_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_single_line_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_single_line_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_single_line_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_scrolled_entry_single_line_get()
+ */
+static void utc_UIFW_elm_scrolled_entry_single_line_get_func_01(void)
+{
+       Eina_Bool result;
+
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+
+       elm_scrolled_entry_single_line_set(test_en, EINA_TRUE);
+       result = elm_scrolled_entry_single_line_get(test_en);
+
+       if (result == EINA_TRUE) {
+               tet_result(TET_PASS);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Getting the status that the scrolled entry has been set to single line mode had succeed.");
+       } else {
+               tet_result(TET_FAIL);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:FAIL, Error occurs while getting the status that the scrolled entry has been set to single line mode.");
+       }
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_single_line_get()
+ */
+static void utc_UIFW_elm_scrolled_entry_single_line_get_func_02(void)
+{
+       Eina_Bool result;
+
+       result = elm_scrolled_entry_single_line_get(NULL);
+
+       if (result == EINA_FALSE) {
+               tet_result(TET_PASS);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Getting the status that the scrolled entry has been set to single line mode had succeed.");
+       } else {
+               tet_result(TET_FAIL);
+               tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:FAIL, Error occurs while getting the status that the scrolled entry has been set to single line mode.");
+       }
+}
diff --git a/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_single_line_set_func.c b/TC/elm_ts/scrolled_entry/utc_UIFW_elm_scrolled_entry_single_line_set_func.c
new file mode 100644 (file)
index 0000000..7fd6328
--- /dev/null
@@ -0,0 +1,96 @@
+#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_scrolled_entry_single_line_set_func_01(void);
+static void utc_UIFW_elm_scrolled_entry_single_line_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_scrolled_entry_single_line_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_scrolled_entry_single_line_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_scrolled_entry_single_line_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_single_line_set_func_01(void)
+{
+       Evas_Object *test_en = elm_scrolled_entry_add(main_win);
+
+       // Current return type of this target API is "Void".
+       elm_scrolled_entry_single_line_set(test_en, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Setting the scrolled entry object not to line wrap had succeed.");
+
+}
+
+/**
+ * @brief Negative test case of ug_init elm_scrolled_entry_single_line_set()
+ */
+static void utc_UIFW_elm_scrolled_entry_single_line_set_func_02(void)
+{
+       // Current return type of this target API is "Void".
+       elm_scrolled_entry_single_line_set(NULL, EINA_TRUE);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Setting the scrolled entry object no to line wrap had failed.");
+
+}
diff --git a/TC/elm_ts/slider/Makefile b/TC/elm_ts/slider/Makefile
new file mode 100644 (file)
index 0000000..89e587b
--- /dev/null
@@ -0,0 +1,50 @@
+CC ?= gcc
+
+TARGETS = utc_UIFW_elm_slider_add_func \
+               utc_UIFW_elm_slider_end_icon_get_func \
+               utc_UIFW_elm_slider_end_icon_set_func \
+               utc_UIFW_elm_slider_end_label_get_func \
+               utc_UIFW_elm_slider_end_label_set_func \
+               utc_UIFW_elm_slider_horizontal_get_func \
+               utc_UIFW_elm_slider_horizontal_set_func \
+               utc_UIFW_elm_slider_icon_get_func \
+               utc_UIFW_elm_slider_icon_set_func \
+               utc_UIFW_elm_slider_indicator_format_function_set_func \
+               utc_UIFW_elm_slider_indicator_format_get_func \
+               utc_UIFW_elm_slider_indicator_format_set_func \
+               utc_UIFW_elm_slider_indicator_show_set_func \
+        utc_UIFW_elm_slider_inverted_get_func \
+        utc_UIFW_elm_slider_inverted_set_func \
+               utc_UIFW_elm_slider_label_get_func \
+               utc_UIFW_elm_slider_label_set_func \
+        utc_UIFW_elm_slider_min_max_get_func \
+        utc_UIFW_elm_slider_min_max_set_func \
+               utc_UIFW_elm_slider_span_size_get_func \
+               utc_UIFW_elm_slider_span_size_set_func \
+        utc_UIFW_elm_slider_unit_format_get_func \
+        utc_UIFW_elm_slider_unit_format_set_func \
+               utc_UIFW_elm_slider_value_animated_set_func \
+               utc_UIFW_elm_slider_value_get_func \
+        utc_UIFW_elm_slider_value_set_func 
+                
+
+PKGS = elementary
+
+LDFLAGS = `pkg-config --libs $(PKGS)`
+LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
+LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s
+LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s
+
+CFLAGS = -I. `pkg-config --cflags $(PKGS)`
+CFLAGS += -I$(TET_ROOT)/inc/tet3
+CFLAGS += -Wall
+
+all: $(TARGETS)
+
+$(TARGET): %: %.c
+       $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
+
+clean:
+       rm -f $(TARGETS)
+       rm -f tet_captured
+       rm -f *~
diff --git a/TC/elm_ts/slider/tc_gen.sh b/TC/elm_ts/slider/tc_gen.sh
new file mode 100644 (file)
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/slider/tslist b/TC/elm_ts/slider/tslist
new file mode 100644 (file)
index 0000000..bba9ba5
--- /dev/null
@@ -0,0 +1,26 @@
+/elm_ts/slider/utc_UIFW_elm_slider_add_func
+/elm_ts/slider/utc_UIFW_elm_slider_end_icon_get_func
+/elm_ts/slider/utc_UIFW_elm_slider_end_icon_set_func
+/elm_ts/slider/utc_UIFW_elm_slider_end_label_get_func
+/elm_ts/slider/utc_UIFW_elm_slider_end_label_set_func
+/elm_ts/slider/utc_UIFW_elm_slider_horizontal_get_func
+/elm_ts/slider/utc_UIFW_elm_slider_horizontal_set_func
+/elm_ts/slider/utc_UIFW_elm_slider_icon_get_func
+/elm_ts/slider/utc_UIFW_elm_slider_icon_set_func
+/elm_ts/slider/utc_UIFW_elm_slider_indicator_format_function_set_func
+/elm_ts/slider/utc_UIFW_elm_slider_indicator_format_get_func
+/elm_ts/slider/utc_UIFW_elm_slider_indicator_format_set_func
+/elm_ts/slider/utc_UIFW_elm_slider_indicator_show_set_func
+/elm_ts/slider/utc_UIFW_elm_slider_inverted_get_func
+/elm_ts/slider/utc_UIFW_elm_slider_inverted_set_func
+/elm_ts/slider/utc_UIFW_elm_slider_label_get_func
+/elm_ts/slider/utc_UIFW_elm_slider_label_set_func
+/elm_ts/slider/utc_UIFW_elm_slider_min_max_get_func
+/elm_ts/slider/utc_UIFW_elm_slider_min_max_set_func
+/elm_ts/slider/utc_UIFW_elm_slider_span_size_get_func
+/elm_ts/slider/utc_UIFW_elm_slider_span_size_set_func
+/elm_ts/slider/utc_UIFW_elm_slider_unit_format_get_func
+/elm_ts/slider/utc_UIFW_elm_slider_unit_format_set_func
+/elm_ts/slider/utc_UIFW_elm_slider_value_animated_set_func
+/elm_ts/slider/utc_UIFW_elm_slider_value_get_func
+/elm_ts/slider/utc_UIFW_elm_slider_value_set_func
diff --git a/TC/elm_ts/slider/utc_MODULE_API_func.c.in b/TC/elm_ts/slider/utc_MODULE_API_func.c.in
new file mode 100644 (file)
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/slider/utc_UIFW_elm_slider_add_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_add_func.c
new file mode 100644 (file)
index 0000000..1ca00d3
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_add_func_01(void);
+static void utc_UIFW_elm_slider_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_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_slider_add()
+ */
+static void utc_UIFW_elm_slider_add_func_01(void)
+{
+        Evas_Object *slider;
+
+       slider = elm_slider_add(main_win);
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+
+       if (!slider) {
+               tet_infoline("elm_slider_add() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_add()
+ */
+static void utc_UIFW_elm_slider_add_func_02(void)
+{
+        Evas_Object *slider;
+
+        slider = elm_slider_add(NULL);
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+
+       if (slider) {
+               tet_infoline("elm_slider_add() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_end_icon_get_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_end_icon_get_func.c
new file mode 100644 (file)
index 0000000..4189cb4
--- /dev/null
@@ -0,0 +1,132 @@
+#include <tet_api.h>
+#include <Elementary.h>
+#define ICON_DIR "usr/share/beat_winset_test/icon"
+// 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_slider_end_icon_get_func_01(void);
+static void utc_UIFW_elm_slider_end_icon_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_end_icon_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_end_icon_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_slider_end_icon_get()
+ */
+static void utc_UIFW_elm_slider_end_icon_get_func_01(void)
+{
+        Evas_Object *icon, *ret_icon = NULL;
+        Evas_Object *slider;
+        char buf[255] = {0,};
+
+        icon = elm_icon_add(main_win);
+        snprintf (buf, sizeof(buf), "%s/00_brightness_right.png", ICON_DIR);
+        elm_icon_file_set(icon, buf, NULL);
+        evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+
+        slider = elm_slider_add(main_win);
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+
+        elm_slider_end_icon_set(slider, icon);
+        ret_icon = elm_slider_end_icon_get(slider);
+
+       if (!ret_icon) {
+               tet_infoline("elm_slider_end_icon_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_end_icon_get()
+ */
+static void utc_UIFW_elm_slider_end_icon_get_func_02(void)
+{
+        Evas_Object *icon, *ret_icon;
+        Evas_Object *slider;
+        char buf[255] = {0,};
+
+        icon = elm_icon_add(main_win);
+        snprintf (buf, sizeof(buf), "%s/00_brightness_right.png", ICON_DIR);
+        elm_icon_file_set(icon, buf, NULL);
+        evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+
+        slider = elm_slider_add(main_win);
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+
+        elm_slider_end_icon_set(slider, icon);
+        ret_icon = elm_slider_end_icon_get(NULL);
+
+       if (ret_icon) {
+               tet_infoline("elm_slider_end_icon_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_end_icon_set_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_end_icon_set_func.c
new file mode 100644 (file)
index 0000000..7f61b5d
--- /dev/null
@@ -0,0 +1,118 @@
+#include <tet_api.h>
+#include <Elementary.h>
+#define ICON_DIR "usr/share/beat_winset_test/icon"
+// 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_slider_end_icon_set_func_01(void);
+static void utc_UIFW_elm_slider_end_icon_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_end_icon_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_end_icon_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_slider_end_icon_set()
+ */
+static void utc_UIFW_elm_slider_end_icon_set_func_01(void)
+{
+        Evas_Object *icon, *ret_icon;
+        Evas_Object *slider;
+        Eina_Bool ret = EINA_FALSE;
+
+        icon = elm_icon_add(main_win);
+        elm_icon_file_set(icon, ICON_DIR"/00_brightness_right.png", NULL);
+        evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+
+        slider = elm_slider_add(main_win);
+        ret = elm_slider_end_icon_set(slider, icon);
+        ret_icon = elm_slider_end_icon_get(slider);
+
+        if (!ret_icon && !ret) {
+              tet_infoline("elm_slider_end_icon_set() failed in positive test case");
+              tet_result(TET_FAIL);
+             return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_end_icon_set()
+ */
+static void utc_UIFW_elm_slider_end_icon_set_func_02(void)
+{
+        Evas_Object *icon, *ret_icon;
+        Evas_Object *slider;
+        Eina_Bool ret = EINA_FALSE;
+
+        icon = elm_icon_add(main_win);
+        elm_icon_file_set(icon, ICON_DIR"/00_brightness_right.png", NULL);
+        evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+
+        slider = elm_slider_add(main_win);
+        ret = elm_slider_end_icon_set(slider, NULL);
+        ret_icon = elm_slider_end_icon_get(slider);
+
+       if (ret_icon && ret) {
+               tet_infoline("elm_slider_end_icon_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_end_label_get_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_end_label_get_func.c
new file mode 100644 (file)
index 0000000..040a52e
--- /dev/null
@@ -0,0 +1,110 @@
+#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_slider_end_label_get_func_01(void);
+static void utc_UIFW_elm_slider_end_label_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_end_label_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_end_label_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_slider_end_label_get()
+ */
+static void utc_UIFW_elm_slider_end_label_get_func_01(void)
+{
+        Evas_Object *slider;
+        const char *ret = NULL;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_end_label_set(slider, "Hello!!!");
+       ret = elm_slider_end_label_get(slider);
+
+       if (!ret && !strcmp(ret, "Hello!!!")) {
+               tet_infoline("elm_slider_end_label_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_end_label_get()
+ */
+static void utc_UIFW_elm_slider_end_label_get_func_02(void)
+{
+        Evas_Object *slider;
+        const char *ret = NULL;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_end_label_set(slider, "Hello!!!");
+        ret = elm_slider_end_label_get(NULL);
+
+        if (ret) {
+               tet_infoline("elm_slider_end_label_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_end_label_set_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_end_label_set_func.c
new file mode 100644 (file)
index 0000000..fd9c02f
--- /dev/null
@@ -0,0 +1,110 @@
+#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_slider_end_label_set_func_01(void);
+static void utc_UIFW_elm_slider_end_label_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_end_label_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_end_label_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_slider_end_label_set()
+ */
+static void utc_UIFW_elm_slider_end_label_set_func_01(void)
+{
+        Evas_Object *slider;
+        const char *ret = NULL;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_end_label_set(slider, "Hello!!!");
+        ret = elm_slider_end_label_get(slider);
+
+        if (!ret && !strcmp(ret, "Hello!!!")) {
+               tet_infoline("elm_slider_end_label_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_end_label_set()
+ */
+static void utc_UIFW_elm_slider_end_label_set_func_02(void)
+{
+        Evas_Object *slider;
+        const char *ret = NULL;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_end_label_set(NULL, "Hello!!!");
+        ret = elm_slider_end_label_get(slider);
+
+        if (ret) {
+               tet_infoline("elm_slider_end_label_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_horizontal_get_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_horizontal_get_func.c
new file mode 100644 (file)
index 0000000..acdd534
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_horizontal_get_func_01(void);
+static void utc_UIFW_elm_slider_horizontal_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_horizontal_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_horizontal_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_slider_horizontal_get()
+ */
+static void utc_UIFW_elm_slider_horizontal_get_func_01(void)
+{
+        Evas_Object *slider;
+        Eina_Bool ret = EINA_FALSE;
+
+        slider = elm_slider_add(main_win);
+        elm_slider_horizontal_set(slider, EINA_TRUE);
+        ret = elm_slider_horizontal_get(slider);
+
+       if (!ret) {
+               tet_infoline("elm_slider_horizontal_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_horizontal_get()
+ */
+static void utc_UIFW_elm_slider_horizontal_get_func_02(void)
+{
+        Evas_Object *slider;
+        Eina_Bool ret = EINA_FALSE;
+
+        slider = elm_slider_add(main_win);
+        elm_slider_horizontal_set(slider, EINA_TRUE);
+        ret = elm_slider_horizontal_get(NULL);
+
+         if (ret) {
+               tet_infoline("elm_slider_horizontal_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_horizontal_set_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_horizontal_set_func.c
new file mode 100644 (file)
index 0000000..c773e8e
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_horizontal_set_func_01(void);
+static void utc_UIFW_elm_slider_horizontal_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_horizontal_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_horizontal_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_slider_horizontal_set()
+ */
+static void utc_UIFW_elm_slider_horizontal_set_func_01(void)
+{
+        Evas_Object *slider;
+        Eina_Bool ret = EINA_FALSE;
+
+        slider = elm_slider_add(main_win);
+        elm_slider_horizontal_set(slider, EINA_TRUE);
+        ret = elm_slider_horizontal_get(slider);
+
+        if (!ret) {
+               tet_infoline("elm_slider_horizontal_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_horizontal_set()
+ */
+static void utc_UIFW_elm_slider_horizontal_set_func_02(void)
+{
+        Evas_Object *slider;
+        Eina_Bool ret1 = EINA_TRUE;
+        Eina_Bool ret2 = EINA_FALSE;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_horizontal_set(slider, EINA_FALSE);
+        ret1 = elm_slider_horizontal_get(slider);
+        elm_slider_horizontal_set(NULL, EINA_TRUE);
+        ret2 = elm_slider_horizontal_get(slider);
+
+        if (!ret1 && ret2) {
+               tet_infoline("elm_slider_horizontal_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_icon_get_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_icon_get_func.c
new file mode 100644 (file)
index 0000000..35e6c45
--- /dev/null
@@ -0,0 +1,117 @@
+#include <tet_api.h>
+#include <Elementary.h>
+#define ICON_DIR "usr/share/beat_winset_test/icon"
+
+// 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_slider_icon_get_func_01(void);
+static void utc_UIFW_elm_slider_icon_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_icon_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_icon_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_slider_icon_get()
+ */
+static void utc_UIFW_elm_slider_icon_get_func_01(void)
+{
+        Evas_Object *icon, *ret_icon;
+        Evas_Object *slider;
+
+        icon = elm_icon_add(main_win);
+        elm_icon_file_set(icon, ICON_DIR"/00_brightness_right.png", NULL);
+        evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+
+        slider = elm_slider_add(main_win);
+        elm_slider_icon_set(slider, icon);
+        ret_icon = elm_slider_icon_get(slider);
+
+        if (!ret_icon) {
+               tet_infoline("elm_slider_icon_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_icon_get()
+ */
+static void utc_UIFW_elm_slider_icon_get_func_02(void)
+{
+        Evas_Object *icon, *ret_icon = NULL;
+        Evas_Object *slider;
+
+        icon = elm_icon_add(main_win);
+        elm_icon_file_set(icon, ICON_DIR"/00_brightness_right.png", NULL);
+        evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+
+        slider = elm_slider_add(main_win);
+        elm_slider_icon_set(slider, icon);
+        ret_icon = elm_slider_icon_get(NULL);
+
+        if (ret_icon) {
+               tet_infoline("elm_slider_icon_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_icon_set_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_icon_set_func.c
new file mode 100644 (file)
index 0000000..c5b29a8
--- /dev/null
@@ -0,0 +1,131 @@
+#include <tet_api.h>
+#include <Elementary.h>
+#define ICON_DIR "usr/share/beat_winset_test/icon"
+
+// 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_slider_icon_set_func_01(void);
+static void utc_UIFW_elm_slider_icon_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_icon_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_icon_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_slider_icon_set()
+ */
+static void utc_UIFW_elm_slider_icon_set_func_01(void)
+{
+        Evas_Object *icon, *ret_icon;
+        Evas_Object *slider;
+        char buf[255] = {0,};
+
+        icon = elm_icon_add(main_win);
+        snprintf (buf, sizeof(buf), "%s/00_brightness_right.png", ICON_DIR);
+        elm_icon_file_set(icon, buf, NULL);
+        evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+
+        slider = elm_slider_add(main_win);
+        elm_slider_min_max_set(slider, 1, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+
+        elm_slider_icon_set(slider, icon);
+        ret_icon = elm_slider_icon_get(slider);
+
+        if (!ret_icon) {
+               tet_infoline("elm_slider_icon_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_icon_set()
+ */
+static void utc_UIFW_elm_slider_icon_set_func_02(void)
+{
+         Evas_Object *icon, *ret_icon;
+         Evas_Object *slider;
+
+         icon = elm_icon_add(main_win);
+         elm_icon_file_set(icon, ICON_DIR"/00_brightness_right.png", NULL);
+         evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+
+         slider = elm_slider_add(main_win);
+         elm_slider_min_max_set(slider, 1, 9);
+         elm_slider_label_set(slider, "Text");
+         elm_slider_value_set(slider, 3);
+         evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+         evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+
+         elm_slider_icon_set(NULL, icon);
+         ret_icon = elm_slider_icon_get(slider);
+
+         if (!ret_icon) {
+               tet_infoline("elm_slider_icon_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_indicator_format_function_set_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_indicator_format_function_set_func.c
new file mode 100644 (file)
index 0000000..72f5cf3
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_indicator_format_function_set_func_01(void);
+static void utc_UIFW_elm_slider_indicator_format_function_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_indicator_format_function_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_indicator_format_function_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 ============ ");
+}
+
+static const char *format_func (double val)
+{
+   const char *format = "%1.0f";
+   return format;
+}
+
+/**
+ * @brief Positive test case of elm_slider_indicator_format_function_set()
+ */
+static void utc_UIFW_elm_slider_indicator_format_function_set_func_01(void)
+{
+        Evas_Object *slider;
+        const char *ret_for = NULL;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_indicator_format_function_set(slider, format_func);
+        ret_for = elm_slider_indicator_format_get(slider);
+
+       if (!slider) {
+               tet_infoline("elm_slider_indicator_format_function_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_indicator_format_function_set()
+ */
+static void utc_UIFW_elm_slider_indicator_format_function_set_func_02(void)
+{
+        Evas_Object *slider;
+        const char *ret_for = NULL;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_indicator_format_function_set(NULL, format_func);
+        ret_for = elm_slider_indicator_format_get(slider);
+
+        if (!slider) {
+               tet_infoline("elm_slider_indicator_format_function_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_indicator_format_get_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_indicator_format_get_func.c
new file mode 100644 (file)
index 0000000..1aa3185
--- /dev/null
@@ -0,0 +1,111 @@
+#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_slider_indicator_format_get_func_01(void);
+static void utc_UIFW_elm_slider_indicator_format_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_indicator_format_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_indicator_format_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_slider_indicator_format_get()
+ */
+static void utc_UIFW_elm_slider_indicator_format_get_func_01(void)
+{
+        Evas_Object *slider;
+        const char *ret_for = NULL;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_indicator_format_set(slider, "%1.0f");
+        ret_for = elm_slider_indicator_format_get(slider);
+
+        if (strcmp(ret_for, "%1.0f")) {
+               tet_infoline("elm_slider_indicator_format_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_indicator_format_get()
+ */
+static void utc_UIFW_elm_slider_indicator_format_get_func_02(void)
+{
+        Evas_Object *slider;
+        const char *ret_for = NULL;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_indicator_format_set(slider, "%1.0f");
+        ret_for = elm_slider_indicator_format_get(NULL);
+
+        if (ret_for) {
+               tet_infoline("elm_slider_indicator_format_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_indicator_format_set_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_indicator_format_set_func.c
new file mode 100644 (file)
index 0000000..8147d96
--- /dev/null
@@ -0,0 +1,110 @@
+#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_slider_indicator_format_set_func_01(void);
+static void utc_UIFW_elm_slider_indicator_format_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_indicator_format_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_indicator_format_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_slider_indicator_format_set()
+ */
+static void utc_UIFW_elm_slider_indicator_format_set_func_01(void)
+{
+        Evas_Object *slider;
+        const char *ret_for = NULL;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_indicator_format_set(slider, "%1.0f");
+        ret_for = elm_slider_indicator_format_get(slider);
+
+        if (strcmp(ret_for, "%1.0f")) {
+               tet_infoline("elm_slider_indicator_format_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_indicator_format_set()
+ */
+static void utc_UIFW_elm_slider_indicator_format_set_func_02(void)
+{
+        Evas_Object *slider;
+        const char *ret_for = NULL;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_indicator_format_set(NULL, "%1.0f");
+        ret_for = elm_slider_indicator_format_get(slider);
+
+        if (ret_for) {
+               tet_infoline("elm_slider_indicator_format_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_indicator_show_set_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_indicator_show_set_func.c
new file mode 100644 (file)
index 0000000..203ebaa
--- /dev/null
@@ -0,0 +1,114 @@
+#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_slider_indicator_show_set_func_01(void);
+static void utc_UIFW_elm_slider_indicator_show_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_indicator_show_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_indicator_show_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_slider_indicator_show_set()
+ */
+static void utc_UIFW_elm_slider_indicator_show_set_func_01(void)
+{
+        Evas_Object *slider;
+
+        slider = elm_slider_add(main_win);
+        elm_slider_indicator_show_set(slider, EINA_TRUE);
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+
+       if (!slider) {
+               tet_infoline("elm_slider_indicator_show_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_indicator_show_set()
+ */
+static void utc_UIFW_elm_slider_indicator_show_set_func_02(void)
+{
+        Evas_Object *slider;
+
+        slider = elm_slider_add(main_win);
+        elm_slider_indicator_show_set(NULL, EINA_TRUE);
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+
+       if (!slider) {
+               tet_infoline("elm_slider_indicator_show_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_inverted_get_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_inverted_get_func.c
new file mode 100644 (file)
index 0000000..0d5388c
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_inverted_get_func_01(void);
+static void utc_UIFW_elm_slider_inverted_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_inverted_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_inverted_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_slider_inverted_get()
+ */
+static void utc_UIFW_elm_slider_inverted_get_func_01(void)
+{
+        Evas_Object *slider;
+        Eina_Bool ret = EINA_FALSE;
+
+        slider = elm_slider_add(main_win);
+        elm_slider_indicator_show_set(slider, EINA_TRUE);
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        elm_slider_inverted_set(slider, EINA_TRUE);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        ret = elm_slider_inverted_get(slider);
+
+       if (!ret) {
+               tet_infoline("elm_slider_inverted_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_inverted_get()
+ */
+static void utc_UIFW_elm_slider_inverted_get_func_02(void)
+{
+        Evas_Object *slider;
+        Eina_Bool ret = EINA_FALSE;
+
+        slider = elm_slider_add(main_win);
+        elm_slider_indicator_show_set(slider, EINA_TRUE);
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        elm_slider_inverted_set(slider, EINA_TRUE);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        ret = elm_slider_inverted_get(NULL);
+
+       if (ret) {
+               tet_infoline("elm_slider_inverted_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_inverted_set_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_inverted_set_func.c
new file mode 100644 (file)
index 0000000..e9d5f91
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_inverted_set_func_01(void);
+static void utc_UIFW_elm_slider_inverted_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_inverted_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_inverted_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_slider_inverted_set()
+ */
+static void utc_UIFW_elm_slider_inverted_set_func_01(void)
+{
+        Evas_Object *slider;
+        Eina_Bool ret = EINA_FALSE;
+
+        slider = elm_slider_add(main_win);
+        elm_slider_indicator_show_set(slider, EINA_TRUE);
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        elm_slider_inverted_set(slider, EINA_TRUE);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        ret = elm_slider_inverted_get(slider);
+
+         if (!ret) {
+               tet_infoline("elm_slider_inverted_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_inverted_set()
+ */
+static void utc_UIFW_elm_slider_inverted_set_func_02(void)
+{
+        Evas_Object *slider;
+        Eina_Bool ret = EINA_TRUE;
+
+        slider = elm_slider_add(main_win);
+        elm_slider_indicator_show_set(slider, EINA_FALSE);
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        elm_slider_inverted_set(NULL, EINA_TRUE);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        ret = elm_slider_inverted_get(slider);
+
+         if (ret) {
+               tet_infoline("elm_slider_inverted_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_label_get_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_label_get_func.c
new file mode 100644 (file)
index 0000000..2c541c2
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_label_get_func_01(void);
+static void utc_UIFW_elm_slider_label_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_label_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_label_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_slider_label_get()
+ */
+static void utc_UIFW_elm_slider_label_get_func_01(void)
+{
+        Evas_Object *slider;
+        const char *ret = NULL;
+
+        slider = elm_slider_add(main_win);
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        ret = elm_slider_label_get(slider);
+
+       if (!ret) {
+               tet_infoline("elm_slider_label_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_label_get()
+ */
+static void utc_UIFW_elm_slider_label_get_func_02(void)
+{
+        Evas_Object *slider;
+        const char * ret = NULL;
+
+        slider = elm_slider_add(main_win);
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        ret = elm_slider_label_get(NULL);
+
+         if (ret) {
+               tet_infoline("elm_slider_label_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_label_set_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_label_set_func.c
new file mode 100644 (file)
index 0000000..df79bf8
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_label_set_func_01(void);
+static void utc_UIFW_elm_slider_label_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_label_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_label_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_slider_label_set()
+ */
+static void utc_UIFW_elm_slider_label_set_func_01(void)
+{
+        Evas_Object *slider;
+        const char *ret = NULL;
+
+        slider = elm_slider_add(main_win);
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        ret = elm_slider_label_get(slider);
+
+        if (!ret) {
+               tet_infoline("elm_slider_label_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_label_set()
+ */
+static void utc_UIFW_elm_slider_label_set_func_02(void)
+{
+        Evas_Object *slider;
+        const char *ret = NULL;
+
+        slider = elm_slider_add(main_win);
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(NULL, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        ret = elm_slider_label_get(slider);
+
+        if (ret) {
+               tet_infoline("elm_slider_label_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_min_max_get_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_min_max_get_func.c
new file mode 100644 (file)
index 0000000..d4911a8
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_min_max_get_func_01(void);
+static void utc_UIFW_elm_slider_min_max_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_min_max_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_min_max_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_slider_min_max_get()
+ */
+static void utc_UIFW_elm_slider_min_max_get_func_01(void)
+{
+        Evas_Object *slider;
+        double min = 0.0, max = 0.0;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 1, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        elm_slider_min_max_get(slider, &min, &max);
+
+        if (!(min == 1) || !(max == 9)) {
+               tet_infoline("elm_slider_min_max_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_min_max_get()
+ */
+static void utc_UIFW_elm_slider_min_max_get_func_02(void)
+{
+        Evas_Object *slider;
+        double min = 0.0, max = 0.0;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 1, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        elm_slider_min_max_get(NULL, &min, &max);
+
+         if ((min == 1) || (max == 9)) {
+               tet_infoline("elm_slider_min_max_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_min_max_set_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_min_max_set_func.c
new file mode 100644 (file)
index 0000000..02d69be
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_min_max_set_func_01(void);
+static void utc_UIFW_elm_slider_min_max_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_min_max_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_min_max_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_slider_min_max_set()
+ */
+static void utc_UIFW_elm_slider_min_max_set_func_01(void)
+{
+        Evas_Object *slider;
+        double min = 0.0, max = 0.0;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 1, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        elm_slider_min_max_get(slider, &min, &max);
+
+         if (!(min == 1) || !(max == 9)) {
+               tet_infoline("elm_slider_min_max_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_min_max_set()
+ */
+static void utc_UIFW_elm_slider_min_max_set_func_02(void)
+{
+        Evas_Object *slider;
+        double min = 0.0, max = 0.0;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(NULL, 1, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        elm_slider_min_max_get(slider, &min, &max);
+
+        if ((min == 1) || (max == 9)) {
+               tet_infoline("elm_slider_min_max_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_span_size_get_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_span_size_get_func.c
new file mode 100644 (file)
index 0000000..c870f51
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_span_size_get_func_01(void);
+static void utc_UIFW_elm_slider_span_size_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_span_size_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_span_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_slider_span_size_get()
+ */
+static void utc_UIFW_elm_slider_span_size_get_func_01(void)
+{
+        Evas_Object *slider;
+        Evas_Coord size = 0;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        elm_slider_span_size_set(slider, 120);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        size = elm_slider_span_size_get(slider);
+
+       if (!(size == 120)) {
+               tet_infoline("elm_slider_span_size_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_span_size_get()
+ */
+static void utc_UIFW_elm_slider_span_size_get_func_02(void)
+{
+        Evas_Object *slider;
+        Evas_Coord size = 0;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        elm_slider_span_size_set(slider, 120);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        size = elm_slider_span_size_get(NULL);
+
+         if ((size == 120)) {
+               tet_infoline("elm_slider_span_size_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_span_size_set_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_span_size_set_func.c
new file mode 100644 (file)
index 0000000..b93c199
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_span_size_set_func_01(void);
+static void utc_UIFW_elm_slider_span_size_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_span_size_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_span_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_slider_span_size_set()
+ */
+static void utc_UIFW_elm_slider_span_size_set_func_01(void)
+{
+        Evas_Object *slider;
+        Evas_Coord size = 0;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        elm_slider_span_size_set(slider, 120);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        size = elm_slider_span_size_get(slider);
+
+        if (!(size == 120)) {
+               tet_infoline("elm_slider_span_size_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_span_size_set()
+ */
+static void utc_UIFW_elm_slider_span_size_set_func_02(void)
+{
+        Evas_Object *slider;
+        Evas_Coord size = 0;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        elm_slider_span_size_set(NULL, 120);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        size = elm_slider_span_size_get(slider);
+
+        if (size) {
+               tet_infoline("elm_slider_span_size_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_unit_format_get_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_unit_format_get_func.c
new file mode 100644 (file)
index 0000000..3414302
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_unit_format_get_func_01(void);
+static void utc_UIFW_elm_slider_unit_format_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_unit_format_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_unit_format_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_slider_unit_format_get()
+ */
+static void utc_UIFW_elm_slider_unit_format_get_func_01(void)
+{
+        Evas_Object *slider;
+        const char *unit = NULL;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        elm_slider_unit_format_set(slider, "%1.2f meters");
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        unit = elm_slider_unit_format_get(slider);
+
+       if (!unit || strcmp(unit, "%1.2f meters")) {
+               tet_infoline("elm_slider_unit_format_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_unit_format_get()
+ */
+static void utc_UIFW_elm_slider_unit_format_get_func_02(void)
+{
+        Evas_Object *slider;
+        const char *unit = NULL;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        elm_slider_unit_format_set(slider, "%1.2f meters");
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        unit = elm_slider_unit_format_get(NULL);
+
+        if (unit) {
+               tet_infoline("elm_slider_unit_format_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_unit_format_set_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_unit_format_set_func.c
new file mode 100644 (file)
index 0000000..aab95a9
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_unit_format_set_func_01(void);
+static void utc_UIFW_elm_slider_unit_format_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_unit_format_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_unit_format_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_slider_unit_format_set()
+ */
+static void utc_UIFW_elm_slider_unit_format_set_func_01(void)
+{
+        Evas_Object *slider;
+        const char *unit = NULL;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        elm_slider_unit_format_set(slider, "%1.2f meters");
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        unit = elm_slider_unit_format_get(slider);
+
+        if (!unit || strcmp(unit, "%1.2f meters")) {
+               tet_infoline("elm_slider_unit_format_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_unit_format_set()
+ */
+static void utc_UIFW_elm_slider_unit_format_set_func_02(void)
+{
+        Evas_Object *slider;
+        const char *unit = NULL;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        elm_slider_unit_format_set(NULL, "%1.2f meters");
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        unit = elm_slider_unit_format_get(slider);
+
+        if (unit) {
+               tet_infoline("elm_slider_unit_format_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_value_animated_set_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_value_animated_set_func.c
new file mode 100644 (file)
index 0000000..5cc1fdd
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_value_animated_set_func_01(void);
+static void utc_UIFW_elm_slider_value_animated_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_value_animated_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_value_animated_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_slider_value_animated_set()
+ */
+static void utc_UIFW_elm_slider_value_animated_set_func_01(void)
+{
+        Evas_Object *slider;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        elm_slider_value_animated_set(slider, 0.5);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+
+        if (!slider) {
+               tet_infoline("elm_slider_value_animated_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_value_animated_set()
+ */
+static void utc_UIFW_elm_slider_value_animated_set_func_02(void)
+{
+        Evas_Object *slider;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        elm_slider_value_animated_set(NULL, 0.5);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+
+         if (!slider) {
+               tet_infoline("elm_slider_value_animated_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_value_get_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_value_get_func.c
new file mode 100644 (file)
index 0000000..af6e6ca
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_value_get_func_01(void);
+static void utc_UIFW_elm_slider_value_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_value_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_value_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_slider_value_get()
+ */
+static void utc_UIFW_elm_slider_value_get_func_01(void)
+{
+        Evas_Object *slider;
+        double value = 0.0;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        value = elm_slider_value_get(slider);
+
+       if (!(value == 3)) {
+               tet_infoline("elm_slider_value_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_value_get()
+ */
+static void utc_UIFW_elm_slider_value_get_func_02(void)
+{
+        Evas_Object *slider;
+        double value = 0.0;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        value = elm_slider_value_get(NULL);
+
+        if ((value == 3)) {
+               tet_infoline("elm_slider_value_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/slider/utc_UIFW_elm_slider_value_set_func.c b/TC/elm_ts/slider/utc_UIFW_elm_slider_value_set_func.c
new file mode 100644 (file)
index 0000000..0b7da43
--- /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;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_slider_value_set_func_01(void);
+static void utc_UIFW_elm_slider_value_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_slider_value_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_slider_value_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_slider_value_set()
+ */
+static void utc_UIFW_elm_slider_value_set_func_01(void)
+{
+        Evas_Object *slider;
+        double value = 0.0;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(slider, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        value = elm_slider_value_get(slider);
+
+        if (!(value == 3)) {
+               tet_infoline("elm_slider_value_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_slider_value_set()
+ */
+static void utc_UIFW_elm_slider_value_set_func_02(void)
+{
+        Evas_Object *slider;
+        double value = 0.0;
+
+        slider = elm_slider_add(main_win);
+
+        elm_slider_min_max_set(slider, 0, 9);
+        elm_slider_label_set(slider, "Text");
+        elm_slider_value_set(NULL, 3);
+        evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, 0.0);
+        evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
+        value = elm_slider_value_get(slider);
+
+        if (value) {
+               tet_infoline("elm_slider_value_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
index d2d7907..5c532ec 100644 (file)
@@ -28,8 +28,11 @@ elm
        :include:/elm_ts/toggle/tslist
        :include:/elm_ts/panes/tslist
        :include:/elm_ts/controlbar/tslist
-       :include:/elm_ts/segmentcontrol/tslist
+       :include:/elm_ts/index/tslist
+       :include:/elm_ts/nocontents/tslist
        :include:/elm_ts/scroller/tslist
+       :include:/elm_ts/segmentcontrol/tslist
+       :include:/elm_ts/slider/tslist
        :include:/elm_ts/dialoguegroup/tslist
        :include:/elm_ts/navigationbar_ex/tslist
        :include:/elm_ts/multibuttonentry/tslist
@@ -37,7 +40,7 @@ elm
        :include:/elm_ts/editfield/tslist
        :include:/elm_ts/box/tslist
        :include:/elm_ts/elm_scroller/tslist
-
+       :include:/elm_ts/scrolled_entry/tslist
 
 #yhkim
 ch 
index 29fa9f6..e5d5a42 100755 (executable)
@@ -32,7 +32,10 @@ elm
        :include:/elm_ts/panes/tslist
        :include:/elm_ts/controlbar/tslist
        :include:/elm_ts/scroller/tslist
+       :include:/elm_ts/index/tslist
+       :include:/elm_ts/nocontents/tslist
        :include:/elm_ts/segmentcontrol/tslist
+       :include:/elm_ts/slider/tslist
 
 
 #yhkim
index 56ace57..2da925c 100644 (file)
@@ -1,3 +1,11 @@
+elementary (1.0.0+svn.51480slp2+build43) unstable; urgency=low
+
+  * [elm_genlist] fix expandalbe list problem
+  * Git: 165.213.180.234:/git/slp/pkgs/elementary
+  * Tag: elementary_1.0.0+svn.51480slp2+build43
+
+ -- Juyung Seo <juyung.seo@samsung.com>  Tue, 26 Oct 2010 13:35:09 +0900
+
 elementary (1.0.0+svn.51480slp2+build42) unstable; urgency=low
 
   * beat black theme
old mode 100755 (executable)
new mode 100644 (file)
index 10cc1e1..6f682bc
@@ -653,6 +653,7 @@ extern "C" {
    EAPI void         elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled);
    EAPI Eina_Bool    elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item);
    EAPI Elm_Gengrid_Item *elm_gengrid_item_append(Evas_Object *obj, const Elm_Gengrid_Item_Class *gcc,  const void *data, Evas_Smart_Cb func, const void *func_data);
+   EAPI Elm_Gengrid_Item *elm_gengrid_item_prepend(Evas_Object *obj, const Elm_Gengrid_Item_Class *gcc,  const void *data, Evas_Smart_Cb func, const void *func_data);
    EAPI void         elm_gengrid_item_update(Elm_Gengrid_Item *it);
    /* smart callbacks called:
     *
@@ -2287,6 +2288,7 @@ extern "C" {
    EAPI void         elm_navigationbar_ex_delete_on_pop_set(Evas_Object *obj, Eina_Bool del_on_pop);
    EAPI Evas_Object *elm_navigationbar_ex_item_icon_get(Elm_Navigationbar_ex_Item* item);
    EAPI void         elm_navigationbar_ex_item_icon_set(Elm_Navigationbar_ex_Item* item, Evas_Object *icon);
+   EAPI Evas_Object *elm_navigationbar_ex_item_title_button_unset(Elm_Navigationbar_ex_Item* item, int button_type);
    
    
    /* Tab Bar */
old mode 100644 (file)
new mode 100755 (executable)
index b24f2de..81e1c0b
@@ -48,18 +48,13 @@ _theme_hook(Evas_Object *obj)
    _elm_theme_object_set(obj, wd->bbl, "bubble", "base", elm_widget_style_get(obj));
    edje_object_part_text_set(wd->bbl, "elm.text", wd->label);
    edje_object_part_text_set(wd->bbl, "elm.info", wd->info);
-    if (wd->content) 
-      { 
-         edje_object_part_swallow(wd->bbl, "elm.swallow.content", wd->content); 
-         edje_object_message_signal_process(wd->bbl); 
-      } 
-    if (wd->icon)
-       {
-          edje_object_part_swallow(wd->bbl, "elm.swallow.icon", wd->icon);
-          edje_object_signal_emit(wd->bbl, "elm,state,icon,visible", "elm");
-       }
-    else 
-       edje_object_signal_emit(wd->bbl, "elm,state,icon,hidden", "elm"); 
+   if (wd->content) edje_object_part_swallow(wd->bbl, "elm.swallow.content", wd->content); 
+   if (wd->icon)
+     {
+        edje_object_part_swallow(wd->bbl, "elm.swallow.icon", wd->icon);
+        edje_object_signal_emit(wd->bbl, "elm,state,icon,visible", "elm");
+        edje_object_message_signal_process(wd->bbl); 
+     }
    edje_object_scale_set(wd->bbl, elm_widget_scale_get(obj) * _elm_config->scale);
    _sizing_eval(obj);
 }
index d6a6fbd..7371a45 100644 (file)
@@ -76,7 +76,7 @@ _on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
    if (!wd) return;
    if (elm_widget_focus_get(obj))
      {
-       if(wd->statelabel[FOCUSED])
+       if (wd->statelabel[FOCUSED])
          {
             _set_label(obj, wd->statelabel[FOCUSED]);
          }
@@ -85,7 +85,7 @@ _on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
      }
    else
      {
-       if(wd->statelabel[DEFAULT])
+       if (wd->statelabel[DEFAULT])
          _set_label(obj, wd->statelabel[DEFAULT]);
 #if 0
        else
@@ -131,7 +131,7 @@ _disable_hook(Evas_Object *obj)
    if (!wd) return;
    if (elm_widget_disabled_get(obj))
      {
-       if(wd->statelabel[DISABLED] )
+       if (wd->statelabel[DISABLED] )
          {
             _set_label(obj, wd->statelabel[DISABLED]);
          }
@@ -139,12 +139,12 @@ _disable_hook(Evas_Object *obj)
      }
    else
      {
-       if(wd->statelabel[DEFAULT])
+       if (wd->statelabel[DEFAULT])
          _set_label(obj, wd->statelabel[DEFAULT]);
-#if 0
+//#if 0
        else
          _set_label(obj, wd->label);
-#endif
+//#endif
        edje_object_signal_emit(wd->btn, "elm,state,enabled", "elm");
      }
 }
@@ -248,7 +248,7 @@ _signal_pressed(void *data, Evas_Object *obj __UNUSED__, const char *emission __
    Widget_Data *wd = elm_widget_data_get(data);
    if (!wd) return;
 
-   if(wd->statelabel[HIGHLIGHTED])
+   if (wd->statelabel[HIGHLIGHTED])
      {
        _set_label(data, wd->statelabel[HIGHLIGHTED]);
      }
@@ -266,12 +266,12 @@ _signal_default_text_set(void *data, Evas_Object *obj, const char *emission, con
 {
    Widget_Data *wd = elm_widget_data_get(data);
    if (!wd) return;
-   if(wd->statelabel[DEFAULT])
+   if (wd->statelabel[DEFAULT])
      _set_label(data, wd->statelabel[DEFAULT]);
-#if 0
+//#if 0
    else
      _set_label(data, wd->label);
-#endif
+//#endif
    return;
 }
 
@@ -280,12 +280,12 @@ _signal_unpressed(void *data, Evas_Object *obj __UNUSED__, const char *emission
 {
    Widget_Data *wd = elm_widget_data_get(data);
    if (!wd) return;
-   if(wd->statelabel[DEFAULT])
+   if (wd->statelabel[DEFAULT])
      _set_label(data, wd->statelabel[DEFAULT]);
-#if 0
+//#if 0
    else
      _set_label(data, wd->label);
-#endif
+//#endif
 
    if (wd->timer)
      {
@@ -382,7 +382,6 @@ _set_label(Evas_Object *obj, const char *label)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
 
-   edje_object_message_signal_process(wd->btn);
    edje_object_part_text_set(wd->btn, "elm.text", label);
    _sizing_eval(obj);
 }
@@ -401,27 +400,27 @@ elm_button_label_set_for_state(Evas_Object *obj, const char *label, UIControlSta
    Widget_Data *wd = elm_widget_data_get(obj);
 
    if (!wd) return;
-   if(label == NULL) return;
+   if (label == NULL) return;
 
-   if(state == UIControlStateDefault)
+   if (state == UIControlStateDefault)
      {
        wd->statetype[DEFAULT] = UIControlStateDefault;
        eina_stringshare_replace(&wd->statelabel[DEFAULT], label);
        return;
      }
-   if(state == UIControlStateHighlighted)
+   if (state == UIControlStateHighlighted)
      {
        wd->statetype[HIGHLIGHTED] = UIControlStateHighlighted;
        eina_stringshare_replace(&wd->statelabel[HIGHLIGHTED], label);
        return;
      }
-   if(state == UIControlStateFocused)
+   if (state == UIControlStateFocused)
      {
        wd->statetype[FOCUSED] = UIControlStateFocused;
        eina_stringshare_replace(&wd->statelabel[FOCUSED], label);
        return;
      }
-   if(state == UIControlStateDisabled)
+   if (state == UIControlStateDisabled)
      {
        wd->statetype[DISABLED] = UIControlStateDisabled;
        eina_stringshare_replace(&wd->statelabel[DISABLED], label);
@@ -460,13 +459,13 @@ elm_button_label_get_for_state(const Evas_Object *obj, UIControlState state)
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return NULL;
 
-   if(state == UIControlStateDefault)
+   if (state == UIControlStateDefault)
      return wd->statelabel[DEFAULT];
-   else if(state == UIControlStateHighlighted)
+   else if (state == UIControlStateHighlighted)
      return wd->statelabel[HIGHLIGHTED];
-   else if(state == UIControlStateFocused)
+   else if (state == UIControlStateFocused)
      return wd->statelabel[FOCUSED];
-   else if(state == UIControlStateDisabled)
+   else if (state == UIControlStateDisabled)
      return wd->statelabel[DISABLED];
    else
      return NULL;
index 6eb73bf..94cf167 100644 (file)
@@ -92,9 +92,13 @@ struct _Elm_Controlbar_Item
    Evas_Object * edit_item;
    Evas_Object * view;
    Evas_Object * label;
+   Evas_Object * label_shadow;
    Evas_Object * icon;
+   Evas_Object * icon_shadow;
    Evas_Object * edit_label;
+   Evas_Object * edit_label_shadow;
    Evas_Object * edit_icon;
+   Evas_Object * edit_icon_shadow;
    const char *icon_path;
    const char *text;
    void (*func) (void *data, Evas_Object * obj, void *event_info);
@@ -133,7 +137,7 @@ struct _Animation_Data
 static int check_bar_item_number(Widget_Data *wd);
 static void selected_box(Elm_Controlbar_Item * it);
 static int pressed_box(Elm_Controlbar_Item * it);
-static void object_color_set(Evas_Object *ly, const char *color_part, const char *obj_part);
+static void item_color_set(Elm_Controlbar_Item *item, const char *color_part);
 static void edit_item_up_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info);
 static void edit_item_move_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info);
 static void bar_item_up_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info);
@@ -210,9 +214,15 @@ _controlbar_resize(void *data, Evas_Object * obj)
    EINA_LIST_FOREACH(wd->items, l, item)
      {
        if(item->label)
-         elm_label_wrap_width_set(item->label, (int)(wd->w/check_bar_item_number(wd))-20);
+         {
+            elm_label_wrap_width_set(item->label, (int)(wd->w/check_bar_item_number(wd))-20);
+            elm_label_wrap_width_set(item->label_shadow, (int)(wd->w/check_bar_item_number(wd))-20);
+         }
        if(item->edit_label)
-         elm_label_wrap_width_set(item->edit_label, (int)(wd->w/check_bar_item_number(wd))-20);
+         {
+            elm_label_wrap_width_set(item->edit_label, (int)(wd->w/check_bar_item_number(wd))-20);
+            elm_label_wrap_width_set(item->edit_label_shadow, (int)(wd->w/check_bar_item_number(wd))-20);
+         }
      }
 }
 
@@ -376,7 +386,6 @@ _theme_hook(Evas_Object * obj)
        {
           elm_layout_theme_set(item->base, "controlbar", "item_bg",
                                 elm_widget_style_get(obj));
-          //object_color_set(item->base, "elm.item.default.color", "elm.swallow.icon");
           elm_layout_theme_set(item->edit, "controlbar", "item_bg",
                                  elm_widget_style_get(obj));
           if (!item->editable)
@@ -389,13 +398,6 @@ _theme_hook(Evas_Object * obj)
                   evas_object_color_get(color, &r, &g, &b, &a);
                evas_object_color_set(item->edit_item, r, g, b, a);
             }
-          //if (item->label)
-            //{
-               //edje_object_part_text_set(_EDJ(item->base), "elm.text",
-               //                         item->label);
-               //edje_object_part_text_set(_EDJ(item->edit_item), "elm.text",
-               //                         item->label);
-            //}
           if (item->label && item->icon)
             {
                edje_object_signal_emit(_EDJ(item->base_item),
@@ -1036,18 +1038,16 @@ hide_selected_box(void *data)
 }
 
 static void
-object_color_set(Evas_Object *ly, const char *color_part, const char *obj_part)
+item_color_set(Elm_Controlbar_Item *item, const char *color_part)
 {
        Evas_Object *color;
        int r, g, b, a;
 
-       color =
-                (Evas_Object *) edje_object_part_object_get(_EDJ(ly), color_part);
+       color = (Evas_Object *) edje_object_part_object_get(_EDJ(item->base), color_part);
        if (color)
           evas_object_color_get(color, &r, &g, &b, &a);
-       color =
-          edje_object_part_swallow_get(_EDJ(ly), obj_part);
-       evas_object_color_set(color, r, g, b, a);
+       evas_object_color_set(item->label, r, g, b, a);
+       evas_object_color_set(item->icon, r, g, b, a);
 }
 
    static void
@@ -1057,28 +1057,8 @@ _end_selected_box(void *data, Evas_Object *obj)
    int rand;
 
    edje_object_signal_emit(_EDJ(wd->cur_item->base), "elm,state,selected", "elm");
-   // item animation effect
-   if(wd->selected_animation)
-     {
-       srand(time(NULL));
-       rand = random()%3;
-
-       switch(rand)
-         {
-          case 0: 
-             edje_object_signal_emit(_EDJ(wd->cur_item->base), "elm,animation,pop", "elm");
-             break;
-          case 1:
-             edje_object_signal_emit(_EDJ(wd->cur_item->base), "elm,animation,vibration", "elm");
-             break;
-          case 2:
-             edje_object_signal_emit(_EDJ(wd->cur_item->base), "elm,animation,jump", "elm");
-             break;
-          default:
-             break;
-         }
-     }
-
+   edje_object_signal_emit(_EDJ(wd->cur_item->base_item), "elm,state,shadow_show", "elm");
+   
    wd->animating--;
    if (wd->animating < 0)
      {
@@ -1105,6 +1085,7 @@ move_selected_box(Widget_Data *wd, Elm_Controlbar_Item * fit, Elm_Controlbar_Ite
        evas_object_geometry_get(to, &tx, &ty, &tw, &th);
 
        edje_object_signal_emit(_EDJ(wd->pre_item->base), "elm,state,unselected", "elm");
+       edje_object_signal_emit(_EDJ(wd->pre_item->base_item), "elm,state,shadow_hide", "elm");
        edje_object_signal_emit(_EDJ(wd->cur_item->base), "elm,state,unselected", "elm");
 
        wd->animating++;
@@ -1151,21 +1132,10 @@ end_view_animation_effect(void *data, Evas_Object *obj)
 {
    Widget_Data *wd = (Widget_Data *)data;
    elm_xml_animator_object_del(wd->vxa, obj);
-   if(wd->pre_item) evas_object_hide(wd->pre_item->view);
-   if(wd->cur_item) elm_layout_content_set(wd->view, "elm.swallow.view", wd->cur_item->view);
-}
-
-static Eina_Bool
-_check_idler(void *data)
-{
-   printf("in idler\n");
-
-   Elm_Controlbar_Item *it = data;
-
-   Evas_Coord x, y, w, h;
-   evas_object_geometry_get(it->view, &x, &y, &w, &h);
-
-   return ECORE_CALLBACK_CANCEL;
+   if(wd->pre_item) {
+       evas_object_hide(wd->pre_item->view);
+   }
+   //if(wd->cur_item) elm_layout_content_set(wd->view, "elm.swallow.view", wd->cur_item->view);
 }
 
 static void 
@@ -1197,12 +1167,16 @@ selected_box(Elm_Controlbar_Item * it)
        }
        it->selected = EINA_TRUE;
        evas_object_smart_callback_call(it->obj, "view,change,before", it);
-       //object_color_set(it->base, "elm.tabbar.selected.color", "elm.swallow.icon");
           
           if(fit != NULL && fit != it)
+            {
                   move_selected_box(wd, fit, it);
-          else 
+            }
+          else
+            {
                   edje_object_signal_emit(_EDJ(it->base), "elm,state,selected", "elm");
+                  edje_object_signal_emit(_EDJ(wd->cur_item->base_item), "elm,state,shadow_show", "elm");
+            }
 
 /*
           if(fit != NULL && fit != it)
@@ -1230,8 +1204,6 @@ selected_box(Elm_Controlbar_Item * it)
 */         
           //if(wd->pre_item) evas_object_hide(wd->pre_item->view);
           elm_layout_content_set(wd->view, "elm.swallow.view", it->view);
-          //for test
-          evas_object_map_enable_set(it->view, EINA_TRUE);
          
           //evas_object_move(it->view, -480, 94);
           //evas_object_resize(it->view, 480, 620);
@@ -1243,7 +1215,9 @@ selected_box(Elm_Controlbar_Item * it)
                  elm_xml_animator_object_add(wd->vxa, wd->pre_item->view, wd->view_hide, end_view_animation_effect, wd);
                else
                  evas_object_hide(wd->pre_item->view);
-               if(wd->view_show) elm_xml_animator_object_add(wd->vxa, it->view, wd->view_show, end_view_animation_effect, wd);
+               if(wd->view_show) {
+                    elm_xml_animator_object_add(wd->vxa, it->view, wd->view_show, end_view_animation_effect, wd);
+               }
             }
 
           elm_xml_animator_run(wd->vxa);
@@ -1254,14 +1228,13 @@ selected_box(Elm_Controlbar_Item * it)
 
    }else if(it->style == TOOLBAR){
        if (it->func)
-         it->func(it->data, it->obj, it);
-       //object_color_set(it->base, "elm.item.default.color", "elm.swallow.icon");
+         {
+            it->func(it->data, it->obj, it);
+         }
        edje_object_signal_emit(_EDJ(it->base), "elm,state,text_unselected", "elm");
    }
 
    evas_object_smart_callback_call(it->obj, "clicked", it);
-
-   ecore_idler_add(_check_idler, it);
 }
 
 static void
@@ -1281,19 +1254,21 @@ unpressed_box_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info)
          {
             if(item->selected)
               {
-                 //object_color_set(item->base, "elm.tabbar.selected.color", "elm.swallow.icon");
                  edje_object_signal_emit(_EDJ(item->base), "elm,state,selected", "elm");
               }
             else
               {
-                 //object_color_set(item->base, "elm.item.default.color", "elm.swallow.icon");
                  edje_object_signal_emit(_EDJ(item->base), "elm,state,unselected", "elm");
+                 edje_object_signal_emit(_EDJ(item->base_item), "elm,state,shadow_hide", "elm");
               }
          }
        else if (item->style == TOOLBAR)
          {
-            //object_color_set(item->base, "elm.item.default.color", "elm.swallow.icon");
-            edje_object_signal_emit(_EDJ(item->base), "elm,state,text_unselected", "elm");
+            if(!item->disable)
+              {
+                 edje_object_signal_emit(_EDJ(item->base), "elm,state,unselected", "elm");
+                 //item_color_set(item, "elm.item.default.color");
+              }
          }
      }
 
@@ -1324,17 +1299,16 @@ pressed_box(Elm_Controlbar_Item * it)
        {
           if (it->style == TABBAR)
             {
-
-               //object_color_set(it->base, "elm.tabbar.selected.color", "elm.swallow.icon");
-               edje_object_signal_emit(_EDJ(it->base), "elm,state,pressed",
-                                         "elm");
+               edje_object_signal_emit(_EDJ(it->base), "elm,state,pressed", "elm");
             }
           else if (it->style == TOOLBAR)
             {
        
-               object_color_set(it->base, "elm.toolbar.pressed.color", "elm.swallow.icon");
-               edje_object_signal_emit(_EDJ(it->base), "elm,state,text_selected",
-                                         "elm");
+               if(!it->disable) 
+                 {
+                    edje_object_signal_emit(_EDJ(it->base), "elm,state,toolbar_pressed", "elm");
+                    //item_color_set(it, "elm.toolbar.pressed.color");
+                 }
                }
           evas_object_event_callback_add(wd->event_box, EVAS_CALLBACK_MOUSE_UP, unpressed_box_cb, (void *)wd);
         
@@ -1350,7 +1324,7 @@ pressed_box(Elm_Controlbar_Item * it)
 }
 
 static Evas_Object *
-create_item_label(Evas_Object *obj, Elm_Controlbar_Item * it)
+create_item_label(Evas_Object *obj, Elm_Controlbar_Item * it, char *part)
 {
    Evas_Object *label;
    label = elm_label_add(obj);
@@ -1362,13 +1336,13 @@ create_item_label(Evas_Object *obj, Elm_Controlbar_Item * it)
    elm_label_ellipsis_set(label, EINA_TRUE);
    elm_label_wrap_mode_set(label, 1);
 
-   elm_layout_content_set(obj, "elm.text", label);
+   elm_layout_content_set(obj, part, label);
 
    return label;
 }
 
 static Evas_Object *
-create_item_icon(Evas_Object *obj, Elm_Controlbar_Item * it)
+create_item_icon(Evas_Object *obj, Elm_Controlbar_Item * it, char *part)
 {
    Evas_Object *icon;
    icon = elm_icon_add(obj);
@@ -1380,13 +1354,13 @@ create_item_icon(Evas_Object *obj, Elm_Controlbar_Item * it)
    evas_object_size_hint_min_set(icon, 40, 40);
    evas_object_size_hint_max_set(icon, 100, 100);
    evas_object_show(icon);
-   edje_object_part_swallow(_EDJ(obj), "elm.swallow.icon", icon);
+   edje_object_part_swallow(_EDJ(obj), part, icon);
    
    return icon;
 }
 
 static Evas_Object *
-create_item_layout(Evas_Object * parent, Elm_Controlbar_Item * it, Evas_Object **item, Evas_Object **label, Evas_Object **icon) 
+create_item_layout(Evas_Object * parent, Elm_Controlbar_Item * it, Evas_Object **item, Evas_Object **label, Evas_Object **icon, Evas_Object **sicon, Evas_Object **slabel
 {
    Evas_Object * obj;
    obj = elm_layout_add(parent);
@@ -1412,17 +1386,23 @@ create_item_layout(Evas_Object * parent, Elm_Controlbar_Item * it, Evas_Object *
 
    if (it->text)
      {
-         *label = create_item_label(*item, it);
+         *label = create_item_label(*item, it, "elm.swallow.text");
+         *slabel = create_item_label(*item, it, "elm.swallow.text_shadow");
+         evas_object_color_set(*slabel, 0, 0, 0, 255);
      }
    if (it->icon_path)
      {
-         *icon = create_item_icon(*item, it);
+         *icon = create_item_icon(*item, it, "elm.swallow.icon");
+         *sicon = create_item_icon(*item, it, "elm.swallow.icon_shadow");
+         evas_object_color_set(*sicon, 0, 0, 0, 255);
      }
    if (*label && *icon)
      {
        edje_object_signal_emit(_EDJ(*item), "elm,state,icon_text", "elm");
        elm_label_line_wrap_set(*label, EINA_FALSE);
        elm_label_wrap_mode_set(*label, 0);
+       elm_label_line_wrap_set(*slabel, EINA_FALSE);
+       elm_label_wrap_mode_set(*slabel, 0);
      }
    
    return obj;
@@ -1599,7 +1579,7 @@ edit_item_down_cb(void *data, Evas * evas, Evas_Object * obj,
    if (wd->moving_obj)
       evas_object_del(wd->moving_obj);
    wd->moving_obj = NULL;
-   wd->moving_obj = create_item_layout(obj, item, &(item->base_item), &(item->label), &(item->icon));
+   wd->moving_obj = create_item_layout(obj, item, &(item->base_item), &(item->label), &(item->icon), &(item->icon_shadow), &(item->label_shadow));
    evas_object_geometry_get(obj, &x, &y, &w, &h);
    evas_object_move(wd->moving_obj, -1000, -1000);
    evas_object_resize(wd->moving_obj, w, h);
@@ -1792,12 +1772,11 @@ create_tab_item(Evas_Object * obj, const char *icon_path, const char *label,
    it->sel = 1;
    it->view = view;
    it->style = TABBAR;
-   it->base = create_item_layout(wd->edje, it, &(it->base_item), &(it->label), &(it->icon));
+   it->base = create_item_layout(wd->edje, it, &(it->base_item), &(it->label), &(it->icon), &(it->icon_shadow), &(it->label_shadow));
    evas_object_event_callback_add(it->base, EVAS_CALLBACK_MOUSE_DOWN,
                                   bar_item_down_cb, wd);
-   //object_color_set(it->base, "elm.item.default.color", "elm.swallow.icon");
    evas_object_show(it->base);
-   it->edit = create_item_layout(wd->edje, it, &(it->edit_item), &(it->edit_label), &(it->edit_icon));
+   it->edit = create_item_layout(wd->edje, it, &(it->edit_item), &(it->edit_label), &(it->edit_icon), &(it->edit_icon_shadow), &(it->edit_label_shadow));
    evas_object_event_callback_add(it->edit, EVAS_CALLBACK_MOUSE_DOWN,
                                   edit_item_down_cb, wd);
    evas_object_show(it->edit);
@@ -1836,14 +1815,11 @@ create_tool_item(Evas_Object * obj, const char *icon_path, const char *label,
    it->func = func;
    it->data = data;
    it->style = TOOLBAR;
-   it->base = create_item_layout(wd->edje, it, &(it->base_item), &(it->label), &(it->icon));
+   it->base = create_item_layout(wd->edje, it, &(it->base_item), &(it->label), &(it->icon), &(it->icon_shadow), &(it->label_shadow));
    evas_object_event_callback_add(it->base, EVAS_CALLBACK_MOUSE_DOWN,
                                   bar_item_down_cb, wd);
-   //edje_object_signal_callback_add(_EDJ(it->base), "elm,action,click", "elm",
-       //                          clicked_box_cb, wd);
-   //object_color_set(it->base, "elm.item.default.color", "elm.swallow.icon");
    evas_object_show(it->base);
-   it->edit = create_item_layout(wd->edje, it, &(it->edit_item), &(it->edit_label), &(it->edit_icon));
+   it->edit = create_item_layout(wd->edje, it, &(it->edit_item), &(it->edit_label), &(it->edit_icon), &(it->edit_icon_shadow), &(it->edit_label_shadow));
    evas_object_event_callback_add(it->edit, EVAS_CALLBACK_MOUSE_DOWN,
                                   edit_item_down_cb, wd);
    evas_object_show(it->edit);
@@ -2022,12 +1998,11 @@ create_more_item(Widget_Data *wd, int style)
    it->sel = 1;
    it->view = create_more_view(wd);
    it->style = style;
-   it->base = create_item_layout(wd->edje, it, &(it->base_item), &(it->label), &(it->icon));
+   it->base = create_item_layout(wd->edje, it, &(it->base_item), &(it->label), &(it->icon), &(it->icon_shadow), &(it->label_shadow));
    evas_object_event_callback_add(it->base, EVAS_CALLBACK_MOUSE_DOWN,
                                   bar_item_down_cb, wd);
-   //object_color_set(it->base, "elm.item.default.color", "elm.swallow.icon");
    evas_object_show(it->base);
-   it->edit = create_item_layout(wd->edje, it, &(it->edit_item), &(it->edit_label), &(it->edit_icon));
+   it->edit = create_item_layout(wd->edje, it, &(it->edit_item), &(it->edit_label), &(it->edit_icon), &(it->edit_icon_shadow), &(it->edit_label_shadow));
    evas_object_event_callback_add(it->edit, EVAS_CALLBACK_MOUSE_DOWN,
                                   edit_item_down_cb, wd);
    evas_object_show(it->edit);
@@ -2844,20 +2819,26 @@ elm_controlbar_item_icon_set(Elm_Controlbar_Item * it, const char *icon_path)
        evas_object_del(it->icon);
        it->icon = NULL;
      }
-   it->icon = create_item_icon(it->base_item, it);
-   it->edit_icon = create_item_icon(it->edit_item, it);
+   it->icon = create_item_icon(it->base_item, it, "elm.swallow.icon");
+   it->icon_shadow = create_item_icon(it->base_item, it, "elm.swallow.icon_shadow");
+   it->edit_icon = create_item_icon(it->edit_item, it, "elm.swallow.icon");
+   it->edit_icon_shadow = create_item_icon(it->edit_item, it, "elm.swallow.icon_shadow");
 
    if(it->label && it->icon)
      {
        edje_object_signal_emit(_EDJ(it->base_item), "elm,state,icon_text", "elm");
        elm_label_line_wrap_set(it->label, EINA_FALSE);
        elm_label_wrap_mode_set(it->label, 0);
+       elm_label_line_wrap_set(it->label_shadow, EINA_FALSE);
+       elm_label_wrap_mode_set(it->label_shadow, 0);
      }
    if(it->edit_label && it->edit_icon)
      {
        edje_object_signal_emit(_EDJ(it->edit_item), "elm,state,icon_text", "elm");
        elm_label_line_wrap_set(it->edit_label, EINA_FALSE);
        elm_label_wrap_mode_set(it->edit_label, 0);
+       elm_label_line_wrap_set(it->edit_label_shadow, EINA_FALSE);
+       elm_label_wrap_mode_set(it->edit_label_shadow, 0);
      }
 }
 
@@ -2889,19 +2870,23 @@ elm_controlbar_item_label_set(Elm_Controlbar_Item * it, const char *label)
    if (it == NULL)
       return;
    it->text = eina_stringshare_add(label);
-   it->label = create_item_label(it->base_item, it);
-   it->edit_label = create_item_label(it->edit_item, it);
+   it->label = create_item_label(it->base_item, it, "elm.swallow.text");
+   it->edit_label = create_item_label(it->edit_item, it, "elm.swallow.text");
 
    if(it->label && it->icon){
        edje_object_signal_emit(_EDJ(it->base_item), "elm,state,icon_text", "elm");
        elm_label_line_wrap_set(it->label, EINA_FALSE);
        elm_label_wrap_mode_set(it->label, 0);
+       elm_label_line_wrap_set(it->label_shadow, EINA_FALSE);
+       elm_label_wrap_mode_set(it->label_shadow, 0);
    }
    if(it->edit_label && it->edit_icon)
      {
        edje_object_signal_emit(_EDJ(it->edit_item), "elm,state,icon_text", "elm");
        elm_label_line_wrap_set(it->edit_label, EINA_FALSE);
        elm_label_wrap_mode_set(it->edit_label, 0);
+       elm_label_line_wrap_set(it->edit_label_shadow, EINA_FALSE);
+       elm_label_wrap_mode_set(it->edit_label_shadow, 0);
      }
 }
 
@@ -3200,21 +3185,14 @@ elm_controlbar_item_disable_set(Elm_Controlbar_Item * it, Eina_Bool disable)
 
    it->disable = disable;
 
-   if(it->disable){
-       color =
-          (Evas_Object *) edje_object_part_object_get(_EDJ(it->base),
-                "elm.item.disable.color");
-       if (color)
-         evas_object_color_get(color, &r, &g, &b, &a);
-       evas_object_color_set(it->base_item, r, g, b, a);
-   }else{
-       color =
-          (Evas_Object *) edje_object_part_object_get(_EDJ(it->base),
-                "elm.item.default.color");
-       if (color)
-         evas_object_color_get(color, &r, &g, &b, &a);
-       evas_object_color_set(it->base_item, r, g, b, a);
-   }
+   if(it->disable)
+     {
+       item_color_set(it, "elm.item.disable.color");
+     }
+   else
+     {
+       item_color_set(it, "elm.item.default.color");
+     }
 }
 
    EAPI void
index edbca8f..b662352 100644 (file)
@@ -1121,6 +1121,47 @@ elm_gengrid_item_append(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic,
 }
 
 /**
+ * Prepend item at start of the Gengrid
+ *
+ * This adds an item to the beginning of the list or beginning of the children
+ * of the parent if given.
+ *
+ * @param obj The Gengrid object.
+ * @param gic The item class for the item.
+ * @param data The item data.
+ * @param func Convenience function called when item is selected.
+ * @param func_data Data passed to @p func above.
+ * @return A handle to the item added or NULL if not possible.
+ *
+ * @see elm_gengrid_item_del()
+ *
+ * @ingroup Gengrid
+ */
+
+
+EAPI Elm_Gengrid_Item *
+elm_gengrid_item_prepend(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic,
+                            const void *data, Evas_Smart_Cb func,
+                           const void *func_data)
+{
+   Elm_Gengrid_Item *item;
+   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
+   Widget_Data *wd = elm_widget_data_get(obj);
+   if (!wd) return NULL;
+   
+   item = _item_create(wd, gic, data, func, func_data);
+   if (!item) return NULL;
+   
+   wd->items = eina_list_prepend(wd->items, item);
+   wd->no_select = EINA_FALSE;
+   
+   if (wd->calc_job) ecore_job_del(wd->calc_job);
+   wd->calc_job = ecore_job_add(_calc_job, wd);
+   
+   return item;
+}
+
+/**
  * Remove a item from the Gengrid.
  *
  * @param item The item to be removed.
index 1be853e..5bfd6aa 100644 (file)
@@ -930,7 +930,6 @@ _multi_down(void *data, Evas *evas __UNUSED__, Evas_Object *obj, void *event_inf
    Evas_Event_Multi_Down *ev = event_info;
    Evas_Coord dx, dy, adx, ady;
 
-//   elm_smart_scroller_freeze_bounce_animator_set(it->wd->scr, 1);
    if (it->long_timer)
      {
        ecore_timer_del(it->long_timer);
@@ -1094,7 +1093,6 @@ _mouse_down(void *data, Evas *evas __UNUSED__, Evas_Object *obj, void *event_inf
    Evas_Event_Mouse_Down *ev = event_info;
    Evas_Coord x, y;
 
-   //elm_smart_scroller_freeze_bounce_animator_set(it->wd->scr, 0);
    it->wd->td1_x = ev->canvas.x;
    it->wd->td1_y = ev->canvas.y;
    if( it->wd->effect_mode && it->wd->pinchzoom_effect_mode == ELM_GENLIST_ITEM_PINCHZOOM_EFFECT_CONTRACT_FINISH) 
@@ -1331,8 +1329,9 @@ _set_groupitem( Elm_Genlist_Item *it, Elm_Genlist_GroupItem *git)
 }
 
 static void
-_group_item_click_cb(Elm_Genlist_GroupItem *git)
+_group_item_click_cb(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
 {
+   Elm_Genlist_GroupItem *git = data;
    elm_smart_scroller_bounce_allow_set(git->wd->scr, EINA_FALSE, EINA_TRUE);
    if(git->wd->pinchzoom_effect_mode == ELM_GENLIST_ITEM_PINCHZOOM_EFFECT_CONTRACT_FINISH)
    {
@@ -1476,6 +1475,8 @@ _groupitem_unrealize(Elm_Genlist_GroupItem *git)
        EINA_LIST_FREE(git->icon_objs, icon)
                evas_object_del(icon);
 
+       if(git->wd->max_git_num)
+               git->wd->max_git_num--;
        git->states = NULL;
        git->realized = EINA_FALSE;
 }
@@ -2086,7 +2087,7 @@ _reorder_mouse_move(void *data, Evas *evas __UNUSED__, Evas_Object *obj, void *e
 }
 
 static void
-_select_all_down(void *data, Evas *evas __UNUSED__, Evas_Object *obj, void *event_info)
+_select_all_down(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
 {
    Item_Block *itb;
    Elm_Genlist_Item *select_all_it = data, *it;
@@ -2188,8 +2189,8 @@ _edit_controls_eval(Elm_Genlist_Item *it)
                                 _elm_theme_object_set(it->wd->obj, it->edit_obj, "genlist", "item/edit_control", elm_widget_style_get(it->wd->obj));
                         }
 
-                 edje_object_signal_callback_add(it->edit_obj, "elm,action,edit,reset",
-                                 "elm", _edit_mode_reset, it);
+               //  edje_object_signal_callback_add(it->edit_obj, "elm,action,edit,reset",
+                       //        "elm", _edit_mode_reset, it);
          }
 
        pad_str = edje_object_data_get(it->edit_obj, "icon_width");
@@ -2204,7 +2205,7 @@ _edit_controls_eval(Elm_Genlist_Item *it)
 
                  edje_object_signal_callback_add(it->edit_obj, "elm,action,item,insert",
                                  "elm", _insert_new_item_cb, it);
-                 it->pad_left += pad;
+                 it->pad_left += pad * _elm_config->scale;
          }
        else
          {
@@ -2234,7 +2235,7 @@ _edit_controls_eval(Elm_Genlist_Item *it)
 
                  edje_object_signal_callback_add(it->edit_obj, "elm,action,hide,del_confirm",
                                  "elm", _hide_delete_confirm_object, it );
-                 it->pad_left += pad;
+                 it->pad_left += pad * _elm_config->scale;
                  evas_object_event_callback_add(it->edit_obj, EVAS_CALLBACK_MOUSE_DOWN,
                                  _reorder_mouse_down, it);
          }
@@ -2255,13 +2256,12 @@ _edit_controls_eval(Elm_Genlist_Item *it)
 
        if ((itmode & ELM_GENLIST_EDIT_MODE_REORDER))
          {
-                 Evas_Object *reorder_icon;
                  const char* reorder_part;
 
                  reorder_part = edje_object_data_get(it->edit_obj, "reorder");
                  if (reorder_part && edje_object_part_exists(it->edit_obj, reorder_part))
                         {
-                                reorder_icon = edje_object_part_object_get(it->edit_obj, reorder_part);
+                                edje_object_part_object_get(it->edit_obj, reorder_part);
 
                                 evas_object_event_callback_del(it->edit_obj, EVAS_CALLBACK_MOUSE_DOWN,
                                                 _reorder_mouse_down);
@@ -2277,17 +2277,15 @@ _edit_controls_eval(Elm_Genlist_Item *it)
                                 evas_object_event_callback_add(it->edit_obj, EVAS_CALLBACK_MOUSE_MOVE,
                                                 _reorder_mouse_move, it);
                         }
-                 //  it->pad_right += pad;
+                 //  it->pad_right += pad * _elm_config->scale;
          }
        else
          {
-                 Evas_Object *reorder_icon;
                  const char* reorder_part;
 
                  reorder_part = edje_object_data_get(it->edit_obj, "reorder");
                  if (reorder_part && edje_object_part_exists(it->edit_obj, reorder_part))
                         {
-                                reorder_icon = edje_object_part_object_get(it->edit_obj, reorder_part);
 
                                 if (itmode == ELM_GENLIST_EDIT_MODE_NONE) 
                                        {
@@ -2532,8 +2530,8 @@ _item_block_position(Item_Block *itb, int in)
 
                                                if (!it->reordering )
                                                  {
-                                                         if (!it->wd->effect_mode || 
-                        (it->wd->effect_mode && it->wd->move_effect_mode == ELM_GENLIST_ITEM_MOVE_EFFECT_NONE) && !it->wd->pinch_zoom_reserve)
+                                                         if ((!it->wd->effect_mode || 
+                        (it->wd->effect_mode && it->wd->move_effect_mode == ELM_GENLIST_ITEM_MOVE_EFFECT_NONE)) && !it->wd->pinch_zoom_reserve)
                                                                 {
                                                                         _move_edit_controls( it,it->scrl_x, it->scrl_y );
                                                                         evas_object_resize(it->base, it->w-(it->pad_left+it->pad_right), it->h);
@@ -3282,6 +3280,7 @@ _item_queue(Widget_Data *wd, Elm_Genlist_Item *it)
 {
        if(!wd->queue_exception)
   {
+   if (it->queued) return;
    wd->queue = eina_list_append(wd->queue, it);
        it->queued = EINA_TRUE;
   }
@@ -3296,7 +3295,6 @@ _item_queue(Widget_Data *wd, Elm_Genlist_Item *it)
         _queue_proecess(wd, 0);
      }
 
-   if (it->queued) return;
    if (!wd->queue_idler) wd->queue_idler = ecore_idler_add(_item_idler, wd);
 
        if(wd->queue_exception)
@@ -3722,7 +3720,6 @@ elm_genlist_clear(Evas_Object *obj)
    elm_smart_scroller_hold_set(wd->scr, 0);
        elm_smart_scroller_freeze_set(wd->scr, 0);
    elm_smart_scroller_freeze_momentum_animator_set(wd->scr, 0);
-   elm_smart_scroller_freeze_bounce_animator_set(wd->scr, 0);   
    elm_smart_scroller_bounce_allow_set(wd->scr, EINA_FALSE, EINA_TRUE);
    wd->max_git_num  = 0;
    wd->pinch_zoom_reserve = EINA_FALSE;
@@ -5282,7 +5279,8 @@ elm_genlist_item_rename_mode_set(Elm_Genlist_Item *it, int emode)
    if (!it) return;
 
    const Eina_List *l, *list, *l2;
-   const char *label, *rename_swallow_part, *s;
+   const char *label, *rename_swallow_part;
+   char *s;
    Eina_Bool done = EINA_FALSE;
    int label_cnt = 0 , swallow_part_cnt = 0;
 
@@ -5316,7 +5314,7 @@ elm_genlist_item_rename_mode_set(Elm_Genlist_Item *it, int emode)
                       EINA_LIST_FOREACH(it->wd->edit_field, l2, editfield)
                         {
                            entry = elm_editfield_entry_get(editfield);
-                           char *text = elm_entry_entry_get(entry);
+                           const char *text = elm_entry_entry_get(entry);
 
                            if (it->itc->func.label_changed)
                              it->itc->func.label_changed( it->data, it, text, edit_field_cnt++);
@@ -5590,7 +5588,7 @@ _group_item_contract_moving_effect_timer_cb(void *data)
                  elm_smart_scroller_freeze_momentum_animator_set(wd->scr, 0);
                  elm_smart_scroller_bounce_allow_set(wd->scr, EINA_FALSE, EINA_TRUE);
 
-                 fprintf(stderr,"ELM_GENLIST_ITEM_MOVE_EFFECT_CONTRACT  FINISH   \n");         
+//               fprintf(stderr,"ELM_GENLIST_ITEM_MOVE_EFFECT_CONTRACT  FINISH   \n");         
 
                  tmp_y  =0 ;
                  // added for event
@@ -5634,8 +5632,8 @@ _group_item_expand_moving_effect_timer_cb(void *data)
        int tmp = 0, show_git_cnt = 0, scroll_y = 0, top_git = 0 , git_h = 0, scroll_pan_y = 0, down = 0;
        int up_cnt = 1, down_cnt = 1, it_h = 0;
        static int last_git_y = 0;
-
-       double t, p, dt;
+   
+       double t;
 
        Evas_Coord ox, oy, ow, oh, cvx, cvy, cvw, cvh;
 
@@ -5855,9 +5853,8 @@ _group_item_expand_moving_effect_timer_cb(void *data)
                  elm_smart_scroller_hold_set(wd->scr, 0);
                  elm_smart_scroller_freeze_set(wd->scr, 0);
                  elm_smart_scroller_freeze_momentum_animator_set(wd->scr, 0);
-                 elm_smart_scroller_freeze_bounce_animator_set(wd->scr, 0);
                  elm_smart_scroller_bounce_allow_set(wd->scr, EINA_FALSE, EINA_TRUE);
-                 printf("_group_item_expand_moving_effect_timer_cb  FINISH \n");
+//               printf("_group_item_expand_moving_effect_timer_cb  FINISH \n");
                  evas_object_lower(wd->alpha_bg);
                  evas_object_hide(wd->alpha_bg);
                  //     evas_object_smart_changed(wd->pan_smart);
@@ -5951,7 +5948,6 @@ _elm_genlist_pinch_zoom_execute(Evas_Object *obj, Eina_Bool emode)
 {
    ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
-   printf("elm_genlist_pinch_zoom_mode_set emode = %d wd->pinch_zoom = %d wd->pinchzoom_effect_mode = %d \n", emode, wd->pinch_zoom, wd->pinchzoom_effect_mode);
 
    if (!wd || !wd->pinch_zoom) return;   
 
@@ -6070,7 +6066,6 @@ _item_moving_effect_timer_cb(void *data)
                        if(itb && itb->wd->move_effect_mode == ELM_GENLIST_ITEM_MOVE_EFFECT_EXPAND)
                        {
 
-
                      if(it->old_scrl_y && it->old_scrl_y < it->scrl_y) {
 
                         it->old_scrl_y += added_gy;
index 0d6cc63..769af8c 100644 (file)
@@ -577,8 +577,37 @@ elm_navigationbar_ex_item_title_button_get(Elm_Navigationbar_ex_Item* item, int
                        if(btn_det->btn_id == button_type)\r
                                return btn_det->btn;\r
                }\r
-               return NULL;\r
-               \r
+               return NULL;            \r
+       }\r
+\r
+/**\r
+ * Unset the button object of the pushed content\r
+ *\r
+ * @param[in] item The Navigationbar_ex Item \r
+ * @param[in] button_type Indicates the position\r
+ * @return The button object or NULL if none\r
+ *\r
+ * @ingroup Navigationbar_ex\r
+ */\r
+EAPI Evas_Object *\r
+elm_navigationbar_ex_item_title_button_unset(Elm_Navigationbar_ex_Item* item, int button_type)\r
+       {\r
+               fn_button *btn_det;\r
+               Eina_List *bl;\r
+               Evas_Object *btn_ret;\r
+               EINA_LIST_FOREACH(item->fnbtn_list, bl, btn_det)\r
+               {\r
+                       if(btn_det->btn_id == button_type)\r
+                               {\r
+                                       btn_ret = btn_det->btn;\r
+                                       elm_widget_sub_object_del(item->obj,btn_det->btn);\r
+                                       edje_object_part_unswallow(item->base,btn_det->btn);    \r
+                                       item->fnbtn_list = eina_list_remove_list(item->fnbtn_list, bl);\r
+                                       btn_det->btn = NULL;\r
+                                       return btn_ret;\r
+                               }\r
+               }\r
+               return NULL;            \r
        }\r
 \r
 /**\r
@@ -722,6 +751,9 @@ elm_navigationbar_ex_item_style_set(Elm_Navigationbar_ex_Item* item, const char*
 {\r
        if(!item) return;\r
        char buf[1024];\r
+       char buf_fn[1024];\r
+       Eina_List *bl;\r
+       fn_button *btn_det;\r
        strncpy(buf, "item/", sizeof(buf));\r
        strncat(buf, item_style, sizeof(buf) - strlen(buf));\r
        if (!eina_stringshare_replace(&item->item_style, item_style)) return;\r
@@ -730,6 +762,22 @@ elm_navigationbar_ex_item_style_set(Elm_Navigationbar_ex_Item* item, const char*
                edje_object_part_text_set(item->base, "elm.text", item->title);\r
        if(item->subtitle)\r
                edje_object_part_text_set(item->base, "elm.text.sub", item->subtitle);\r
+       if(item->fnbtn_list)\r
+               {\r
+                       EINA_LIST_FOREACH(item->fnbtn_list, bl, btn_det)\r
+                       {\r
+                               if(btn_det->btn_id == ELM_NAVIGATIONBAR_EX_BACK_BUTTON)\r
+                                       {\r
+                                               snprintf(buf_fn, sizeof(buf_fn), "navigationbar_backbutton/%s", elm_widget_style_get(item->obj));\r
+                                               elm_object_style_set(btn_det->btn, buf_fn);\r
+                                       }\r
+                               else\r
+                                       {\r
+                                               snprintf(buf_fn, sizeof(buf_fn), "navigationbar_functionbutton/%s", elm_widget_style_get(item->obj));\r
+                                               elm_object_style_set(btn_det->btn, buf_fn);\r
+                                       }\r
+                       }\r
+               }\r
 }\r
 \r
 /**\r