--- /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.");
+
+}