--- /dev/null
+#!/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"
--- /dev/null
+/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
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+ }
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+ }
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+ }
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+
+ }
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+ }
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ 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.");
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+ }
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ 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.");
+
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+ }
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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.");
+
+}
--- /dev/null
+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 *~
--- /dev/null
+#!/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"
--- /dev/null
+/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
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#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);
+}
--- /dev/null
+#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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#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);
+}
--- /dev/null
+#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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
--- /dev/null
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err == (x1)) \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+// For checking the result of the negative test case.
+#define TET_CHECK_FAIL(x1, y...) \
+{ \
+ Evas_Object *err = y; \
+ if (err != (x1)) \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
+}
+
+
+Evas_Object *main_win;
+
+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);
+}
: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
:include:/elm_ts/editfield/tslist
:include:/elm_ts/box/tslist
:include:/elm_ts/elm_scroller/tslist
-
+ :include:/elm_ts/scrolled_entry/tslist
#yhkim
ch
: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
+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
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:
*
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 */
_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);
}
if (!wd) return;
if (elm_widget_focus_get(obj))
{
- if(wd->statelabel[FOCUSED])
+ if (wd->statelabel[FOCUSED])
{
_set_label(obj, wd->statelabel[FOCUSED]);
}
}
else
{
- if(wd->statelabel[DEFAULT])
+ if (wd->statelabel[DEFAULT])
_set_label(obj, wd->statelabel[DEFAULT]);
#if 0
else
if (!wd) return;
if (elm_widget_disabled_get(obj))
{
- if(wd->statelabel[DISABLED] )
+ if (wd->statelabel[DISABLED] )
{
_set_label(obj, wd->statelabel[DISABLED]);
}
}
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");
}
}
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]);
}
{
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;
}
{
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)
{
{
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);
}
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);
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;
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);
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);
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);
+ }
}
}
{
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)
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),
}
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
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)
{
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++;
{
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
}
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)
*/
//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);
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);
}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
{
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");
+ }
}
}
{
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);
}
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);
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);
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);
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;
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);
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);
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);
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);
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);
}
}
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);
}
}
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
}
/**
+ * 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.
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);
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)
}
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)
{
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;
}
}
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;
_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");
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
{
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);
}
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);
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)
{
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);
{
if(!wd->queue_exception)
{
+ if (it->queued) return;
wd->queue = eina_list_append(wd->queue, it);
it->queued = EINA_TRUE;
}
_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)
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;
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;
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++);
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
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;
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);
{
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;
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;
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
{\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
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