-utc_elm_label_add.c
-utc_elm_label_ellipsis_get.c
-utc_elm_label_ellipsis_set.c
-utc_elm_label_line_wrap_get.c
-utc_elm_label_line_wrap_set.c
-utc_elm_label_slide_duration_get.c
-utc_elm_label_slide_duration_set.c
+utc_elm_label_ellipsis_get_set.c
+utc_elm_label_line_wrap_get_set.c
+utc_elm_label_slide_duration_get_set.c
#utc_elm_label_slide_get.c
#utc_elm_label_slide_set.c
-utc_elm_label_wrap_width_get.c
-utc_elm_label_wrap_width_set.c
+utc_elm_label_wrap_width_get_set.c
utc_elm_label_slide_go.c
-utc_elm_label_slide_mode_get.c
-utc_elm_label_slide_mode_set.c
-utc_elm_label_slide_speed_get.c
-utc_elm_label_slide_speed_set.c
+utc_elm_label_slide_mode_get_set.c
+utc_elm_label_slide_speed_get_set.c
\ No newline at end of file
-utc_elm_label_add.c
-utc_elm_label_ellipsis_get.c
-utc_elm_label_ellipsis_set.c
-utc_elm_label_line_wrap_get.c
-utc_elm_label_line_wrap_set.c
-utc_elm_label_slide_duration_get.c
-utc_elm_label_slide_duration_set.c
+utc_elm_label_ellipsis_get_set.c
+utc_elm_label_line_wrap_get_set.c
+utc_elm_label_slide_duration_get_set.c
#utc_elm_label_slide_get.c
#utc_elm_label_slide_set.c
-utc_elm_label_wrap_width_get.c
-utc_elm_label_wrap_width_set.c
+utc_elm_label_wrap_width_get_set.c
utc_elm_label_slide_go.c
-utc_elm_label_slide_mode_get.c
-utc_elm_label_slide_mode_set.c
-utc_elm_label_slide_speed_get.c
-utc_elm_label_slide_speed_set.c
+utc_elm_label_slide_mode_get_set.c
+utc_elm_label_slide_speed_get_set.c
\ No newline at end of file
-utc_elm_label_add.c
-utc_elm_label_ellipsis_get.c
-utc_elm_label_ellipsis_set.c
-utc_elm_label_line_wrap_get.c
-utc_elm_label_line_wrap_set.c
-utc_elm_label_slide_duration_get.c
-utc_elm_label_slide_duration_set.c
+utc_elm_label_ellipsis_get_set.c
+utc_elm_label_line_wrap_get_set.c
+utc_elm_label_slide_duration_get_set.c
#utc_elm_label_slide_get.c
#utc_elm_label_slide_set.c
-utc_elm_label_wrap_width_get.c
-utc_elm_label_wrap_width_set.c
+utc_elm_label_wrap_width_get_set.c
utc_elm_label_slide_go.c
-utc_elm_label_slide_mode_get.c
-utc_elm_label_slide_mode_set.c
-#utc_elm_label_slide_speed_get.c
-#utc_elm_label_slide_speed_set.c
+utc_elm_label_slide_mode_get_set.c
+#utc_elm_label_slide_speed_get_set.c
\ No newline at end of file
-utc_elm_label_add.c
-utc_elm_label_ellipsis_get.c
-utc_elm_label_ellipsis_set.c
-utc_elm_label_line_wrap_get.c
-utc_elm_label_line_wrap_set.c
-utc_elm_label_slide_duration_get.c
-utc_elm_label_slide_duration_set.c
+utc_elm_label_ellipsis_get_set.c
+utc_elm_label_line_wrap_get_set.c
+utc_elm_label_slide_duration_get_set.c
#utc_elm_label_slide_get.c
#utc_elm_label_slide_set.c
-utc_elm_label_wrap_width_get.c
-utc_elm_label_wrap_width_set.c
+utc_elm_label_wrap_width_get_set.c
utc_elm_label_slide_go.c
-utc_elm_label_slide_mode_get.c
-utc_elm_label_slide_mode_set.c
-#utc_elm_label_slide_speed_get.c
-#utc_elm_label_slide_speed_set.c
+utc_elm_label_slide_mode_get_set.c
+#utc_elm_label_slide_speed_get_set.c
\ No newline at end of file
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_label
- * @{
- * @defgroup elm_label_add elm_label_add()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create, resize and show main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
- }
- evas_object_resize(main_win, 480, 800);
- evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_label_add
- * @{
- * @objective Positive Test case checks if function call with valid value to add a new label
- * to the parent works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Call elm_label_add with valid value
- *
- * @passcondition
- * @li Test passes if returned value is not NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_add_p)
-{
- if (main_win == NULL)
- {
- return;
- }
-
- Evas_Object *label = NULL;
-
- label = elm_label_add(main_win);
- if (label == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
- evas_object_del(label);
-}
-END_TEST
-
-/**
- * @addtogroup elm_label_add
- * @{
- * @objective Negative Test case checks if function call with invalid value to add a new label
- * to the parent works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_label_add with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_add_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_label_add, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_label_add()
-{
- TCase *tcase = tcase_create("utc_elm_label_add");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_label_add_p);
- tcase_add_test(tcase, utc_elm_label_add_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *label = NULL;
-
-/**
- * @addtogroup elm_label
- * @{
- * @defgroup elm_label_ellipsis_get elm_label_ellipsis_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create, resize and show main window
- * @step 3 Add a label to the main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
- }
- evas_object_resize(main_win, 480, 800);
- evas_object_show(main_win);
- label = elm_label_add(main_win);
- if (label == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a label to the main window..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_label_ellipsis_get
- * @{
- * @objective Positive Test case checks if function call with valid value to get the ellipsis
- * behavior of the label works properly and without segmentation fault
- * @n Input Data:
- * @li the label object
- *
- * @procedure
- * @step 1 Enable the ellipsis behavior of the label
- * @step 2 Call elm_label_ellipsis_get with valid value
- * @step 3 Disable the ellipsis behavior of the label
- * @step 4 Call elm_label_ellipsis_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_ellipsis_get_p)
-{
- if (main_win == NULL || label == NULL)
- {
- return;
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_label_ellipsis_set(label, EINA_TRUE);
- ret = elm_label_ellipsis_get(label);
- if (ret == EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
- elm_label_ellipsis_set(label, EINA_FALSE);
- ret = elm_label_ellipsis_get(label);
- if (ret == EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_label_ellipsis_get
- * @{
- * @objective Negative Test case checks if function call with invalid value to get the ellipsis
- * behavior of the label works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the label object
- *
- * @procedure
- * @step 1 Call elm_label_ellipsis_get with invalid value instead of the label object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_ellipsis_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_label_ellipsis_get, label))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_label_ellipsis_get()
-{
- TCase *tcase = tcase_create("utc_elm_label_ellipsis_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_label_ellipsis_get_p);
- tcase_add_test(tcase, utc_elm_label_ellipsis_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL, *label = NULL;
+
+/**
+ * @addtogroup elm_label
+ * @{
+ * @defgroup elm_label_ellipsis_get elm_label_ellipsis_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create, resize and show main window
+ * @step 3 Add a label to the main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+ evas_object_resize(main_win, 480, 800);
+ evas_object_show(main_win);
+ label = elm_label_add(main_win);
+ if (label == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a label to the main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_label_ellipsis_get
+ * @{
+ * @objective Positive Test case checks if function call with valid value to get the ellipsis
+ * behavior of the label works properly and without segmentation fault
+ * @n Input Data:
+ * @li the label object
+ *
+ * @procedure
+ * @step 1 Enable the ellipsis behavior of the label
+ * @step 2 Call elm_label_ellipsis_get with valid value
+ * @step 3 Disable the ellipsis behavior of the label
+ * @step 4 Call elm_label_ellipsis_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_ellipsis_get_p)
+{
+ Eina_Bool ret = EINA_FALSE;
+
+ elm_label_ellipsis_set(label, EINA_TRUE);
+ ret = elm_label_ellipsis_get(label);
+ if (ret == EINA_FALSE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
+ }
+ elm_label_ellipsis_set(label, EINA_FALSE);
+ ret = elm_label_ellipsis_get(label);
+ if (ret == EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_label_ellipsis_get
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to get the ellipsis
+ * behavior of the label works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the label object
+ *
+ * @procedure
+ * @step 1 Call elm_label_ellipsis_get with invalid value instead of the label object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_ellipsis_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_label_ellipsis_get, label))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_label_ellipsis_set
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to set the ellipsis
+ * behavior of the label works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the label object
+ * @li EINA_TRUE as the ellipsis behavior of the label
+ *
+ * @procedure
+ * @step 1 Call elm_label_ellipsis_set with invalid value instead of the label object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_ellipsis_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0)
+ UNITEST_FUNC_NEG_CA(elm_label_ellipsis_set, label, EINA_TRUE)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_label_add
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to add a new label
+ * to the parent works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_label_add with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_add_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_label_add, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_label_ellipsis_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_label_ellipsis_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_label_ellipsis_get_p);
+ tcase_add_test(tcase, utc_elm_label_ellipsis_get_n);
+ tcase_add_test(tcase, utc_elm_label_ellipsis_set_n);
+ tcase_add_test(tcase, utc_elm_label_add_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *label = NULL;
-
-/**
- * @addtogroup elm_label
- * @{
- * @defgroup elm_label_ellipsis_set elm_label_ellipsis_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create, resize and show main window
- * @step 3 Add a label to the main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
- }
- evas_object_resize(main_win, 480, 800);
- evas_object_show(main_win);
- label = elm_label_add(main_win);
- if (label == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a label to the main window..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_label_ellipsis_set
- * @{
- * @objective Positive Test case checks if function call with valid values to set the ellipsis
- * behavior of the label works properly and without segmentation fault
- * @n Input Data:
- * @li the label object
- * @li EINA_TRUE, EINA_FALSE as the ellipsis behavior of the label
- *
- * @procedure
- * @step 1 Call elm_label_ellipsis_set with EINA_TRUE as the ellipsis behavior of the label
- * @step 2 Get the ellipsis behavior of the label
- * @step 3 Call elm_label_ellipsis_set with EINA_FALSE as the ellipsis behavior of the label
- * @step 4 Get the ellipsis behavior of the label
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_ellipsis_set_p)
-{
- if (main_win == NULL || label == NULL)
- {
- return;
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_label_ellipsis_set(label, EINA_TRUE);
- ret = elm_label_ellipsis_get(label);
- if (ret == EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
- elm_label_ellipsis_set(label, EINA_FALSE);
- ret = elm_label_ellipsis_get(label);
- if (ret == EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_label_ellipsis_set
- * @{
- * @objective Negative Test case checks if function call with invalid value to set the ellipsis
- * behavior of the label works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the label object
- * @li EINA_TRUE as the ellipsis behavior of the label
- *
- * @procedure
- * @step 1 Call elm_label_ellipsis_set with invalid value instead of the label object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_ellipsis_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0)
- UNITEST_FUNC_NEG_CA(elm_label_ellipsis_set, label, EINA_TRUE)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_label_ellipsis_set()
-{
- TCase *tcase = tcase_create("utc_elm_label_ellipsis_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_label_ellipsis_set_p);
- tcase_add_test(tcase, utc_elm_label_ellipsis_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *label = NULL;
-
-/**
- * @addtogroup elm_label
- * @{
- * @defgroup elm_label_line_wrap_get elm_label_line_wrap_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create, resize and show main window
- * @step 3 Add a label to the main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
- }
- evas_object_resize(main_win, 480, 800);
- evas_object_show(main_win);
- label = elm_label_add(main_win);
- if (label == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a label to the main window..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_label_line_wrap_get
- * @{
- * @objective Positive Test case checks if function call with valid value to get the wrapping
- * behavior of the label works properly and without segmentation fault
- * @n Input Data:
- * @li the label object
- *
- * @procedure
- * @step 1 Set the wrapping behavior of the label
- * @step 2 Call elm_label_line_wrap_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_line_wrap_get_p)
-{
- if (main_win == NULL || label == NULL)
- {
- return;
- }
-
- Elm_Wrap_Type ret = ELM_WRAP_NONE;
-
- elm_label_line_wrap_set(label, ELM_WRAP_CHAR);
- ret = elm_label_line_wrap_get(label);
- if (ret != ELM_WRAP_CHAR)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_label_line_wrap_get
- * @{
- * @objective Negative Test case checks if function call with invalid value to get the wrapping
- * behavior of the label works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the label object
- *
- * @procedure
- * @step 1 Call elm_label_line_wrap_get with invalid value instead of the label object
- *
- * @passcondition
- * @li Test passes if returned value is ELM_WRAP_NONE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_line_wrap_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(ELM_WRAP_NONE, elm_label_line_wrap_get, label))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_label_line_wrap_get()
-{
- TCase *tcase = tcase_create("utc_elm_label_line_wrap_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_label_line_wrap_get_p);
- tcase_add_test(tcase, utc_elm_label_line_wrap_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL, *label = NULL;
+
+/**
+ * @addtogroup elm_label
+ * @{
+ * @defgroup elm_label_line_wrap_get elm_label_line_wrap_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create, resize and show main window
+ * @step 3 Add a label to the main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+ evas_object_resize(main_win, 480, 800);
+ evas_object_show(main_win);
+ label = elm_label_add(main_win);
+ if (label == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a label to the main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_label_line_wrap_get
+ * @{
+ * @objective Positive Test case checks if function call with valid value to get the wrapping
+ * behavior of the label works properly and without segmentation fault
+ * @n Input Data:
+ * @li the label object
+ *
+ * @procedure
+ * @step 1 Set the wrapping behavior of the label
+ * @step 2 Call elm_label_line_wrap_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_line_wrap_get_p)
+{
+ Elm_Wrap_Type ret = ELM_WRAP_NONE;
+
+ elm_label_line_wrap_set(label, ELM_WRAP_CHAR);
+ ret = elm_label_line_wrap_get(label);
+ if (ret != ELM_WRAP_CHAR)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_label_line_wrap_get
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to get the wrapping
+ * behavior of the label works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the label object
+ *
+ * @procedure
+ * @step 1 Call elm_label_line_wrap_get with invalid value instead of the label object
+ *
+ * @passcondition
+ * @li Test passes if returned value is ELM_WRAP_NONE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_line_wrap_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(ELM_WRAP_NONE, elm_label_line_wrap_get, label))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_label_line_wrap_set
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to set the wrapping
+ * behavior of the label works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the label object
+ * @li ELM_WRAP_CHAR, ELM_WRAP_NONE - 1 as the wrapping behavior of the label
+ * Note! ELM_WRAP_NONE is the min value of Elm_Wrap_Type enum type
+ *
+ * @procedure
+ * @step 1 Call elm_label_line_wrap_set with invalid value instead of the label object
+ * @step 2 Call elm_label_line_wrap_set with invalid value instead of the wrapping behavior of the label
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_line_wrap_set_n)
+{
+ elm_label_line_wrap_set(NULL, ELM_WRAP_CHAR);
+ elm_label_line_wrap_set(label, ELM_WRAP_NONE - 1);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_label_line_wrap_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_label_line_wrap_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_label_line_wrap_get_p);
+ tcase_add_test(tcase, utc_elm_label_line_wrap_get_n);
+ tcase_add_test(tcase, utc_elm_label_line_wrap_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL, *label = NULL;
-
-/**
- * @addtogroup elm_label
- * @{
- * @defgroup elm_label_line_wrap_set elm_label_line_wrap_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create, resize and show main window
- * @step 3 Add a label to the main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
- }
- evas_object_resize(main_win, 480, 800);
- evas_object_show(main_win);
- label = elm_label_add(main_win);
- if (label == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a label to the main window..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_label_line_wrap_set
- * @{
- * @objective Positive Test case checks if function call with valid values to set the wrapping
- * behavior of the label works properly and without segmentation fault
- * @n Input Data:
- * @li the label object
- * @li ELM_WRAP_CHAR as the wrapping behavior of the label
- *
- * @procedure
- * @step 1 Call elm_label_line_wrap_set with valid values
- * @step 2 Get the wrapping behavior of the label
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_line_wrap_set_p)
-{
- if (main_win == NULL || label == NULL)
- {
- return;
- }
-
- Elm_Wrap_Type ret = ELM_WRAP_NONE;
-
- elm_label_line_wrap_set(label, ELM_WRAP_CHAR);
- ret = elm_label_line_wrap_get(label);
- if (ret != ELM_WRAP_CHAR)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_label_line_wrap_set
- * @{
- * @objective Negative Test case checks if function call with invalid value to set the wrapping
- * behavior of the label works without segmentation fault
- * @n Input Data:
- * @li NULL, the label object
- * @li ELM_WRAP_CHAR, ELM_WRAP_NONE - 1 as the wrapping behavior of the label
- * Note! ELM_WRAP_NONE is the min value of Elm_Wrap_Type enum type
- *
- * @procedure
- * @step 1 Call elm_label_line_wrap_set with invalid value instead of the label object
- * @step 2 Call elm_label_line_wrap_set with invalid value instead of the wrapping behavior of the label
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_line_wrap_set_n)
-{
- if (main_win == NULL || label == NULL)
- {
- return;
- }
-
- elm_label_line_wrap_set(NULL, ELM_WRAP_CHAR);
- elm_label_line_wrap_set(label, ELM_WRAP_NONE - 1);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_label_line_wrap_set()
-{
- TCase *tcase = tcase_create("utc_elm_label_line_wrap_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_label_line_wrap_set_p);
- tcase_add_test(tcase, utc_elm_label_line_wrap_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL, *label = NULL;
-
-/**
- * @addtogroup elm_label
- * @{
- * @defgroup elm_label_slide_duration_get elm_label_slide_duration_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create, resize and show main window
- * @step 3 Add a label to the main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
- }
- evas_object_resize(main_win, 480, 800);
- evas_object_show(main_win);
- label = elm_label_add(main_win);
- if (label == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a label to the main window..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_label_slide_duration_get
- * @{
- * @objective Positive Test case checks if function call with valid value to get the slide
- * duration(speed) of the label works properly and without segmentation fault
- * @n Input Data:
- * @li the label object
- *
- * @procedure
- * @step 1 Set the slide duration of the label widget
- * @step 2 Call elm_label_slide_duration_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_slide_duration_get_p)
-{
- if (main_win == NULL || label == NULL)
- {
- return;
- }
-
- double ret = 0.0;
-
- elm_label_slide_duration_set(label, 10.0);
- ret = elm_label_slide_duration_get(label);
- if (fabs(ret - 10.0) > DBL_EPSILON)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_label_slide_duration_get
- * @{
- * @objective Negative Test case checks if function call with invalid value to get the slide
- * duration(speed) of the label works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the label object
- *
- * @procedure
- * @step 1 Call elm_label_slide_duration_get with invalid value instead of the label object
- *
- * @passcondition
- * @li Test passes if returned value is 0.0 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_slide_duration_get_n)
-{
- double ret = 0.0;
-
- ret = elm_label_slide_duration_get(NULL);
- if (fabs(ret - 0.0) > DBL_EPSILON)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_label_slide_duration_get()
-{
- TCase *tcase = tcase_create("utc_elm_label_slide_duration_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_label_slide_duration_get_p);
- tcase_add_test(tcase, utc_elm_label_slide_duration_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+static Evas_Object *main_win = NULL, *label = NULL;
+
+/**
+ * @addtogroup elm_label
+ * @{
+ * @defgroup elm_label_slide_duration_get elm_label_slide_duration_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create, resize and show main window
+ * @step 3 Add a label to the main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+ evas_object_resize(main_win, 480, 800);
+ evas_object_show(main_win);
+ label = elm_label_add(main_win);
+ if (label == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a label to the main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_label_slide_duration_get
+ * @{
+ * @objective Positive Test case checks if function call with valid value to get the slide
+ * duration(speed) of the label works properly and without segmentation fault
+ * @n Input Data:
+ * @li the label object
+ *
+ * @procedure
+ * @step 1 Set the slide duration of the label widget
+ * @step 2 Call elm_label_slide_duration_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_slide_duration_get_p)
+{
+ double ret = 0.0;
+
+ elm_label_slide_duration_set(label, 10.0);
+ ret = elm_label_slide_duration_get(label);
+ if (fabs(ret - 10.0) > DBL_EPSILON)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_label_slide_duration_get
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to get the slide
+ * duration(speed) of the label works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the label object
+ *
+ * @procedure
+ * @step 1 Call elm_label_slide_duration_get with invalid value instead of the label object
+ *
+ * @passcondition
+ * @li Test passes if returned value is 0.0 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_slide_duration_get_n)
+{
+ double ret = 0.0;
+
+ ret = elm_label_slide_duration_get(NULL);
+ if (fabs(ret - 0.0) > DBL_EPSILON)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_label_slide_duration_set
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to set the slide
+ * duration(speed) of the label works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the label object
+ * @li 10.0, -10.0 as the duration in seconds in moving text from slide begin position to slide end position
+ *
+ * @procedure
+ * @step 1 Call elm_label_slide_duration_set with invalid value instead of the label object
+ * @step 2 Call elm_label_slide_duration_set with invalid value instead of the duration in seconds in moving text from slide begin position to slide end position
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_slide_duration_set_n)
+{
+ elm_label_slide_duration_set(NULL, 10.0);
+ elm_label_slide_duration_set(label, -10.0);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_label_slide_duration_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_label_slide_duration_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_label_slide_duration_get_p);
+ tcase_add_test(tcase, utc_elm_label_slide_duration_get_n);
+ tcase_add_test(tcase, utc_elm_label_slide_duration_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL, *label = NULL;
-
-/**
- * @addtogroup elm_label
- * @{
- * @defgroup elm_label_slide_duration_set elm_label_slide_duration_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create, resize and show main window
- * @step 3 Add a label to the main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
- }
- evas_object_resize(main_win, 480, 800);
- evas_object_show(main_win);
- label = elm_label_add(main_win);
- if (label == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a label to the main window..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_label_slide_duration_set
- * @{
- * @objective Positive Test case checks if function call with valid values to set the slide
- * duration(speed) of the label works properly and without segmentation fault
- * @n Input Data:
- * @li the label object
- * @li 10.0 as the duration in seconds in moving text from slide begin position to slide end position
- *
- * @procedure
- * @step 1 Call elm_label_slide_duration_set with valid values
- * @step 2 Get the slide duration of the label widget
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_slide_duration_set_p)
-{
- if (main_win == NULL || label == NULL)
- {
- return;
- }
-
- double ret = 0.0;
-
- elm_label_slide_duration_set(label, 10.0);
- ret = elm_label_slide_duration_get(label);
- if (fabs(ret - 10.0) > DBL_EPSILON)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_label_slide_duration_set
- * @{
- * @objective Negative Test case checks if function call with invalid value to set the slide
- * duration(speed) of the label works without segmentation fault
- * @n Input Data:
- * @li NULL, the label object
- * @li 10.0, -10.0 as the duration in seconds in moving text from slide begin position to slide end position
- *
- * @procedure
- * @step 1 Call elm_label_slide_duration_set with invalid value instead of the label object
- * @step 2 Call elm_label_slide_duration_set with invalid value instead of the duration in seconds in moving text from slide begin position to slide end position
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_slide_duration_set_n)
-{
- if (main_win == NULL || label == NULL)
- {
- return;
- }
-
- elm_label_slide_duration_set(NULL, 10.0);
- elm_label_slide_duration_set(label, -10.0);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_label_slide_duration_set()
-{
- TCase *tcase = tcase_create("utc_elm_label_slide_duration_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_label_slide_duration_set_p);
- tcase_add_test(tcase, utc_elm_label_slide_duration_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *label = NULL;
-
-/**
- * @addtogroup elm_label
- * @{
- * @defgroup elm_label_slide_mode_get elm_label_slide_mode_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create, resize and show main window
- * @step 3 Add a label to the main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
- }
- evas_object_resize(main_win, 480, 800);
- evas_object_show(main_win);
- label = elm_label_add(main_win);
- if (label == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a label to the main window..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_label_slide_mode_get
- * @{
- * @objective Positive Test case 01: Get the slide mode of the label widget
- * @n Input Data:
- * @li valid Evas_Object (label)
- *
- * @procedure
- * @step 1 Call elm_label_slide_mode_get with valid values
- * @step 2 Set ELM_LABEL_SLIDE_MODE_NONE of the label
- * @step 3 Get slide mode of the label
- * @step 4 Set ELM_LABEL_SLIDE_MODE_AUTO of the label
- * @step 5 Get slide mode of the label
- *
- * @passcondition: Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_slide_mode_get_p_01)
-{
- if (main_win == NULL || label == NULL)
- {
- return;
- }
-
- elm_label_slide_mode_set(label, ELM_LABEL_SLIDE_MODE_NONE);
- if (elm_label_slide_mode_get(label) != ELM_LABEL_SLIDE_MODE_NONE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
-
- elm_label_slide_mode_set(label, ELM_LABEL_SLIDE_MODE_AUTO);
- if (elm_label_slide_mode_get(label) != ELM_LABEL_SLIDE_MODE_AUTO)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_label_slide_mode_get
- * @{
- * @objective Negative Test case 01: Call function with NULL instead of the label
- * @n Input Data:
- * @li invalid Evas_Object (NULL)
- *
- * @procedure
- * @step 1 Call function with NULL instead of the label
- *
- * @passcondition: Test passes if returned value is ELM_LABEL_SLIDE_MODE_NONE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_slide_mode_get_n_01)
-{
- if (main_win == NULL || label == NULL)
- {
- return;
- }
-
-
- if (elm_label_slide_mode_get(NULL) != ELM_LABEL_SLIDE_MODE_NONE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_label_slide_mode_get()
-{
- TCase *tcase = tcase_create("utc_elm_label_slide_mode_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_label_slide_mode_get_p_01);
- tcase_add_test(tcase, utc_elm_label_slide_mode_get_n_01);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL, *label = NULL;
+
+/**
+ * @addtogroup elm_label
+ * @{
+ * @defgroup elm_label_slide_mode_get elm_label_slide_mode_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create, resize and show main window
+ * @step 3 Add a label to the main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+ evas_object_resize(main_win, 480, 800);
+ evas_object_show(main_win);
+ label = elm_label_add(main_win);
+ if (label == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a label to the main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_label_slide_mode_get
+ * @{
+ * @objective Positive Test case 01: Get the slide mode of the label widget
+ * @n Input Data:
+ * @li valid Evas_Object (label)
+ *
+ * @procedure
+ * @step 1 Call elm_label_slide_mode_get with valid values
+ * @step 2 Set ELM_LABEL_SLIDE_MODE_NONE of the label
+ * @step 3 Get slide mode of the label
+ * @step 4 Set ELM_LABEL_SLIDE_MODE_AUTO of the label
+ * @step 5 Get slide mode of the label
+ *
+ * @passcondition: Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_slide_mode_get_p_01)
+{
+ elm_label_slide_mode_set(label, ELM_LABEL_SLIDE_MODE_NONE);
+ if (elm_label_slide_mode_get(label) != ELM_LABEL_SLIDE_MODE_NONE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
+ }
+
+ elm_label_slide_mode_set(label, ELM_LABEL_SLIDE_MODE_AUTO);
+ if (elm_label_slide_mode_get(label) != ELM_LABEL_SLIDE_MODE_AUTO)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_label_slide_mode_get
+ * @{
+ * @objective Negative Test case 01: Call function with NULL instead of the label
+ * @n Input Data:
+ * @li invalid Evas_Object (NULL)
+ *
+ * @procedure
+ * @step 1 Call function with NULL instead of the label
+ *
+ * @passcondition: Test passes if returned value is ELM_LABEL_SLIDE_MODE_NONE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_slide_mode_get_n_01)
+{
+ if (elm_label_slide_mode_get(NULL) != ELM_LABEL_SLIDE_MODE_NONE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_label_slide_mode_set
+ * @{
+ * @objective Negative Test case 01: checks if function call with invalid value of the label and works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the label object
+ * @li the slide mode
+ *
+ * @procedure
+ * @step 1 Call elm_label_slide_mode_set with invalid value instead of the label
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_slide_mode_set_n_1)
+{
+ elm_label_slide_mode_set(NULL, ELM_LABEL_SLIDE_MODE_ALWAYS);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_label_slide_mode_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_label_slide_mode_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_label_slide_mode_get_p_01);
+ tcase_add_test(tcase, utc_elm_label_slide_mode_get_n_01);
+ tcase_add_test(tcase, utc_elm_label_slide_mode_set_n_1);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *label = NULL;
-
-/**
- * @addtogroup elm_label
- * @{
- * @defgroup elm_label_slide_mode_set elm_label_slide_mode_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create, resize and show main window
- * @step 3 Add a label to the main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
- }
- evas_object_resize(main_win, 480, 800);
- evas_object_show(main_win);
- label = elm_label_add(main_win);
- if (label == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a label to the main window..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_label_slide_mode_set
- * @{
- * @objective Positive Test case 01: checks if function call with valid values to set wrap
- * width of the label works properly and without segmentation fault
- * @n Input Data:
- * @li the label object
- * @li the slide mode
- *
- * @procedure
- * @step 1 Call elm_label_slide_mode_set with valid values
- * @step 2 Set ELM_LABEL_SLIDE_MODE of the label
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_slide_mode_set_p_1)
-{
- if (main_win == NULL || label == NULL)
- {
- return;
- }
-
- elm_label_slide_mode_set(label, ELM_LABEL_SLIDE_MODE_NONE);
- if (elm_label_slide_mode_get(label) != ELM_LABEL_SLIDE_MODE_NONE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
-
- elm_label_slide_mode_set(label, ELM_LABEL_SLIDE_MODE_AUTO);
- if (elm_label_slide_mode_get(label) != ELM_LABEL_SLIDE_MODE_AUTO)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_label_slide_mode_set
- * @{
- * @objective Negative Test case 01: checks if function call with invalid value of the label and works without segmentation fault
- * @n Input Data:
- * @li NULL, the label object
- * @li the slide mode
- *
- * @procedure
- * @step 1 Call elm_label_slide_mode_set with invalid value instead of the label
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_slide_mode_set_n_1)
-{
- if (main_win == NULL || label == NULL)
- {
- return;
- }
-
- elm_label_slide_mode_set(NULL, ELM_LABEL_SLIDE_MODE_ALWAYS);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_label_slide_mode_set()
-{
- TCase *tcase = tcase_create("utc_elm_label_slide_mode_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_label_slide_mode_set_p_1);
- tcase_add_test(tcase, utc_elm_label_slide_mode_set_n_1);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL, *label = NULL;
-static const double g_label_slide_speed = 15.0;
-
-/**
- * @addtogroup elm_label
- * @{
- * @defgroup elm_label_slide_speed_get elm_label_slide_speed_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create, resize and show main window
- * @step 3 Add a label to the main window
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- {
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win != NULL)
- {
- evas_object_resize(main_win, 480, 800);
- evas_object_show(main_win);
- label = elm_label_add(main_win);
- if (label != NULL)
- {
- startup_status = EINA_TRUE;
- }
- }
- }
-}
-static void
-teardown(void)
-{
- if (label)
- {
- evas_object_del(label);
- label = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_label_slide_speed_get
- * @{
- * @objective Positive Test case checks if function call to get sliding effect speed
- * of label widget works properly and without segmentation fault
- *
- * @n Input Data:
- * @li the label object
- *
- * @procedure
- * @step 1 Call elm_label_slide_speed_get to get default value.
- * @step 2 Set sliding effect speed of label.
- * @step 3 Call elm_label_slide_speed_get to get setted value for compare.
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_slide_speed_get_p)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- double speed = elm_label_slide_speed_get(label);
-
- elm_label_slide_speed_set(label, g_label_slide_speed);
-
- if (fabs(elm_label_slide_speed_get(label) - g_label_slide_speed) > DBL_EPSILON)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_label_slide_speed_get
- * @{
- * @objective Negative Test case checks if function call with invalid value of label widget
- * and works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the label object
- *
- * @procedure
- * @step 1 Call elm_label_slide_speed_get with invalid value instead of the label object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_slide_speed_get_n)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- double speed = elm_label_slide_speed_get(NULL);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_label_slide_speed_get()
-{
- TCase *tcase = tcase_create("utc_elm_label_slide_speed_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_label_slide_speed_get_p);
- tcase_add_test(tcase, utc_elm_label_slide_speed_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Eina_Bool startup_status = EINA_FALSE;
+static Evas_Object *main_win = NULL, *label = NULL;
+static const double g_label_slide_speed = 15.0;
+
+/**
+ * @addtogroup elm_label
+ * @{
+ * @defgroup elm_label_slide_speed_get elm_label_slide_speed_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create, resize and show main window
+ * @step 3 Add a label to the main window
+ */
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ {
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win != NULL)
+ {
+ evas_object_resize(main_win, 480, 800);
+ evas_object_show(main_win);
+ label = elm_label_add(main_win);
+ if (label != NULL)
+ {
+ startup_status = EINA_TRUE;
+ }
+ }
+ }
+}
+static void
+teardown(void)
+{
+ if (label)
+ {
+ evas_object_del(label);
+ label = NULL;
+ }
+ if (main_win)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_label_slide_speed_get
+ * @{
+ * @objective Positive Test case checks if function call to get sliding effect speed
+ * of label widget works properly and without segmentation fault
+ *
+ * @n Input Data:
+ * @li the label object
+ *
+ * @procedure
+ * @step 1 Call elm_label_slide_speed_get to get default value.
+ * @step 2 Set sliding effect speed of label.
+ * @step 3 Call elm_label_slide_speed_get to get setted value for compare.
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_slide_speed_get_p)
+{
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ double speed = elm_label_slide_speed_get(label);
+
+ elm_label_slide_speed_set(label, g_label_slide_speed);
+
+ if (fabs(elm_label_slide_speed_get(label) - g_label_slide_speed) > DBL_EPSILON)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_label_slide_speed_get
+ * @{
+ * @objective Negative Test case checks if function call with invalid value of label widget
+ * and works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the label object
+ *
+ * @procedure
+ * @step 1 Call elm_label_slide_speed_get with invalid value instead of the label object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_slide_speed_get_n)
+{
+ double speed = elm_label_slide_speed_get(NULL);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_label_slide_speed_set
+ * @{
+ * @objective Negative Test case checks if function call with invalid value of label widget
+ * and works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the label object
+ * @li sliding effect speed
+ *
+ * @procedure
+ * @step 1 Call elm_label_slide_speed_set with invalid value instead of the label object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_slide_speed_set_n)
+{
+ elm_label_slide_speed_set(NULL, g_label_slide_speed);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_label_slide_speed_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_label_slide_speed_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_label_slide_speed_get_p);
+ tcase_add_test(tcase, utc_elm_label_slide_speed_get_n);
+ tcase_add_test(tcase, utc_elm_label_slide_speed_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL, *label = NULL;
-static const double g_label_slide_speed = 15.0;
-
-/**
- * @addtogroup elm_label
- * @{
- * @defgroup elm_label_slide_speed_set elm_label_slide_speed_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create, resize and show main window
- * @step 3 Add a label to the main window
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- {
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win != NULL)
- {
- evas_object_resize(main_win, 480, 800);
- evas_object_show(main_win);
- label = elm_label_add(main_win);
- if (label != NULL)
- {
- startup_status = EINA_TRUE;
- }
- }
- }
-}
-static void
-teardown(void)
-{
- if (label)
- {
- evas_object_del(label);
- label = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_label_slide_speed_set
- * @{
- * @objective Positive Test case checks if function call to set sliding effect speed
- * of label widget works properly and without segmentation fault
- *
- * @n Input Data:
- * @li the label object
- * @li sliding effect speed
- *
- * @procedure
- * @step 1 Set sliding effect speed of label.
- * @step 2 Call elm_label_slide_speed_get to get setted value for compare.
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_slide_speed_set_p)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- elm_label_slide_speed_set(label, g_label_slide_speed);
-
- if (fabs(elm_label_slide_speed_get(label) - g_label_slide_speed) > DBL_EPSILON)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-
-}
-END_TEST
-
-/**
- * @addtogroup elm_label_slide_speed_set
- * @{
- * @objective Negative Test case checks if function call with invalid value of label widget
- * and works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the label object
- * @li sliding effect speed
- *
- * @procedure
- * @step 1 Call elm_label_slide_speed_set with invalid value instead of the label object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_slide_speed_set_n)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- elm_label_slide_speed_set(NULL, g_label_slide_speed);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_label_slide_speed_set()
-{
- TCase *tcase = tcase_create("utc_elm_label_slide_speed_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_label_slide_speed_set_p);
- tcase_add_test(tcase, utc_elm_label_slide_speed_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *label = NULL;
-
-/**
- * @addtogroup elm_label
- * @{
- * @defgroup elm_label_wrap_width_get elm_label_wrap_width_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create, resize and show main window
- * @step 3 Add a label to the main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
- }
- evas_object_resize(main_win, 480, 800);
- evas_object_show(main_win);
- label = elm_label_add(main_win);
- if (label == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a label to the main window..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_label_wrap_width_get
- * @{
- * @objective Positive Test case checks if function call with valid value to get wrap
- * width of the label works properly and without segmentation fault
- * @n Input Data:
- * @li the label object
- *
- * @procedure
- * @step 1 Set wrap width of the label
- * @step 2 Call elm_label_wrap_width_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_wrap_width_get_p)
-{
- if (main_win == NULL || label == NULL)
- {
- return;
- }
-
- Evas_Coord ret = 0;
-
- elm_label_wrap_width_set(label, 10);
- ret = elm_label_wrap_width_get(label);
- if (ret != 10)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_label_wrap_width_get
- * @{
- * @objective Negative Test case checks if function call with invalid value to get wrap
- * width of the label works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the label object
- *
- * @procedure
- * @step 1 Call elm_label_wrap_width_get with invalid value instead of the label object
- *
- * @passcondition
- * @li Test passes if returned value is 0 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_wrap_width_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(0, elm_label_wrap_width_get, label))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_label_wrap_width_get()
-{
- TCase *tcase = tcase_create("utc_elm_label_wrap_width_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_label_wrap_width_get_p);
- tcase_add_test(tcase, utc_elm_label_wrap_width_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL, *label = NULL;
+
+/**
+ * @addtogroup elm_label
+ * @{
+ * @defgroup elm_label_wrap_width_get elm_label_wrap_width_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create, resize and show main window
+ * @step 3 Add a label to the main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ return;
+ }
+ evas_object_resize(main_win, 480, 800);
+ evas_object_show(main_win);
+ label = elm_label_add(main_win);
+ if (label == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a label to the main window..", __FILE__, __LINE__);
+ return;
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_label_wrap_width_get
+ * @{
+ * @objective Positive Test case checks if function call with valid value to get wrap
+ * width of the label works properly and without segmentation fault
+ * @n Input Data:
+ * @li the label object
+ *
+ * @procedure
+ * @step 1 Set wrap width of the label
+ * @step 2 Call elm_label_wrap_width_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_wrap_width_get_p)
+{
+ Evas_Coord ret = 0;
+
+ elm_label_wrap_width_set(label, 10);
+ ret = elm_label_wrap_width_get(label);
+ if (ret != 10)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_label_wrap_width_get
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to get wrap
+ * width of the label works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the label object
+ *
+ * @procedure
+ * @step 1 Call elm_label_wrap_width_get with invalid value instead of the label object
+ *
+ * @passcondition
+ * @li Test passes if returned value is 0 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_wrap_width_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(0, elm_label_wrap_width_get, label))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_label_wrap_width_set
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to set wrap
+ * width of the label works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the label object
+ * @li 10, -10 as the wrap width in pixels at a minimum where words need to wrap
+ *
+ * @procedure
+ * @step 1 Call elm_label_wrap_width_set with invalid value instead of the label object
+ * @step 2 Call elm_label_wrap_width_set with invalid value instead of the wrap width in pixels at a minimum where words need to wrap
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_label_wrap_width_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0)
+ UNITEST_FUNC_NEG_CA(elm_label_wrap_width_set, label, 10)
+ elm_label_wrap_width_set(label, -10);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_label_wrap_width_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_label_wrap_width_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_label_wrap_width_get_p);
+ tcase_add_test(tcase, utc_elm_label_wrap_width_get_n);
+ tcase_add_test(tcase, utc_elm_label_wrap_width_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *label = NULL;
-
-/**
- * @addtogroup elm_label
- * @{
- * @defgroup elm_label_wrap_width_set elm_label_wrap_width_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create, resize and show main window
- * @step 3 Add a label to the main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
- }
- evas_object_resize(main_win, 480, 800);
- evas_object_show(main_win);
- label = elm_label_add(main_win);
- if (label == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a label to the main window..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_label_wrap_width_set
- * @{
- * @objective Positive Test case checks if function call with valid values to set wrap
- * width of the label works properly and without segmentation fault
- * @n Input Data:
- * @li the label object
- * @li 10 as the wrap width in pixels at a minimum where words need to wrap
- *
- * @procedure
- * @step 1 Call elm_label_wrap_width_set with valid values
- * @step 2 Set wrap width of the label
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_wrap_width_set_p)
-{
- if (main_win == NULL || label == NULL)
- {
- return;
- }
-
- Evas_Coord ret = 0;
-
- elm_label_wrap_width_set(label, 10);
- ret = elm_label_wrap_width_get(label);
- if (ret != 10)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_label_wrap_width_set
- * @{
- * @objective Negative Test case checks if function call with invalid value to set wrap
- * width of the label works without segmentation fault
- * @n Input Data:
- * @li NULL, the label object
- * @li 10, -10 as the wrap width in pixels at a minimum where words need to wrap
- *
- * @procedure
- * @step 1 Call elm_label_wrap_width_set with invalid value instead of the label object
- * @step 2 Call elm_label_wrap_width_set with invalid value instead of the wrap width in pixels at a minimum where words need to wrap
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_label_wrap_width_set_n)
-{
- if (main_win == NULL || label == NULL)
- {
- return;
- }
-
- CREATE_CHECKED_ARGS_ARRAY(1, 0)
- UNITEST_FUNC_NEG_CA(elm_label_wrap_width_set, label, 10)
- elm_label_wrap_width_set(label, -10);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_label_wrap_width_set()
-{
- TCase *tcase = tcase_create("utc_elm_label_wrap_width_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_label_wrap_width_set_p);
- tcase_add_test(tcase, utc_elm_label_wrap_width_set_n);
- return tcase;
-}