utc_elm_slider_xxxx: Merged TCs to reduce duplicacy in TCs. 07/186407/2
authorManoj Kumar <manoj.km@samsung.com>
Thu, 9 Aug 2018 10:04:11 +0000 (15:34 +0530)
committerHermet Park <chuneon.park@samsung.com>
Mon, 20 Aug 2018 06:15:25 +0000 (06:15 +0000)
Change-Id: I230f3fea1684f85df2f972d4d04ed6a2daa983bb

36 files changed:
TC/elementary/slider/tslist
TC/elementary/slider/tslist_mobile
TC/elementary/slider/tslist_tv
TC/elementary/slider/tslist_wear
TC/elementary/slider/utc_elm_slider_add.c [deleted file]
TC/elementary/slider/utc_elm_slider_horizontal_get.c [deleted file]
TC/elementary/slider/utc_elm_slider_horizontal_get_set.c [new file with mode: 0644]
TC/elementary/slider/utc_elm_slider_horizontal_set.c [deleted file]
TC/elementary/slider/utc_elm_slider_indicator_format_function_set.c [deleted file]
TC/elementary/slider/utc_elm_slider_indicator_format_get.c [deleted file]
TC/elementary/slider/utc_elm_slider_indicator_format_get_set_function.c [new file with mode: 0644]
TC/elementary/slider/utc_elm_slider_indicator_format_set.c [deleted file]
TC/elementary/slider/utc_elm_slider_indicator_show_get.c [deleted file]
TC/elementary/slider/utc_elm_slider_indicator_show_get_set.c [new file with mode: 0644]
TC/elementary/slider/utc_elm_slider_indicator_show_set.c [deleted file]
TC/elementary/slider/utc_elm_slider_indicator_visible_mode_get.c [deleted file]
TC/elementary/slider/utc_elm_slider_indicator_visible_mode_get_set.c [new file with mode: 0644]
TC/elementary/slider/utc_elm_slider_indicator_visible_mode_set.c [deleted file]
TC/elementary/slider/utc_elm_slider_inverted_get.c [deleted file]
TC/elementary/slider/utc_elm_slider_inverted_get_set.c [new file with mode: 0644]
TC/elementary/slider/utc_elm_slider_inverted_set.c [deleted file]
TC/elementary/slider/utc_elm_slider_min_max_get.c [deleted file]
TC/elementary/slider/utc_elm_slider_min_max_get_set.c [new file with mode: 0644]
TC/elementary/slider/utc_elm_slider_min_max_set.c [deleted file]
TC/elementary/slider/utc_elm_slider_span_size_get.c [deleted file]
TC/elementary/slider/utc_elm_slider_span_size_get_set.c [new file with mode: 0644]
TC/elementary/slider/utc_elm_slider_span_size_set.c [deleted file]
TC/elementary/slider/utc_elm_slider_step_get.c [deleted file]
TC/elementary/slider/utc_elm_slider_step_get_set.c [new file with mode: 0644]
TC/elementary/slider/utc_elm_slider_step_set.c [deleted file]
TC/elementary/slider/utc_elm_slider_unit_format_get.c [deleted file]
TC/elementary/slider/utc_elm_slider_unit_format_get_set.c [new file with mode: 0644]
TC/elementary/slider/utc_elm_slider_unit_format_set.c [deleted file]
TC/elementary/slider/utc_elm_slider_value_get.c [deleted file]
TC/elementary/slider/utc_elm_slider_value_get_set.c [new file with mode: 0644]
TC/elementary/slider/utc_elm_slider_value_set.c [deleted file]

index 4b72cb6a5a2e7afde748c4d2b4018ecb50c84abe..2abc33095da13339c3f9c59b36b3a45a7925e176 100644 (file)
@@ -1,24 +1,12 @@
-utc_elm_slider_add.c
-utc_elm_slider_horizontal_get.c
-utc_elm_slider_horizontal_set.c
-utc_elm_slider_indicator_format_function_set.c
-utc_elm_slider_indicator_format_get.c
-utc_elm_slider_indicator_format_set.c
-utc_elm_slider_indicator_show_get.c
-utc_elm_slider_indicator_show_set.c
-utc_elm_slider_indicator_visible_mode_get.c
-utc_elm_slider_indicator_visible_mode_set.c
-utc_elm_slider_inverted_get.c
-utc_elm_slider_inverted_set.c
-utc_elm_slider_min_max_get.c
-utc_elm_slider_min_max_set.c
-utc_elm_slider_span_size_get.c
-utc_elm_slider_span_size_set.c
-utc_elm_slider_unit_format_get.c
-utc_elm_slider_unit_format_set.c
-utc_elm_slider_value_get.c
-utc_elm_slider_value_set.c
+utc_elm_slider_horizontal_get_set.c
+utc_elm_slider_indicator_format_get_set_function.c
+utc_elm_slider_indicator_show_get_set.c
+utc_elm_slider_indicator_visible_mode_get_set.c
+utc_elm_slider_inverted_get_set.c
+utc_elm_slider_min_max_get_set.c
+utc_elm_slider_span_size_get_set.c
+utc_elm_slider_unit_format_get_set.c
+utc_elm_slider_value_get_set.c
 utc_elm_slider_units_format_function_set.c
-utc_elm_slider_step_set.c
-utc_elm_slider_step_get.c
+utc_elm_slider_step_get_set.c
 utc_elm_slider_indicator_show_on_focus.c
\ No newline at end of file
index 4b72cb6a5a2e7afde748c4d2b4018ecb50c84abe..2abc33095da13339c3f9c59b36b3a45a7925e176 100644 (file)
@@ -1,24 +1,12 @@
-utc_elm_slider_add.c
-utc_elm_slider_horizontal_get.c
-utc_elm_slider_horizontal_set.c
-utc_elm_slider_indicator_format_function_set.c
-utc_elm_slider_indicator_format_get.c
-utc_elm_slider_indicator_format_set.c
-utc_elm_slider_indicator_show_get.c
-utc_elm_slider_indicator_show_set.c
-utc_elm_slider_indicator_visible_mode_get.c
-utc_elm_slider_indicator_visible_mode_set.c
-utc_elm_slider_inverted_get.c
-utc_elm_slider_inverted_set.c
-utc_elm_slider_min_max_get.c
-utc_elm_slider_min_max_set.c
-utc_elm_slider_span_size_get.c
-utc_elm_slider_span_size_set.c
-utc_elm_slider_unit_format_get.c
-utc_elm_slider_unit_format_set.c
-utc_elm_slider_value_get.c
-utc_elm_slider_value_set.c
+utc_elm_slider_horizontal_get_set.c
+utc_elm_slider_indicator_format_get_set_function.c
+utc_elm_slider_indicator_show_get_set.c
+utc_elm_slider_indicator_visible_mode_get_set.c
+utc_elm_slider_inverted_get_set.c
+utc_elm_slider_min_max_get_set.c
+utc_elm_slider_span_size_get_set.c
+utc_elm_slider_unit_format_get_set.c
+utc_elm_slider_value_get_set.c
 utc_elm_slider_units_format_function_set.c
-utc_elm_slider_step_set.c
-utc_elm_slider_step_get.c
+utc_elm_slider_step_get_set.c
 utc_elm_slider_indicator_show_on_focus.c
\ No newline at end of file
index c7c90877e8bcff11911a472a540fe4a77ab1494f..20dafe485acdb14ae8f3cbc757a209a7e88de13f 100644 (file)
@@ -1,24 +1,12 @@
-utc_elm_slider_add.c
-utc_elm_slider_horizontal_get.c
-utc_elm_slider_horizontal_set.c
-utc_elm_slider_indicator_format_function_set.c
-utc_elm_slider_indicator_format_get.c
-utc_elm_slider_indicator_format_set.c
-utc_elm_slider_indicator_show_get.c
-utc_elm_slider_indicator_show_set.c
-utc_elm_slider_indicator_visible_mode_get.c
-utc_elm_slider_indicator_visible_mode_set.c
-utc_elm_slider_inverted_get.c
-utc_elm_slider_inverted_set.c
-utc_elm_slider_min_max_get.c
-utc_elm_slider_min_max_set.c
-utc_elm_slider_span_size_get.c
-utc_elm_slider_span_size_set.c
-utc_elm_slider_unit_format_get.c
-utc_elm_slider_unit_format_set.c
-utc_elm_slider_value_get.c
-utc_elm_slider_value_set.c
+utc_elm_slider_horizontal_get_set.c
+utc_elm_slider_indicator_format_get_set_function.c
+utc_elm_slider_indicator_show_get_set.c
+utc_elm_slider_indicator_visible_mode_get_set.c
+utc_elm_slider_inverted_get_set.c
+utc_elm_slider_min_max_get_set.c
+utc_elm_slider_span_size_get_set.c
+utc_elm_slider_unit_format_get_set.c
+utc_elm_slider_value_get_set.c
 utc_elm_slider_units_format_function_set.c
-utc_elm_slider_step_set.c
-utc_elm_slider_step_get.c
+utc_elm_slider_step_get_set.c
 #utc_elm_slider_indicator_show_on_focus.c
\ No newline at end of file
index c7c90877e8bcff11911a472a540fe4a77ab1494f..20dafe485acdb14ae8f3cbc757a209a7e88de13f 100644 (file)
@@ -1,24 +1,12 @@
-utc_elm_slider_add.c
-utc_elm_slider_horizontal_get.c
-utc_elm_slider_horizontal_set.c
-utc_elm_slider_indicator_format_function_set.c
-utc_elm_slider_indicator_format_get.c
-utc_elm_slider_indicator_format_set.c
-utc_elm_slider_indicator_show_get.c
-utc_elm_slider_indicator_show_set.c
-utc_elm_slider_indicator_visible_mode_get.c
-utc_elm_slider_indicator_visible_mode_set.c
-utc_elm_slider_inverted_get.c
-utc_elm_slider_inverted_set.c
-utc_elm_slider_min_max_get.c
-utc_elm_slider_min_max_set.c
-utc_elm_slider_span_size_get.c
-utc_elm_slider_span_size_set.c
-utc_elm_slider_unit_format_get.c
-utc_elm_slider_unit_format_set.c
-utc_elm_slider_value_get.c
-utc_elm_slider_value_set.c
+utc_elm_slider_horizontal_get_set.c
+utc_elm_slider_indicator_format_get_set_function.c
+utc_elm_slider_indicator_show_get_set.c
+utc_elm_slider_indicator_visible_mode_get_set.c
+utc_elm_slider_inverted_get_set.c
+utc_elm_slider_min_max_get_set.c
+utc_elm_slider_span_size_get_set.c
+utc_elm_slider_unit_format_get_set.c
+utc_elm_slider_value_get_set.c
 utc_elm_slider_units_format_function_set.c
-utc_elm_slider_step_set.c
-utc_elm_slider_step_get.c
+utc_elm_slider_step_get_set.c
 #utc_elm_slider_indicator_show_on_focus.c
\ No newline at end of file
diff --git a/TC/elementary/slider/utc_elm_slider_add.c b/TC/elementary/slider/utc_elm_slider_add.c
deleted file mode 100644 (file)
index a350c15..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_add elm_slider_add()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_add
- * @{
- * @objective Positive test case checks if add a slider object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the parent window object
- *
- * @procedure
- * @step 1 add a slider object to window
- *
- * @passcondition Returned value is not NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_add_p)
-{
-   Evas_Object *slider = NULL;
-
-   if (main_win == NULL)
-     {
-        return;
-     }
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_del(slider);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_slider_add
- * @{
- * @objective Negative test case checks if call function with NULL instead of the parent object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the window object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the parent object
- *
- * @passcondition Returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_add_n)
-{
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_slider_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
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_add");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_add_p);
-   tcase_add_test(tcase, utc_elm_slider_add_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_add.log");
-   srunner_set_xml(srunner, "utc_elm_slider_add.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_horizontal_get.c b/TC/elementary/slider/utc_elm_slider_horizontal_get.c
deleted file mode 100644 (file)
index e793484..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_horizontal_get elm_slider_horizontal_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_horizontal_get
- * @{
- * @objective Positive test case checks if get the horizontal of a slider
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the slider object
- *
- * @procedure
- * @step 1 Set the horizontal property of the slider to EINA_TRUE
- * @step 2 Get the horizontal property of the slider
- * @step 3 Set the horizontal property of the slider to EINA_FALSE
- * @step 4 Get the horizontal property of the slider
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_horizontal_get_p)
-{
-   Eina_Bool ret = EINA_FALSE;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_horizontal_set(slider, EINA_TRUE);
-   ret = elm_slider_horizontal_get(slider);
-   if (ret != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_slider_horizontal_set(slider, EINA_FALSE);
-   ret = elm_slider_horizontal_get(slider);
-   if (ret != EINA_FALSE)
-     {
-        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_slider_horizontal_get
- * @{
- * @objective Negative test case checks if call function with NULL
- * instead of the slider object works properly and without segmentation fault
- * @n Input Data: NULL instead of the slider object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition Returned value is equal to EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_horizontal_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_slider_horizontal_get, slider) == TEST_FAIL)
-     {
-        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
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_horizontal_get");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_horizontal_get_p);
-   tcase_add_test(tcase, utc_elm_slider_horizontal_get_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_horizontal_get.log");
-   srunner_set_xml(srunner, "utc_elm_slider_horizontal_get.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_horizontal_get_set.c b/TC/elementary/slider/utc_elm_slider_horizontal_get_set.c
new file mode 100644 (file)
index 0000000..df0168f
--- /dev/null
@@ -0,0 +1,190 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../../utc_negative_unitest.h"
+Evas_Object *main_win = NULL;
+Evas_Object *slider = NULL;
+
+/**
+ * @addtogroup elm_slider
+ * @{
+ * @defgroup elm_slider_indicator_visible_mode_get elm_slider_indicator_visible_mode_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Create new slider and add it to parent window
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   elm_init(0, NULL);
+   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_show(main_win);
+   slider = elm_slider_add(main_win);
+   if (slider == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   if (slider)
+     {
+        evas_object_del(slider);
+        slider = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_slider_horizontal_get
+ * @{
+ * @objective Positive test case checks if get the horizontal of a slider
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the slider object
+ *
+ * @procedure
+ * @step 1 Set the horizontal property of the slider to EINA_TRUE
+ * @step 2 Get the horizontal property of the slider
+ * @step 3 Set the horizontal property of the slider to EINA_FALSE
+ * @step 4 Get the horizontal property of the slider
+ *
+ * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_horizontal_get_set_p)
+{
+   Eina_Bool ret = EINA_FALSE;
+   elm_slider_horizontal_set(slider, EINA_TRUE);
+   ret = elm_slider_horizontal_get(slider);
+   if (ret != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_slider_horizontal_set(slider, EINA_FALSE);
+   ret = elm_slider_horizontal_get(slider);
+   if (ret != EINA_FALSE)
+     {
+        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_slider_add
+ * @{
+ * @objective Negative test case checks if call function with NULL instead of the parent object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the parent object
+ *
+ * @passcondition Returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_add_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_slider_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
+
+/**
+ * @addtogroup elm_slider_horizontal_get
+ * @{
+ * @objective Negative test case checks if call function with NULL
+ * instead of the slider object works properly and without segmentation fault
+ * @n Input Data: NULL instead of the slider object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the slider object
+ *
+ * @passcondition Returned value is equal to EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_horizontal_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_slider_horizontal_get, slider) == TEST_FAIL)
+     {
+        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_slider_horizontal_set
+ * @{
+ * @objective Negative test case checks if call function with NULL
+ * instead of the slider object works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the slider object
+ * @li EINA_TRUE
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the slider object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_horizontal_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_slider_horizontal_set, slider, EINA_FALSE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+Suite *
+test_suite(void)
+{
+   Suite *suite = suite_create("utc_elm_slider_horizontal_get_set");
+
+   TCase *tcase = tcase_create("TCase");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_slider_horizontal_get_set_p);
+   tcase_add_test(tcase, utc_elm_slider_add_n);
+   tcase_add_test(tcase, utc_elm_slider_horizontal_get_n);
+   tcase_add_test(tcase, utc_elm_slider_horizontal_set_n);
+   suite_add_tcase(suite, tcase);
+
+   return suite;
+}
+
+int
+main()
+{
+   int number_failed;
+
+   Suite *suite = test_suite();
+   SRunner *srunner = srunner_create(suite);
+   srunner_set_log(srunner, "utc_elm_slider_horizontal_get_set.log");
+   srunner_set_xml(srunner, "utc_elm_slider_horizontal_get_set.xml");
+   srunner_run_all(srunner, CK_NORMAL);
+   number_failed = srunner_ntests_failed(srunner);
+   srunner_free(srunner);
+
+   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
+}
diff --git a/TC/elementary/slider/utc_elm_slider_horizontal_set.c b/TC/elementary/slider/utc_elm_slider_horizontal_set.c
deleted file mode 100644 (file)
index 4e6e47b..0000000
+++ /dev/null
@@ -1,148 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_horizontal_set elm_slider_horizontal_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_horizontal_set
- * @{
- * @objective Positive test case checks if set the horizontal of a slider
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the slider object
- * @li EINA_TRUE, EINA_FALSE
- *
- * @procedure
- * @step 1 Set the horizontal property of the slider to EINA_TRUE
- * @step 2 Get the horizontal property of the slider
- * @step 3 Set the horizontal property of the slider to EINA_FALSE
- * @step 4 Get the horizontal property of the slider
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_horizontal_set_p)
-{
-   Eina_Bool ret = EINA_FALSE;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_horizontal_set(slider, EINA_TRUE);
-   ret = elm_slider_horizontal_get(slider);
-   if (ret != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_slider_horizontal_set(slider, EINA_FALSE);
-   ret = elm_slider_horizontal_get(slider);
-   if (ret != EINA_FALSE)
-     {
-        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_slider_horizontal_set
- * @{
- * @objective Negative test case checks if call function with NULL
- * instead of the slider object works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the slider object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_horizontal_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_slider_horizontal_set, slider, EINA_FALSE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_horizontal_set");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_horizontal_set_p);
-   tcase_add_test(tcase, utc_elm_slider_horizontal_set_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_horizontal_set.log");
-   srunner_set_xml(srunner, "utc_elm_slider_horizontal_set.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_indicator_format_function_set.c b/TC/elementary/slider/utc_elm_slider_indicator_format_function_set.c
deleted file mode 100644 (file)
index 7d87e85..0000000
+++ /dev/null
@@ -1,175 +0,0 @@
-#include <check.h>
-#define _GNU_SOURCE
-#include <stdio.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-int value = 0;
-Eina_Bool is_called = EINA_FALSE;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_indicator_format_function_set elm_slider_indicator_format_function_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-static char* _indicator_format(double val)
-{
-   char *indicator = NULL;
-   asprintf(&indicator, "%1.2f u\n", val);
-   is_called = EINA_TRUE;
-   value++;
-   return indicator;
-}
-
-static void _indicator_free(char *indicator)
-{
-   value--;
-   free(indicator);
-}
-
-Eina_Bool _timer_cb(void *data)
-{
-   Evas_Object *slider = (Evas_Object *) data;
-   elm_slider_value_set(slider, 0.111);
-   elm_exit();
-   return ECORE_CALLBACK_DONE;
-}
-
-/**
- * @addtogroup elm_slider_indicator_format_function_set
- * @{
- * @objective Positive test case checks if set the format function
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the slider object
- * @li _indicator_format function
- * @li _indicator_free function
- *
- * @procedure
- * @step 1 Set indicator format function
- * @step 2 Show slider and window
- * @step 3 Run elementary loop
- *
- * @passcondition "value" is equal 0, is_called equal EINA_TRUE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_indicator_format_function_set_p)
-{
-
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-
-   elm_slider_indicator_format_function_set(slider, _indicator_format, _indicator_free);
-   ecore_timer_add(2.0, _timer_cb, slider);
-   elm_run();
-   if ((value != 0) || (is_called != 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_slider_indicator_format_function_set
- * @{
- * @objective Negative test case checks if call function with NULL instead of valid arguments
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL, the slider object
- * @li NULL, _indicator_format function
- * @li NULL, _indicator_free function
- *
- * @procedure
- * @step 1 Call test function with NULL instead of valid arguments
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_indicator_format_function_set_n)
-{
-   if (slider == NULL)
-     {
-        return;
-     }
-   UNITEST_FUNC_NEG(elm_slider_indicator_format_function_set, slider, _indicator_format, _indicator_free);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_indicator_format_function_set");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_indicator_format_function_set_p);
-   tcase_add_test(tcase, utc_elm_slider_indicator_format_function_set_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_indicator_format_function_set.log");
-   srunner_set_xml(srunner, "utc_elm_slider_indicator_format_function_set.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_indicator_format_get.c b/TC/elementary/slider/utc_elm_slider_indicator_format_get.c
deleted file mode 100644 (file)
index 7503ed1..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_indicator_format_get elm_slider_indicator_format_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_indicator_format_get
- * @{
- * @objective Positive test case checks if get the format string for the indicator label
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the slider object
- *
- * @procedure
- * @step 1 Set indicator format
- * @step 2 Retrieve indicator format
- *
- * @passcondition Returned string is equal to "%1.0f" and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_indicator_format_get_p)
-{
-   const char *ret_for = NULL;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_indicator_format_set(slider, "%1.0f");
-   ret_for = elm_slider_indicator_format_get(slider);
-   if ((ret_for == NULL) || (strcmp(ret_for, "%1.0f") != 0))
-     {
-        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_slider_indicator_format_get
- * @{
- * @objective Negative test case checks if call function with NULL instead of the slider object
- * @n Input Data: NULL instead of the slider object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition Returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_indicator_format_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(NULL, elm_slider_indicator_format_get, slider) == TEST_FAIL)
-     {
-        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
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_indicator_format_get");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_indicator_format_get_p);
-   tcase_add_test(tcase, utc_elm_slider_indicator_format_get_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_indicator_format_get.log");
-   srunner_set_xml(srunner, "utc_elm_slider_indicator_format_get.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_indicator_format_get_set_function.c b/TC/elementary/slider/utc_elm_slider_indicator_format_get_set_function.c
new file mode 100644 (file)
index 0000000..0333d0b
--- /dev/null
@@ -0,0 +1,242 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../../utc_negative_unitest.h"
+Evas_Object *main_win = NULL;
+Evas_Object *slider = NULL;
+int value = 0;
+Eina_Bool is_called = EINA_FALSE;
+
+static char* _indicator_format(double val)
+{
+   char *indicator = NULL;
+   asprintf(&indicator, "%1.2f u\n", val);
+   is_called = EINA_TRUE;
+   value++;
+   return indicator;
+}
+
+static void _indicator_free(char *indicator)
+{
+   value--;
+   free(indicator);
+}
+
+Eina_Bool _timer_cb(void *data)
+{
+   Evas_Object *slider = (Evas_Object *) data;
+   elm_slider_value_set(slider, 0.111);
+   elm_exit();
+   return ECORE_CALLBACK_DONE;
+}
+
+/**
+ * @addtogroup elm_slider
+ * @{
+ * @defgroup elm_slider_indicator_visible_mode_get elm_slider_indicator_visible_mode_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Create new slider and add it to parent window
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   elm_init(0, NULL);
+   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_show(main_win);
+   slider = elm_slider_add(main_win);
+   if (slider == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   if (slider)
+     {
+        evas_object_del(slider);
+        slider = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_slider_indicator_format_function_set
+ * @{
+ * @objective Positive test case checks if set the format function
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li the slider object
+ * @li _indicator_format function
+ * @li _indicator_free function
+ *
+ * @procedure
+ * @step 1 Set indicator format function
+ * @step 2 Show slider and window
+ * @step 3 Run elementary loop
+ *
+ * @passcondition "value" is equal 0, is_called equal EINA_TRUE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_indicator_format_function_set_p)
+{
+   elm_slider_indicator_format_function_set(slider, _indicator_format, _indicator_free);
+   ecore_timer_add(1.0, _timer_cb, slider);
+   elm_run();
+   if ((value != 0) || (is_called != 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_slider_indicator_format_get
+ * @{
+ * @objective Positive test case checks if get the format string for the indicator label
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li the slider object
+ *
+ * @procedure
+ * @step 1 Set indicator format
+ * @step 2 Retrieve indicator format
+ *
+ * @passcondition Returned string is equal to "%1.0f" and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_indicator_format_get_set_p)
+{
+   const char *ret_for = NULL;
+
+   if (slider == NULL)
+     {
+        return;
+     }
+   elm_slider_indicator_format_set(slider, "%1.0f");
+   ret_for = elm_slider_indicator_format_get(slider);
+   if ((ret_for == NULL) || (strcmp(ret_for, "%1.0f") != 0))
+     {
+        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_slider_indicator_format_function_set
+ * @{
+ * @objective Negative test case checks if call function with NULL instead of valid arguments
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL, the slider object
+ * @li NULL, _indicator_format function
+ * @li NULL, _indicator_free function
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of valid arguments
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_indicator_format_function_set_n)
+{
+   UNITEST_FUNC_NEG(elm_slider_indicator_format_function_set, slider, _indicator_format, _indicator_free);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_slider_indicator_format_get
+ * @{
+ * @objective Negative test case checks if call function with NULL instead of the slider object
+ * @n Input Data: NULL instead of the slider object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the slider object
+ *
+ * @passcondition Returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_indicator_format_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(NULL, elm_slider_indicator_format_get, slider) == TEST_FAIL)
+     {
+        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_slider_indicator_format_set
+ * @{
+ * @objective Negative test case checks if call function with NULL instead of the valid parameters
+ * @n Input Data:
+ * @li NULL, the slider object
+ * @li NULL, "%1.0f" string
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the valid parameters
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_indicator_format_set_n)
+{
+   UNITEST_FUNC_NEG(elm_slider_indicator_format_set, slider, "%1.0f");
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+Suite *
+test_suite(void)
+{
+   Suite *suite = suite_create("utc_elm_slider_indicator_format_get_set_function");
+
+   TCase *tcase = tcase_create("TCase");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_slider_indicator_format_function_set_p);
+   tcase_add_test(tcase, utc_elm_slider_indicator_format_get_set_p);
+   tcase_add_test(tcase, utc_elm_slider_indicator_format_function_set_n);
+   tcase_add_test(tcase, utc_elm_slider_indicator_format_get_n);
+   tcase_add_test(tcase, utc_elm_slider_indicator_format_set_n);
+   suite_add_tcase(suite, tcase);
+
+   return suite;
+}
+
+int
+main()
+{
+   int number_failed;
+
+   Suite *suite = test_suite();
+   SRunner *srunner = srunner_create(suite);
+   srunner_set_log(srunner, "utc_elm_slider_indicator_format_get_set_function.log");
+   srunner_set_xml(srunner, "utc_elm_slider_indicator_format_get_set_function.xml");
+   srunner_run_all(srunner, CK_NORMAL);
+   number_failed = srunner_ntests_failed(srunner);
+   srunner_free(srunner);
+
+   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
+}
diff --git a/TC/elementary/slider/utc_elm_slider_indicator_format_set.c b/TC/elementary/slider/utc_elm_slider_indicator_format_set.c
deleted file mode 100644 (file)
index 82b7f44..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_indicator_format_set elm_slider_indicator_format_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_indicator_format_set
- * @{
- * @objective Positive test case checks if set the format string for the indicator label
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the slider object
- * @li "%1.0f" string
- *
- * @procedure
- * @step 1 Set indicator format
- * @step 2 Retrieve indicator format
- *
- * @passcondition Returned string is equal to "%1.0f" and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_indicator_format_set_p)
-{
-   const char *ret_for = NULL;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_indicator_format_set(slider, "%1.0f");
-   ret_for = elm_slider_indicator_format_get(slider);
-   if ((ret_for == NULL) || (strcmp(ret_for, "%1.0f") != 0))
-     {
-        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_slider_indicator_format_set
- * @{
- * @objective Negative test case checks if call function with NULL instead of the valid parameters
- * @n Input Data:
- * @li NULL, the slider object
- * @li NULL, "%1.0f" string
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the valid parameters
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_indicator_format_set_n)
-{
-   if (slider == NULL)
-     {
-        return;
-     }
-   UNITEST_FUNC_NEG(elm_slider_indicator_format_set, slider, "%1.0f");
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_indicator_format_set");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_indicator_format_set_p);
-   tcase_add_test(tcase, utc_elm_slider_indicator_format_set_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_indicator_format_set.log");
-   srunner_set_xml(srunner, "utc_elm_slider_indicator_format_set.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_indicator_show_get.c b/TC/elementary/slider/utc_elm_slider_indicator_show_get.c
deleted file mode 100644 (file)
index e469ce8..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_indicator_show_get elm_slider_indicator_show_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_indicator_show_get
- * @{
- * @objective Positive test case checks if get the show value
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the slider object
- *
- * @procedure
- * @step 1 Set the show value of the slider to EINA_TRUE
- * @step 2 Get the show value of the slider
- * @step 3 Set the show value of the slider to EINA_FALSE
- * @step 4 Get the show value of the slider
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_indicator_show_get_p)
-{
-   Eina_Bool ret = EINA_FALSE;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_indicator_show_set(slider, EINA_TRUE);
-   ret = elm_slider_indicator_show_get(slider);
-   if (ret != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_slider_indicator_show_set(slider, EINA_FALSE);
-   ret = elm_slider_indicator_show_get(slider);
-   if (ret != EINA_FALSE)
-     {
-        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_slider_indicator_show_get
- * @{
- * @objective Negative test case checks if call function with NULL
- * instead of the slider object works properly and without segmentation fault
- * @n Input Data: NULL instead of the slider object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition Returned value is equal to EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_indicator_show_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_slider_indicator_show_get, slider) == TEST_FAIL)
-     {
-        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
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_indicator_show_get");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_indicator_show_get_p);
-   tcase_add_test(tcase, utc_elm_slider_indicator_show_get_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_indicator_show_get.log");
-   srunner_set_xml(srunner, "utc_elm_slider_indicator_show_get.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_indicator_show_get_set.c b/TC/elementary/slider/utc_elm_slider_indicator_show_get_set.c
new file mode 100644 (file)
index 0000000..ed0b45e
--- /dev/null
@@ -0,0 +1,166 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../../utc_negative_unitest.h"
+Evas_Object *main_win = NULL;
+Evas_Object *slider = NULL;
+
+/**
+ * @addtogroup elm_slider
+ * @{
+ * @defgroup elm_slider_indicator_visible_mode_get elm_slider_indicator_visible_mode_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Create new slider and add it to parent window
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   elm_init(0, NULL);
+   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_show(main_win);
+   slider = elm_slider_add(main_win);
+   if (slider == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   if (slider)
+     {
+        evas_object_del(slider);
+        slider = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_slider_indicator_show_get
+ * @{
+ * @objective Positive test case checks if get the show value
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the slider object
+ *
+ * @procedure
+ * @step 1 Set the show value of the slider to EINA_TRUE
+ * @step 2 Get the show value of the slider
+ * @step 3 Set the show value of the slider to EINA_FALSE
+ * @step 4 Get the show value of the slider
+ *
+ * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_indicator_show_get_set_p)
+{
+   Eina_Bool ret = EINA_FALSE;
+   elm_slider_indicator_show_set(slider, EINA_TRUE);
+   ret = elm_slider_indicator_show_get(slider);
+   if (ret != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_slider_indicator_show_set(slider, EINA_FALSE);
+   ret = elm_slider_indicator_show_get(slider);
+   if (ret != EINA_FALSE)
+     {
+        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_slider_indicator_show_get
+ * @{
+ * @objective Negative test case checks if call function with NULL
+ * instead of the slider object works properly and without segmentation fault
+ * @n Input Data: NULL instead of the slider object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the slider object
+ *
+ * @passcondition Returned value is equal to EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_indicator_show_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_slider_indicator_show_get, slider) == TEST_FAIL)
+     {
+        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_slider_indicator_show_set
+ * @{
+ * @objective Negative test case checks if call function with NULL
+ * instead of the slider object works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the slider object
+ * @li EINA_TRUE
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the slider object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_indicator_show_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_slider_indicator_show_set, slider, EINA_TRUE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+Suite *
+test_suite(void)
+{
+   Suite *suite = suite_create("utc_elm_slider_indicator_show_get_set");
+
+   TCase *tcase = tcase_create("TCase");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_slider_indicator_show_get_set_p);
+   tcase_add_test(tcase, utc_elm_slider_indicator_show_get_n);
+   tcase_add_test(tcase, utc_elm_slider_indicator_show_set_n);
+   suite_add_tcase(suite, tcase);
+
+   return suite;
+}
+
+int
+main()
+{
+   int number_failed;
+
+   Suite *suite = test_suite();
+   SRunner *srunner = srunner_create(suite);
+   srunner_set_log(srunner, "utc_elm_slider_indicator_show_get_set.log");
+   srunner_set_xml(srunner, "utc_elm_slider_indicator_show_get_set.xml");
+   srunner_run_all(srunner, CK_NORMAL);
+   number_failed = srunner_ntests_failed(srunner);
+   srunner_free(srunner);
+
+   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
+}
diff --git a/TC/elementary/slider/utc_elm_slider_indicator_show_set.c b/TC/elementary/slider/utc_elm_slider_indicator_show_set.c
deleted file mode 100644 (file)
index 66cae2c..0000000
+++ /dev/null
@@ -1,148 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_indicator_show_set elm_slider_indicator_show_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_indicator_show_set
- * @{
- * @objective Positive test case checks if set the show value
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the slider object
- * @li EINA_TRUE, EINA_FALSE
- *
- * @procedure
- * @step 1 Set the show value of the slider to EINA_TRUE
- * @step 2 Get the show value of the slider
- * @step 3 Set the show value of the slider to EINA_FALSE
- * @step 4 Get the show value of the slider
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_indicator_show_set_p)
-{
-   Eina_Bool ret = EINA_FALSE;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_indicator_show_set(slider, EINA_TRUE);
-   ret = elm_slider_indicator_show_get(slider);
-   if (ret != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_slider_indicator_show_set(slider, EINA_FALSE);
-   ret = elm_slider_indicator_show_get(slider);
-   if (ret != EINA_FALSE)
-     {
-        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_slider_indicator_show_set
- * @{
- * @objective Negative test case checks if call function with NULL
- * instead of the slider object works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the slider object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_indicator_show_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_slider_indicator_show_set, slider, EINA_TRUE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_indicator_show_set");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_indicator_show_set_p);
-   tcase_add_test(tcase, utc_elm_slider_indicator_show_set_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_indicator_show_set.log");
-   srunner_set_xml(srunner, "utc_elm_slider_indicator_show_set.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_indicator_visible_mode_get.c b/TC/elementary/slider/utc_elm_slider_indicator_visible_mode_get.c
deleted file mode 100644 (file)
index 4231440..0000000
+++ /dev/null
@@ -1,165 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_indicator_visible_mode_get elm_slider_indicator_visible_mode_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_indicator_visible_mode_get
- * @{
- * @objective Positive test case checks if get the visible mode
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the slider object
- *
- * @procedure
- * @step 1 Set the visible mode of the slider to ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT
- * @step 2 Get the visible mode of the slider
- * @step 3 Set the visible mode of the slider to ELM_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS
- * @step 4 Get the visible mode of the slider
- * @step 5 Set the visible mode of the slider to ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS
- * @step 6 Get the visible mode of the slider
- * @step 7 Set the visible mode of the slider to ELM_SLIDER_INDICATOR_VISIBLE_MODE_NONE
- * @step 8 Get the visible mode of the slider
- *
- * @passcondition Returned value is equal to value that was set and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_indicator_visible_mode_get_p)
-{
-   Elm_Slider_Indicator_Visible_Mode ret = ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_indicator_visible_mode_set(slider, ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT);
-   ret = elm_slider_indicator_visible_mode_get(slider);
-   if (ret != ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_slider_indicator_visible_mode_set(slider, ELM_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS);
-   ret = elm_slider_indicator_visible_mode_get(slider);
-   if (ret != ELM_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_slider_indicator_visible_mode_set(slider, ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS);
-   ret = elm_slider_indicator_visible_mode_get(slider);
-   if (ret != ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_slider_indicator_visible_mode_set(slider, ELM_SLIDER_INDICATOR_VISIBLE_MODE_NONE);
-   ret = elm_slider_indicator_visible_mode_get(slider);
-   if (ret != ELM_SLIDER_INDICATOR_VISIBLE_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
-
-/**
- * @addtogroup elm_slider_indicator_visible_mode_get
- * @{
- * @objective Negative test case checks if call function with NULL
- * instead of the slider object works properly and without segmentation fault
- * @n Input Data: NULL instead of the slider object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition Returned value is equal to ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_indicator_visible_mode_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT, elm_slider_indicator_visible_mode_get, slider) == TEST_FAIL)
-     {
-        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
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_indicator_visible_mode_get");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_indicator_visible_mode_get_p);
-   tcase_add_test(tcase, utc_elm_slider_indicator_visible_mode_get_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_indicator_visible_mode_get.log");
-   srunner_set_xml(srunner, "utc_elm_slider_indicator_visible_mode_get.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_indicator_visible_mode_get_set.c b/TC/elementary/slider/utc_elm_slider_indicator_visible_mode_get_set.c
new file mode 100644 (file)
index 0000000..638b669
--- /dev/null
@@ -0,0 +1,209 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../../utc_negative_unitest.h"
+
+Evas_Object *main_win = NULL;
+Evas_Object *slider = NULL;
+
+/**
+ * @addtogroup elm_slider
+ * @{
+ * @defgroup elm_slider_indicator_visible_mode_get elm_slider_indicator_visible_mode_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Create new slider and add it to parent window
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   elm_init(0, NULL);
+   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_show(main_win);
+   slider = elm_slider_add(main_win);
+   if (slider == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
+     }
+   evas_object_show(slider);
+}
+
+static void
+teardown(void)
+{
+   if (main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   if (slider)
+     {
+        evas_object_del(slider);
+        slider = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_slider_indicator_visible_mode_get
+ * @{
+ * @objective Positive test case checks if get the visible mode
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the slider object
+ *
+ * @procedure
+ * @step 1 Set the visible mode of the slider to ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT
+ * @step 2 Get the visible mode of the slider
+ * @step 3 Set the visible mode of the slider to ELM_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS
+ * @step 4 Get the visible mode of the slider
+ * @step 5 Set the visible mode of the slider to ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS
+ * @step 6 Get the visible mode of the slider
+ * @step 7 Set the visible mode of the slider to ELM_SLIDER_INDICATOR_VISIBLE_MODE_NONE
+ * @step 8 Get the visible mode of the slider
+ *
+ * @passcondition Returned value is equal to value that was set and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_indicator_visible_mode_get_set_p)
+{
+   Elm_Slider_Indicator_Visible_Mode ret = ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT;
+   elm_slider_indicator_visible_mode_set(slider, ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT);
+   ret = elm_slider_indicator_visible_mode_get(slider);
+   if (ret != ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_slider_indicator_visible_mode_set(slider, ELM_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS);
+   ret = elm_slider_indicator_visible_mode_get(slider);
+   if (ret != ELM_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_slider_indicator_visible_mode_set(slider, ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS);
+   ret = elm_slider_indicator_visible_mode_get(slider);
+   if (ret != ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_slider_indicator_visible_mode_set(slider, ELM_SLIDER_INDICATOR_VISIBLE_MODE_NONE);
+   ret = elm_slider_indicator_visible_mode_get(slider);
+   if (ret != ELM_SLIDER_INDICATOR_VISIBLE_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_slider_add
+ * @{
+ * @objective Negative test case checks if call function with NULL instead of the parent object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the parent object
+ *
+ * @passcondition Returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_add_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_slider_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
+
+/**
+ * @addtogroup elm_slider_indicator_visible_mode_get
+ * @{
+ * @objective Negative test case checks if call function with NULL
+ * instead of the slider object works properly and without segmentation fault
+ * @n Input Data: NULL instead of the slider object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the slider object
+ *
+ * @passcondition Returned value is equal to ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_indicator_visible_mode_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT, elm_slider_indicator_visible_mode_get, slider) == TEST_FAIL)
+     {
+        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_slider_indicator_visible_mode_set
+ * @{
+ * @objective Negative test case checks if call function with NULL
+ * instead of the slider object works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the slider object
+ * @li ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the slider object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_indicator_visible_mode_set_n)
+{
+
+   elm_slider_indicator_visible_mode_set(NULL, ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+Suite *
+test_suite(void)
+{
+   Suite *suite = suite_create("utc_elm_slider_indicator_visible_mode_get_set");
+
+   TCase *tcase = tcase_create("TCase");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_slider_indicator_visible_mode_get_set_p);
+   tcase_add_test(tcase, utc_elm_slider_add_n);
+   tcase_add_test(tcase, utc_elm_slider_indicator_visible_mode_get_n);
+   tcase_add_test(tcase, utc_elm_slider_indicator_visible_mode_set_n);
+   suite_add_tcase(suite, tcase);
+
+   return suite;
+}
+
+int
+main()
+{
+   int number_failed;
+
+   Suite *suite = test_suite();
+   SRunner *srunner = srunner_create(suite);
+   srunner_set_log(srunner, "utc_elm_slider_indicator_visible_mode_get_set.log");
+   srunner_set_xml(srunner, "utc_elm_slider_indicator_visible_mode_get_set.xml");
+   srunner_run_all(srunner, CK_NORMAL);
+   number_failed = srunner_ntests_failed(srunner);
+   srunner_free(srunner);
+
+   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
+}
diff --git a/TC/elementary/slider/utc_elm_slider_indicator_visible_mode_set.c b/TC/elementary/slider/utc_elm_slider_indicator_visible_mode_set.c
deleted file mode 100644 (file)
index c01a090..0000000
+++ /dev/null
@@ -1,167 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_indicator_visible_mode_set elm_slider_indicator_visible_mode_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_indicator_visible_mode_set
- * @{
- * @objective Positive test case checks if set the visible mode
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the slider object
- * @li Elm_Slider_Indicator_Visible_Mode
- *
- * @procedure
- * @step 1 Set the visible mode of the slider to ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT
- * @step 2 Get the visible mode of the slider
- * @step 3 Set the visible mode of the slider to ELM_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS
- * @step 4 Get the visible mode of the slider
- * @step 5 Set the visible mode of the slider to ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS
- * @step 6 Get the visible mode of the slider
- * @step 7 Set the visible mode of the slider to ELM_SLIDER_INDICATOR_VISIBLE_MODE_NONE
- * @step 8 Get the visible mode of the slider
- *
- * @passcondition Returned value is equal to value that was set and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_indicator_visible_mode_set_p)
-{
-   Elm_Slider_Indicator_Visible_Mode ret = ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_indicator_visible_mode_set(slider, ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT);
-   ret = elm_slider_indicator_visible_mode_get(slider);
-   if (ret != ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_slider_indicator_visible_mode_set(slider, ELM_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS);
-   ret = elm_slider_indicator_visible_mode_get(slider);
-   if (ret != ELM_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_slider_indicator_visible_mode_set(slider, ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS);
-   ret = elm_slider_indicator_visible_mode_get(slider);
-   if (ret != ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_slider_indicator_visible_mode_set(slider, ELM_SLIDER_INDICATOR_VISIBLE_MODE_NONE);
-   ret = elm_slider_indicator_visible_mode_get(slider);
-   if (ret != ELM_SLIDER_INDICATOR_VISIBLE_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
-
-/**
- * @addtogroup elm_slider_indicator_visible_mode_set
- * @{
- * @objective Negative test case checks if call function with NULL
- * instead of the slider object works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the slider object
- * @li ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_indicator_visible_mode_set_n)
-{
-
-   elm_slider_indicator_visible_mode_set(NULL, ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_indicator_visible_mode_set");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_indicator_visible_mode_set_p);
-   tcase_add_test(tcase, utc_elm_slider_indicator_visible_mode_set_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_indicator_visible_mode_set.log");
-   srunner_set_xml(srunner, "utc_elm_slider_indicator_visible_mode_set.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_inverted_get.c b/TC/elementary/slider/utc_elm_slider_inverted_get.c
deleted file mode 100644 (file)
index d8f5b0c..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_inverted_get elm_slider_inverted_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_inverted_get
- * @{
- * @objective Positive test case checks if get the inverted value to the slider
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the slider object
- *
- * @procedure
- * @step 1 Set the inverted property of the slider to EINA_TRUE
- * @step 2 Get the inverted property of the slider
- * @step 3 Set the inverted property of the slider to EINA_FALSE
- * @step 4 Get the inverted property of the slider
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_inverted_get_p)
-{
-   Eina_Bool ret = EINA_FALSE;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_inverted_set(slider, EINA_TRUE);
-   ret = elm_slider_inverted_get(slider);
-   if (ret != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_slider_inverted_set(slider, EINA_FALSE);
-   ret = elm_slider_inverted_get(slider);
-   if (ret != EINA_FALSE)
-     {
-        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_slider_inverted_get
- * @{
- * @objective Negative test case checks if call function with NULL
- * instead of the slider object works properly and without segmentation fault
- * @n Input Data: NULL instead of the slider object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition Returned value is equal to EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_inverted_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_slider_inverted_get, slider) == TEST_FAIL)
-     {
-        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
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_inverted_get");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_inverted_get_p);
-   tcase_add_test(tcase, utc_elm_slider_inverted_get_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_inverted_get.log");
-   srunner_set_xml(srunner, "utc_elm_slider_inverted_get.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_inverted_get_set.c b/TC/elementary/slider/utc_elm_slider_inverted_get_set.c
new file mode 100644 (file)
index 0000000..8ad7189
--- /dev/null
@@ -0,0 +1,167 @@
+#include <check.h>\r
+#include <Elementary.h>\r
+#include "../../utc_negative_unitest.h"\r
+Evas_Object *main_win = NULL;\r
+Evas_Object *slider = NULL;\r
+\r
+/**\r
+ * @addtogroup elm_slider\r
+ * @{\r
+ * @defgroup elm_slider_inverted_get elm_slider_inverted_get()\r
+ *\r
+ * @precondition\r
+ * @step 1 Initialize Elementary\r
+ * @step 2 Create and show main window\r
+ * @step 3 Create new slider and add it to parent window\r
+ */\r
+static void\r
+setup(void)\r
+{\r
+   printf(" ============ Startup ============ \n");\r
+   elm_init(0, NULL);\r
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);\r
+   if (main_win == NULL)\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);\r
+     }\r
+   evas_object_show(main_win);\r
+   slider = elm_slider_add(main_win);\r
+   if (slider == NULL)\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);\r
+     }\r
+}\r
+\r
+static void\r
+teardown(void)\r
+{\r
+   if (main_win)\r
+     {\r
+        evas_object_del(main_win);\r
+        main_win = NULL;\r
+     }\r
+   if (slider)\r
+     {\r
+        evas_object_del(slider);\r
+        slider = NULL;\r
+     }\r
+   elm_shutdown();\r
+   printf(" ============ Cleanup ============ \n");\r
+}\r
+\r
+/**\r
+ * @addtogroup elm_slider_inverted_get\r
+ * @{\r
+ * @objective Positive test case checks if get the inverted value to the slider\r
+ * works properly and doesn't cause segmentation fault\r
+ * @n Input Data: the slider object\r
+ *\r
+ * @procedure\r
+ * @step 1 Set the inverted property of the slider to EINA_TRUE\r
+ * @step 2 Get the inverted property of the slider\r
+ * @step 3 Set the inverted property of the slider to EINA_FALSE\r
+ * @step 4 Get the inverted property of the slider\r
+ *\r
+ * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault\r
+ * @}\r
+ */\r
+START_TEST(utc_elm_slider_inverted_get_set_p)\r
+{\r
+   Eina_Bool ret = EINA_FALSE;\r
+   elm_slider_inverted_set(slider, EINA_TRUE);\r
+   ret = elm_slider_inverted_get(slider);\r
+   if (ret != EINA_TRUE)\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);\r
+     }\r
+   elm_slider_inverted_set(slider, EINA_FALSE);\r
+   ret = elm_slider_inverted_get(slider);\r
+   if (ret != EINA_FALSE)\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);\r
+     }\r
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);\r
+}\r
+END_TEST\r
+\r
+/**\r
+ * @addtogroup elm_slider_inverted_get\r
+ * @{\r
+ * @objective Negative test case checks if call function with NULL\r
+ * instead of the slider object works properly and without segmentation fault\r
+ * @n Input Data: NULL instead of the slider object\r
+ *\r
+ * @procedure\r
+ * @step 1 Call test function with NULL instead of the slider object\r
+ *\r
+ * @passcondition Returned value is equal to EINA_FALSE and there is no segmentation fault\r
+ * @}\r
+ */\r
+START_TEST(utc_elm_slider_inverted_get_n)\r
+{\r
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_slider_inverted_get, slider) == TEST_FAIL)\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);\r
+     }\r
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);\r
+}\r
+END_TEST\r
+\r
+/**\r
+ * @addtogroup elm_slider_inverted_set\r
+ * @{\r
+ * @objective Negative test case checks if call function with NULL\r
+ * instead of the slider object works properly and without segmentation fault\r
+ * @n Input Data:\r
+ * @li NULL instead of the slider object\r
+ * @li EINA_TRUE\r
+ *\r
+ * @procedure\r
+ * @step 1 Call test function with NULL instead of the slider object\r
+ *\r
+ * @passcondition There is no segmentation fault\r
+ * @}\r
+ */\r
+START_TEST(utc_elm_slider_inverted_set_n)\r
+{\r
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);\r
+   UNITEST_FUNC_NEG_CA(elm_slider_inverted_set, slider, EINA_TRUE);\r
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);\r
+}\r
+END_TEST\r
+\r
+/**\r
+ *@}\r
+ */\r
+Suite *\r
+test_suite(void)\r
+{\r
+   Suite *suite = suite_create("utc_elm_slider_inverted_get_set");\r
+\r
+   TCase *tcase = tcase_create("TCase");\r
+   tcase_set_timeout(tcase, 30);\r
+   tcase_add_checked_fixture(tcase, setup, teardown);\r
+   tcase_add_test(tcase, utc_elm_slider_inverted_get_set_p);\r
+   tcase_add_test(tcase, utc_elm_slider_inverted_get_n);\r
+   tcase_add_test(tcase, utc_elm_slider_inverted_set_n);\r
+   suite_add_tcase(suite, tcase);\r
+\r
+   return suite;\r
+}\r
+\r
+int\r
+main()\r
+{\r
+   int number_failed;\r
+\r
+   Suite *suite = test_suite();\r
+   SRunner *srunner = srunner_create(suite);\r
+   srunner_set_log(srunner, "utc_elm_slider_inverted_get_set.log");\r
+   srunner_set_xml(srunner, "utc_elm_slider_inverted_get_set.xml");\r
+   srunner_run_all(srunner, CK_NORMAL);\r
+   number_failed = srunner_ntests_failed(srunner);\r
+   srunner_free(srunner);\r
+\r
+   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;\r
+}\r
+\r
diff --git a/TC/elementary/slider/utc_elm_slider_inverted_set.c b/TC/elementary/slider/utc_elm_slider_inverted_set.c
deleted file mode 100644 (file)
index 522f3a7..0000000
+++ /dev/null
@@ -1,148 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_inverted_set elm_slider_inverted_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_inverted_set
- * @{
- * @objective Positive test case checks if set the inverted value to the slider
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the slider object
- * @li EINA_TRUE, EINA_FALSE
- *
- * @procedure
- * @step 1 Set the inverted property of the slider to EINA_TRUE
- * @step 2 Get the inverted property of the slider
- * @step 3 Set the inverted property of the slider to EINA_FALSE
- * @step 4 Get the inverted property of the slider
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_inverted_set_p)
-{
-   Eina_Bool ret = EINA_FALSE;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_inverted_set(slider, EINA_TRUE);
-   ret = elm_slider_inverted_get(slider);
-   if (ret != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_slider_inverted_set(slider, EINA_FALSE);
-   ret = elm_slider_inverted_get(slider);
-   if (ret != EINA_FALSE)
-     {
-        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_slider_inverted_set
- * @{
- * @objective Negative test case checks if call function with NULL
- * instead of the slider object works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the slider object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_inverted_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_slider_inverted_set, slider, EINA_TRUE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_inverted_set");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_inverted_set_p);
-   tcase_add_test(tcase, utc_elm_slider_inverted_set_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_inverted_set.log");
-   srunner_set_xml(srunner, "utc_elm_slider_inverted_set.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_min_max_get.c b/TC/elementary/slider/utc_elm_slider_min_max_get.c
deleted file mode 100644 (file)
index a8d42bb..0000000
+++ /dev/null
@@ -1,183 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include <math.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_min_max_get elm_slider_min_max_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_min_max_get
- * @{
- * @objective Positive test case checks if get the minimum and maximum values of the slider
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the slider object
- * @li pointer to min variable
- * @li pointer to max variable
- *
- * @procedure
- * @step 1 Set min, max values
- * @step 2 Get min, max values
- *
- * @passcondition Returned min, max values are equal to 1.0, 9.0 in DBL_EPSILON range
- * and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_min_max_get_p)
-{
-   double min = 0.0;
-   double max = 0.0;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_min_max_set(slider, 1.0, 9.0);
-   elm_slider_min_max_get(slider, &min, &max);
-   if ((fabs(min - 1.0) > DBL_EPSILON) || (fabs(max - 9.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_slider_min_max_get
- * @{
- * @objective: Negative test case 1: Get min and max values from NULL object
- * @procedure
- * @step 1 try to get min, max values from a NULL slider object
- *
- * @passcondition  : retrieved values are not changed
- * @}
- */
-START_TEST(utc_elm_slider_min_max_get_n)
-{
-   double min = 1.0, max = 2.0;
-
-   elm_slider_min_max_get(NULL, &min, &max);
-
-   if ((fabs(min - 1.0) > DBL_EPSILON) || (fabs(max - 2.0) > DBL_EPSILON))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. %f, %f", __FILE__,__LINE__, min, max);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_slider_min_max_get
- * @{
- * @objective Negative test case 2 checks if call test function with NULL instead of valid parameters
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL, the slider object
- * @li NULL, pointer to min variable
- * @li NULL, pointer to max variable
- *
- * @procedure
- * @step 1 Call test function with NULL instead of valid parameters
- *
- * @passcondition Returned min, max values are equal to 1.0, 9.0 in DBL_EPSILON range
- * and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_min_max_get_n2)
-{
-   double min = 0.0;
-   double max = 0.0;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_min_max_set(slider, 1.0, 9.0);
-   UNITEST_FUNC_NEG(elm_slider_min_max_get, slider, &min, &max);
-   if ((fabs(min - 1.0) > DBL_EPSILON) || (fabs(max - 9.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
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_min_max_get");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_min_max_get_p);
-   tcase_add_test(tcase, utc_elm_slider_min_max_get_n);
-   tcase_add_test(tcase, utc_elm_slider_min_max_get_n2);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_min_max_get.log");
-   srunner_set_xml(srunner, "utc_elm_slider_min_max_get.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_min_max_get_set.c b/TC/elementary/slider/utc_elm_slider_min_max_get_set.c
new file mode 100644 (file)
index 0000000..d3bb136
--- /dev/null
@@ -0,0 +1,231 @@
+#include <check.h>\r
+#include <Elementary.h>\r
+#include <math.h>\r
+#include "../../utc_negative_unitest.h"\r
+Evas_Object *main_win = NULL;\r
+Evas_Object *slider = NULL;\r
+\r
+/**\r
+ * @addtogroup elm_slider\r
+ * @{\r
+ * @defgroup elm_slider_inverted_get elm_slider_inverted_get()\r
+ *\r
+ * @precondition\r
+ * @step 1 Initialize Elementary\r
+ * @step 2 Create and show main window\r
+ * @step 3 Create new slider and add it to parent window\r
+ */\r
+static void\r
+setup(void)\r
+{\r
+   printf(" ============ Startup ============ \n");\r
+   elm_init(0, NULL);\r
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);\r
+   if (main_win == NULL)\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);\r
+     }\r
+   evas_object_show(main_win);\r
+   slider = elm_slider_add(main_win);\r
+   if (slider == NULL)\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);\r
+     }\r
+}\r
+\r
+static void\r
+teardown(void)\r
+{\r
+   if (main_win)\r
+     {\r
+        evas_object_del(main_win);\r
+        main_win = NULL;\r
+     }\r
+   if (slider)\r
+     {\r
+        evas_object_del(slider);\r
+        slider = NULL;\r
+     }\r
+   elm_shutdown();\r
+   printf(" ============ Cleanup ============ \n");\r
+}\r
+\r
+/**\r
+ * @addtogroup elm_slider_min_max_get\r
+ * @{\r
+ * @objective Positive test case checks if get the minimum and maximum values of the slider\r
+ * works properly and doesn't cause segmentation fault\r
+ * @n Input Data:\r
+ * @li the slider object\r
+ * @li pointer to min variable\r
+ * @li pointer to max variable\r
+ *\r
+ * @procedure\r
+ * @step 1 Set min, max values\r
+ * @step 2 Get min, max values\r
+ *\r
+ * @passcondition Returned min, max values are equal to 1.0, 9.0 in DBL_EPSILON range\r
+ * and there is no segmentation fault\r
+ * @}\r
+ */\r
+START_TEST(utc_elm_slider_min_max_get_set_p)\r
+{\r
+   double min = 0.0;\r
+   double max = 0.0;\r
+   elm_slider_min_max_set(slider, 1.0, 9.0);\r
+   elm_slider_min_max_get(slider, &min, &max);\r
+   if ((fabs(min - 1.0) > DBL_EPSILON) || (fabs(max - 9.0) > DBL_EPSILON))\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);\r
+        return;\r
+     }\r
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);\r
+}\r
+END_TEST\r
+
+/**
+ * @addtogroup elm_slider_min_max_get
+ * @{
+ * @objective: Negative test case 1: Get min and max values from NULL object
+ * @procedure
+ * @step 1 try to get min, max values from a NULL slider object
+ *
+ * @passcondition  : retrieved values are not changed
+ * @}
+ */
+START_TEST(utc_elm_slider_min_max_get_n)
+{
+   double min = 1.0, max = 2.0;
+
+   elm_slider_min_max_get(NULL, &min, &max);
+
+   if ((fabs(min - 1.0) > DBL_EPSILON) || (fabs(max - 2.0) > DBL_EPSILON))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. %f, %f", __FILE__,__LINE__, min, max);
+        return;
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_slider_min_max_get
+ * @{
+ * @objective Negative test case 2 checks if call test function with NULL instead of valid parameters
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL, the slider object
+ * @li NULL, pointer to min variable
+ * @li NULL, pointer to max variable
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of valid parameters
+ *
+ * @passcondition Returned min, max values are equal to 1.0, 9.0 in DBL_EPSILON range
+ * and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_min_max_get_n2)
+{
+   double min = 0.0;
+   double max = 0.0;\r
+   elm_slider_min_max_set(slider, 1.0, 9.0);
+   UNITEST_FUNC_NEG(elm_slider_min_max_get, slider, &min, &max);
+   if ((fabs(min - 1.0) > DBL_EPSILON) || (fabs(max - 9.0) > DBL_EPSILON))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);\r
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST\r
+\r
+/**\r
+ * @addtogroup elm_slider_min_max_set\r
+ * @{\r
+ * @objective Negative test case 01 checks if call function with NULL instead of the slider object\r
+ * doesn't cause segmentation fault\r
+ * @n Input Data:\r
+ * @li NULL instead of the slider object\r
+ * @li 1.0\r
+ * @li 9.0\r
+ *\r
+ * @procedure\r
+ * @step 1 Call test function with NULL instead of the slider object\r
+ *\r
+ * @passcondition There is no segmentation fault\r
+ * @}\r
+ */\r
+START_TEST(utc_elm_slider_min_max_set_n)\r
+{\r
+   elm_slider_min_max_set(NULL, 1.0, 9.0);\r
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);\r
+}\r
+END_TEST\r
+\r
+/**\r
+ * @addtogroup elm_slider_min_max_set\r
+ * @{\r
+ * @objective Negative test case 02 checks if call function with negative values\r
+ * doesn't cause segmentation fault\r
+ * @n Input Data:\r
+ * @li the slider object\r
+ * @li -1.0\r
+ * @li -9.0\r
+ *\r
+ * @procedure\r
+ * @step 1 Call test function with with negative values\r
+ *\r
+ * @passcondition Returned min, max values are equal to -1.0, -9.0\r
+ * @}\r
+ */\r
+START_TEST(utc_elm_slider_min_max_set_n2)\r
+{\r
+   double min = 0.0;\r
+   double max = 0.0;\r
+   elm_slider_min_max_set(slider, -1.0, -9.0);\r
+   elm_slider_min_max_get(slider, &min, &max);\r
+   if ((fabs(min + 1.0) > DBL_EPSILON) || (fabs(max + 9.0) > DBL_EPSILON))\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);\r
+     }\r
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);\r
+}\r
+END_TEST\r
+\r
+/**\r
+ *@}\r
+ */\r
+Suite *\r
+test_suite(void)\r
+{\r
+   Suite *suite = suite_create("utc_elm_slider_min_max_get_set");\r
+\r
+   TCase *tcase = tcase_create("TCase");\r
+   tcase_set_timeout(tcase, 30);\r
+   tcase_add_checked_fixture(tcase, setup, teardown);\r
+   tcase_add_test(tcase, utc_elm_slider_min_max_get_set_p);\r
+   tcase_add_test(tcase, utc_elm_slider_min_max_get_n);
+   tcase_add_test(tcase, utc_elm_slider_min_max_get_n2);\r
+   tcase_add_test(tcase, utc_elm_slider_min_max_set_n);\r
+   tcase_add_test(tcase, utc_elm_slider_min_max_set_n2);\r
+   suite_add_tcase(suite, tcase);\r
+\r
+   return suite;\r
+}\r
+\r
+int\r
+main()\r
+{\r
+   int number_failed;\r
+\r
+   Suite *suite = test_suite();\r
+   SRunner *srunner = srunner_create(suite);\r
+   srunner_set_log(srunner, "utc_elm_slider_min_max_get_set.log");\r
+   srunner_set_xml(srunner, "utc_elm_slider_min_max_get_set.xml");\r
+   srunner_run_all(srunner, CK_NORMAL);\r
+   number_failed = srunner_ntests_failed(srunner);\r
+   srunner_free(srunner);\r
+\r
+   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;\r
+}\r
+\r
diff --git a/TC/elementary/slider/utc_elm_slider_min_max_set.c b/TC/elementary/slider/utc_elm_slider_min_max_set.c
deleted file mode 100644 (file)
index 1221ac3..0000000
+++ /dev/null
@@ -1,180 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include <math.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_min_max_set elm_slider_min_max_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_min_max_set
- * @{
- * @objective Positive test case checks if set min and max values
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the slider object
- * @li 1.0
- * @li 9.0
- *
- * @procedure
- * @step 1 Set min, max values
- * @step 2 Get min, max values
- *
- * @passcondition Returned min, max values are equal to 1.0, 9.0 in DBL_EPSILON range
- * and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_min_max_set_p)
-{
-   double min = 0.0;
-   double max = 0.0;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_min_max_set(slider, 1.0, 9.0);
-   elm_slider_min_max_get(slider, &min, &max);
-   if ((fabs(min - 1.0) > DBL_EPSILON) || (fabs(max - 9.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_slider_min_max_set
- * @{
- * @objective Negative test case 01 checks if call function with NULL instead of the slider object
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the slider object
- * @li 1.0
- * @li 9.0
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_min_max_set_n)
-{
-   elm_slider_min_max_set(NULL, 1.0, 9.0);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_slider_min_max_set
- * @{
- * @objective Negative test case 02 checks if call function with negative values
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li the slider object
- * @li -1.0
- * @li -9.0
- *
- * @procedure
- * @step 1 Call test function with with negative values
- *
- * @passcondition Returned min, max values are equal to -1.0, -9.0
- * @}
- */
-START_TEST(utc_elm_slider_min_max_set_n2)
-{
-   double min = 0.0;
-   double max = 0.0;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_min_max_set(slider, -1.0, -9.0);
-   elm_slider_min_max_get(slider, &min, &max);
-   if ((fabs(min + 1.0) > DBL_EPSILON) || (fabs(max + 9.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
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_min_max_set");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_min_max_set_p);
-   tcase_add_test(tcase, utc_elm_slider_min_max_set_n);
-   tcase_add_test(tcase, utc_elm_slider_min_max_set_n2);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_min_max_set.log");
-   srunner_set_xml(srunner, "utc_elm_slider_min_max_set.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_span_size_get.c b/TC/elementary/slider/utc_elm_slider_span_size_get.c
deleted file mode 100644 (file)
index 2bb832e..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_span_size_get elm_slider_span_size_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_span_size_get
- * @{
- * @objective Positive test case checks if get the span size from the slider object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the slider object
- *
- * @procedure
- * @step 1 Set span size
- * @step 2 Get span size
- *
- * @passcondition Returned value is equal to 120 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_span_size_get_p)
-{
-   Evas_Coord size = 0;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_span_size_set(slider, 120);
-   size = elm_slider_span_size_get(slider);
-   if (size != 120)
-     {
-        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_slider_span_size_get
- * @{
- * @objective Negative test case checks if call test function with NULL instead of the slider object
- * doesn't cause segmentation fault
- * @n Input Data: NULL instead of the slider object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition Returned value is equal to 0 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_span_size_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(0, elm_slider_span_size_get, slider) == TEST_FAIL)
-     {
-        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
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_span_size_get");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_span_size_get_p);
-   tcase_add_test(tcase, utc_elm_slider_span_size_get_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_span_size_get.log");
-   srunner_set_xml(srunner, "utc_elm_slider_span_size_get.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_span_size_get_set.c b/TC/elementary/slider/utc_elm_slider_span_size_get_set.c
new file mode 100644 (file)
index 0000000..b90ba8f
--- /dev/null
@@ -0,0 +1,189 @@
+#include <check.h>\r
+#include <Elementary.h>\r
+#include "../../utc_negative_unitest.h"\r
+\r
+Evas_Object *main_win = NULL;\r
+Evas_Object *slider = NULL;\r
+\r
+/**\r
+ * @addtogroup elm_slider\r
+ * @{\r
+ * @defgroup elm_slider_inverted_get elm_slider_inverted_get()\r
+ *\r
+ * @precondition\r
+ * @step 1 Initialize Elementary\r
+ * @step 2 Create and show main window\r
+ * @step 3 Create new slider and add it to parent window\r
+ */\r
+static void\r
+setup(void)\r
+{\r
+   printf(" ============ Startup ============ \n");\r
+   elm_init(0, NULL);\r
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);\r
+   if (main_win == NULL)\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);\r
+     }\r
+   evas_object_show(main_win);\r
+   slider = elm_slider_add(main_win);\r
+   if (slider == NULL)\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);\r
+     }\r
+}\r
+\r
+static void\r
+teardown(void)\r
+{\r
+   if (main_win)\r
+     {\r
+        evas_object_del(main_win);\r
+        main_win = NULL;\r
+     }\r
+   if (slider)\r
+     {\r
+        evas_object_del(slider);\r
+        slider = NULL;\r
+     }\r
+   elm_shutdown();\r
+   printf(" ============ Cleanup ============ \n");\r
+}\r
+
+/**
+ * @addtogroup elm_slider_span_size_get\r
+ * @{
+ * @objective Positive test case checks if get the span size from the slider object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the slider object
+ *
+ * @procedure
+ * @step 1 Set span size
+ * @step 2 Get span size
+ *
+ * @passcondition Returned value is equal to 120 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_span_size_get_set_p)\r
+{
+   Evas_Coord size = 0;\r
+   elm_slider_span_size_set(slider, 120);
+   size = elm_slider_span_size_get(slider);
+   if (size != 120)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);\r
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST\r
+
+/**
+ * @addtogroup elm_slider_span_size_get
+ * @{
+ * @objective Negative test case checks if call test function with NULL instead of the slider object
+ * doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the slider object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the slider object
+ *
+ * @passcondition Returned value is equal to 0 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_span_size_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(0, elm_slider_span_size_get, slider) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);\r
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST\r
+
+/**
+ * @addtogroup elm_slider_span_size_set
+ * @{
+ * @objective Negative test case 01 checks if call test function with NULL instead of the slider object
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the slider object
+ * @li 120
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the slider object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_span_size_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_slider_span_size_set, slider, 120);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_slider_span_size_set
+ * @{
+ * @objective Negative test case 02 checks if call test function with negative size
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li the slider object
+ * @li -120
+ *
+ * @procedure
+ * @step 1 Call test function with negative size
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_span_size_set_n2)
+{
+   Evas_Coord size = 0;\r
+   elm_slider_span_size_set(slider, -120);
+   size = elm_slider_span_size_get(slider);
+   if ((fabs(size + 120) > DBL_EPSILON))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);\r
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST\r
+\r
+/**\r
+ *@}\r
+ */\r
+Suite *\r
+test_suite(void)\r
+{\r
+   Suite *suite = suite_create("utc_elm_slider_span_size_get_set");\r
+\r
+   TCase *tcase = tcase_create("TCase");\r
+   tcase_set_timeout(tcase, 30);\r
+   tcase_add_checked_fixture(tcase, setup, teardown);\r
+   tcase_add_test(tcase, utc_elm_slider_span_size_get_set_p);\r
+   tcase_add_test(tcase, utc_elm_slider_span_size_get_n);\r
+   tcase_add_test(tcase, utc_elm_slider_span_size_set_n);
+   tcase_add_test(tcase, utc_elm_slider_span_size_set_n2);\r
+   suite_add_tcase(suite, tcase);\r
+\r
+   return suite;\r
+}\r
+\r
+int\r
+main()\r
+{\r
+   int number_failed;\r
+\r
+   Suite *suite = test_suite();\r
+   SRunner *srunner = srunner_create(suite);\r
+   srunner_set_log(srunner, "utc_elm_slider_span_size_get_set.log");\r
+   srunner_set_xml(srunner, "utc_elm_slider_span_size_get_set.xml");\r
+   srunner_run_all(srunner, CK_NORMAL);\r
+   number_failed = srunner_ntests_failed(srunner);\r
+   srunner_free(srunner);\r
+\r
+   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;\r
+}\r
+\r
diff --git a/TC/elementary/slider/utc_elm_slider_span_size_set.c b/TC/elementary/slider/utc_elm_slider_span_size_set.c
deleted file mode 100644 (file)
index a853850..0000000
+++ /dev/null
@@ -1,174 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_span_size_set elm_slider_span_size_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_span_size_set
- * @{
- * @objective Positive test case checks if set the object span size
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the slider object
- * @li 120
- *
- * @procedure
- * @step 1 Set span size
- * @step 2 Get span size
- *
- * @passcondition Returned value is equal to 120 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_span_size_set_p)
-{
-   Evas_Coord size = 0;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_span_size_set(slider, 120);
-   size = elm_slider_span_size_get(slider);
-   if (size != 120)
-     {
-        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_slider_span_size_set
- * @{
- * @objective Negative test case 01 checks if call test function with NULL instead of the slider object
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the slider object
- * @li 120
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_span_size_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_slider_span_size_set, slider, 120);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_slider_span_size_set
- * @{
- * @objective Negative test case 02 checks if call test function with negative size
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li the slider object
- * @li -120
- *
- * @procedure
- * @step 1 Call test function with negative size
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_span_size_set_n2)
-{
-   Evas_Coord size = 0;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_span_size_set(slider, -120);
-   size = elm_slider_span_size_get(slider);
-   if ((fabs(size + 120) > 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
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_span_size_set");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_span_size_set_p);
-   tcase_add_test(tcase, utc_elm_slider_span_size_set_n);
-   tcase_add_test(tcase, utc_elm_slider_span_size_set_n2);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_span_size_set.log");
-   srunner_set_xml(srunner, "utc_elm_slider_span_size_set.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_step_get.c b/TC/elementary/slider/utc_elm_slider_step_get.c
deleted file mode 100644 (file)
index 55bff6e..0000000
+++ /dev/null
@@ -1,130 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include <math.h>
-
-Evas_Object *main_win;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_step_get elm_slider_step_get()
- *
- * @precondition
- * @step 1 Elm initialized with elm_init()
- * @step 2 A window object created.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_step_get
- * @{
- * @objective: Positive test case 01: Get the step by which slider indicator moves
- * @n Input data:
- * @li valid Evas_Object (slider)
- *
- * @procedure
- * @step 1 Add a slider object to window
- * @step 2 Get the step by which slider indicator moves and compare (by default step value is equal to 0.05)
- *
- * @passcondition: Retrieved value should be equal to 0.05
- * @}
- */
-START_TEST(utc_UIFW_elm_slider_step_get_p_01)
-{
-   Evas_Object *slider;
-   double step = 0.0;
-
-   slider = elm_slider_add(main_win);
-
-   step = elm_slider_step_get(slider);
-
-   evas_object_del(slider);
-
-   if (fabs(step - 0.05) > 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_slider_step_get
- * @{
- * @objective: Negative test case 01: Call function with NULL argument
- * @n Input data:
- * @li invalid Evas_Object (NULL)
- *
- * @procedure
- * @step 1 Get the step by which slider indicator moves from a NULL slider object
- *
- * @passcondition: Return value should be equal to 0.0
- * @}
- */
-START_TEST(utc_UIFW_elm_slider_step_get_n_01)
-{
-   double step = 0.5;
-
-   step = elm_slider_step_get(NULL);
-
-   if (fabs(step - 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
-
-/**
- * @}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_step_get");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_UIFW_elm_slider_step_get_p_01);
-   tcase_add_test(tcase, utc_UIFW_elm_slider_step_get_n_01);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_step_get.log");
-   srunner_set_xml(srunner, "utc_elm_slider_step_get.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_step_get_set.c b/TC/elementary/slider/utc_elm_slider_step_get_set.c
new file mode 100644 (file)
index 0000000..f8dd003
--- /dev/null
@@ -0,0 +1,169 @@
+#include <check.h>\r
+#include <Elementary.h>\r
+#include <math.h>\r
+#include "../../utc_negative_unitest.h"\r
+\r
+Evas_Object *main_win = NULL;\r
+Evas_Object *slider = NULL;\r
+/**\r
+ * @addtogroup elm_slider\r
+ * @{\r
+ * @defgroup elm_slider_inverted_get elm_slider_inverted_get()\r
+ *\r
+ * @precondition\r
+ * @step 1 Initialize Elementary\r
+ * @step 2 Create and show main window\r
+ * @step 3 Create new slider and add it to parent window\r
+ */\r
+static void\r
+setup(void)\r
+{\r
+   printf(" ============ Startup ============ \n");\r
+   elm_init(0, NULL);\r
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);\r
+   if (main_win == NULL)\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);\r
+     }\r
+   evas_object_show(main_win);\r
+   slider = elm_slider_add(main_win);\r
+   if (slider == NULL)\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);\r
+     }\r
+}\r
+\r
+static void\r
+teardown(void)\r
+{\r
+   if (main_win)\r
+     {\r
+        evas_object_del(main_win);\r
+        main_win = NULL;\r
+     }\r
+   if (slider)\r
+     {\r
+        evas_object_del(slider);\r
+        slider = NULL;\r
+     }\r
+   elm_shutdown();\r
+   printf(" ============ Cleanup ============ \n");\r
+}\r
+
+/**
+ * @addtogroup elm_slider_step_get\r
+ * @{
+ * @objective: Positive test case 01: Get the step by which slider indicator moves
+ * @n Input data:
+ * @li valid Evas_Object (slider)
+ *
+ * @procedure
+ * @step 1 Add a slider object to window
+ * @step 2 Get the step by which slider indicator moves and compare (by default step value is equal to 0.05)
+ *
+ * @passcondition: Retrieved value should be equal to 0.05
+ * @}
+ */
+START_TEST(utc_elm_slider_step_get_set_p)\r
+{
+   Evas_Object *slider;
+   double step = 0.0;
+
+   slider = elm_slider_add(main_win);
+
+   step = elm_slider_step_get(slider);
+
+   evas_object_del(slider);
+
+   if (fabs(step - 0.05) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);\r
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST\r
+
+/**
+ * @addtogroup elm_slider_step_get
+ * @{
+ * @objective: Negative test case 01: Call function with NULL argument
+ * @n Input data:
+ * @li invalid Evas_Object (NULL)
+ *
+ * @procedure
+ * @step 1 Get the step by which slider indicator moves from a NULL slider object
+ *
+ * @passcondition: Return value should be equal to 0.0
+ * @}
+ */
+START_TEST(utc_elm_slider_step_get_n)\r
+{
+   double step = 0.5;
+
+   step = elm_slider_step_get(NULL);
+
+   if (fabs(step - 0.0) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);\r
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST\r
+
+/**
+ * @addtogroup elm_slider_step_set
+ * @{
+ * @objective: Negative test case 01: Call function with NULL argument
+ * @n Input data:
+ * @li invalid Evas_Object (NULL)
+ * @li step by which slider indicator moves (0.5)
+ *
+ * @procedure
+ * @step 1 Set the step by which slider indicator moves from a NULL slider object
+ *
+ * @passcondition: Return type of this API is void, so only check for segfault can be done
+ * @}
+ */
+START_TEST(utc_elm_slider_step_set_n)\r
+{\r
+   elm_slider_step_set(NULL, 0.5);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST\r
+\r
+/**\r
+ *@}\r
+ */\r
+Suite *\r
+test_suite(void)\r
+{\r
+   Suite *suite = suite_create("utc_elm_slider_step_get_set");\r
+\r
+   TCase *tcase = tcase_create("TCase");\r
+   tcase_set_timeout(tcase, 30);\r
+   tcase_add_checked_fixture(tcase, setup, teardown);\r
+   tcase_add_test(tcase, utc_elm_slider_step_get_set_p);\r
+   tcase_add_test(tcase, utc_elm_slider_step_get_n);\r
+   tcase_add_test(tcase, utc_elm_slider_step_set_n);\r
+   suite_add_tcase(suite, tcase);\r
+\r
+   return suite;\r
+}\r
+\r
+int\r
+main()\r
+{\r
+   int number_failed;\r
+\r
+   Suite *suite = test_suite();\r
+   SRunner *srunner = srunner_create(suite);\r
+   srunner_set_log(srunner, "utc_elm_slider_step_get_set.log");\r
+   srunner_set_xml(srunner, "utc_elm_slider_step_get_set.xml");\r
+   srunner_run_all(srunner, CK_NORMAL);\r
+   number_failed = srunner_ntests_failed(srunner);\r
+   srunner_free(srunner);\r
+\r
+   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;\r
+}\r
+\r
diff --git a/TC/elementary/slider/utc_elm_slider_step_set.c b/TC/elementary/slider/utc_elm_slider_step_set.c
deleted file mode 100644 (file)
index f6d1eb1..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include <math.h>
-
-Evas_Object *main_win;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_step_set elm_slider_step_set()
- *
- * @precondition
- * @step 1 Elm initialized with elm_init()
- * @step 2 A window object created.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_step_set
- * @{
- * @objective: Positive test case 01: Set the step by which slider indicator moves
- * @n Input data:
- * @li valid Evas_Object (slider)
- * @li step by which slider indicator moves (0.5)
- *
- * @procedure
- * @step 1 Add a slider object to window
- * @step 2 Set the step by which slider indicator moves to 0.5 and compare with 0.5
- *
- * @passcondition: Retrieved value should be equal to 0.5
- * @}
- */
-START_TEST(utc_UIFW_elm_slider_step_set_p_01)
-{
-   Evas_Object *slider;
-   double step = 0.0;
-
-   slider = elm_slider_add(main_win);
-
-   elm_slider_step_set(slider, 0.5);
-
-   step = elm_slider_step_get(slider);
-
-   evas_object_del(slider);
-
-   if (fabs(step - 0.5) > 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_slider_step_set
- * @{
- * @objective: Negative test case 01: Call function with NULL argument
- * @n Input data:
- * @li invalid Evas_Object (NULL)
- * @li step by which slider indicator moves (0.5)
- *
- * @procedure
- * @step 1 Set the step by which slider indicator moves from a NULL slider object
- *
- * @passcondition: Return type of this API is void, so only check for segfault can be done
- * @}
- */
-START_TEST(utc_UIFW_elm_slider_step_set_n_01)
-{
-
-   elm_slider_step_set(NULL, 0.5);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_step_set");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_UIFW_elm_slider_step_set_p_01);
-   tcase_add_test(tcase, utc_UIFW_elm_slider_step_set_n_01);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_step_set.log");
-   srunner_set_xml(srunner, "utc_elm_slider_step_set.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_unit_format_get.c b/TC/elementary/slider/utc_elm_slider_unit_format_get.c
deleted file mode 100644 (file)
index f34ea2e..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_unit_format_get elm_slider_unit_format_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_unit_format_get
- * @{
- * @objective Positive test case checks if get the unit format value for the slider object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the slider object
- *
- * @procedure
- * @step 1 Set unit format value
- * @step 2 Get unit format value
- *
- * @passcondition Returned value is equal to "%1.2fmeters" and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_unit_format_get_p)
-{
-   const char *unit = NULL;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_unit_format_set(slider, "%1.2f meters");
-   unit = elm_slider_unit_format_get(slider);
-   if ((!unit) || (strcmp(unit, "%1.2f meters") != 0))
-     {
-        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_slider_unit_format_get
- * @{
- * @objective Negative test case checks if call test function with NULL instead of the slider object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the slider object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition Returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_unit_format_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(NULL, elm_slider_unit_format_get, slider) == TEST_FAIL)
-     {
-        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
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_unit_format_get");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_unit_format_get_p);
-   tcase_add_test(tcase, utc_elm_slider_unit_format_get_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_unit_format_get.log");
-   srunner_set_xml(srunner, "utc_elm_slider_unit_format_get.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_unit_format_get_set.c b/TC/elementary/slider/utc_elm_slider_unit_format_get_set.c
new file mode 100644 (file)
index 0000000..be8aa29
--- /dev/null
@@ -0,0 +1,159 @@
+#include <check.h>\r
+#include <Elementary.h>\r
+#include "../../utc_negative_unitest.h"\r
+\r
+Evas_Object *main_win = NULL;\r
+Evas_Object *slider = NULL;\r
+\r
+/**\r
+ * @addtogroup elm_slider\r
+ * @{\r
+ * @defgroup elm_slider_inverted_get elm_slider_inverted_get()\r
+ *\r
+ * @precondition\r
+ * @step 1 Initialize Elementary\r
+ * @step 2 Create and show main window\r
+ * @step 3 Create new slider and add it to parent window\r
+ */\r
+static void\r
+setup(void)\r
+{\r
+   printf(" ============ Startup ============ \n");\r
+   elm_init(0, NULL);\r
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);\r
+   if (main_win == NULL)\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);\r
+     }\r
+   evas_object_show(main_win);\r
+   slider = elm_slider_add(main_win);\r
+   if (slider == NULL)\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);\r
+     }\r
+}\r
+\r
+static void\r
+teardown(void)\r
+{\r
+   if (main_win)\r
+     {\r
+        evas_object_del(main_win);\r
+        main_win = NULL;\r
+     }\r
+   if (slider)\r
+     {\r
+        evas_object_del(slider);\r
+        slider = NULL;\r
+     }\r
+   elm_shutdown();\r
+   printf(" ============ Cleanup ============ \n");\r
+}\r
+
+/**
+ * @addtogroup elm_slider_unit_format_get\r
+ * @{
+ * @objective Positive test case checks if get the unit format value for the slider object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the slider object
+ *
+ * @procedure
+ * @step 1 Set unit format value
+ * @step 2 Get unit format value
+ *
+ * @passcondition Returned value is equal to "%1.2fmeters" and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_unit_format_get_set_p)\r
+{
+   const char *unit = NULL;\r
+   elm_slider_unit_format_set(slider, "%1.2f meters");
+   unit = elm_slider_unit_format_get(slider);
+   if ((!unit) || (strcmp(unit, "%1.2f meters") != 0))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);\r
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST\r
+
+/**
+ * @addtogroup elm_slider_unit_format_get
+ * @{
+ * @objective Negative test case checks if call test function with NULL instead of the slider object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the slider object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the slider object
+ *
+ * @passcondition Returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_unit_format_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(NULL, elm_slider_unit_format_get, slider) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);\r
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST\r
+
+/**
+ * @addtogroup elm_slider_unit_format_set
+ * @{
+ * @objective Negative test case checks if call test function with NULL instead of valid parameters
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL, the slider object
+ * @li NULL, "%1.2fmeters" string
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of valid parameters
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_unit_format_set_n)
+{\r
+   UNITEST_FUNC_NEG(elm_slider_unit_format_set, slider, "%1.2f meters");
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST\r
+\r
+/**\r
+ *@}\r
+ */\r
+Suite *\r
+test_suite(void)\r
+{\r
+   Suite *suite = suite_create("utc_elm_slider_unit_format_get_set");\r
+\r
+   TCase *tcase = tcase_create("TCase");\r
+   tcase_set_timeout(tcase, 30);\r
+   tcase_add_checked_fixture(tcase, setup, teardown);\r
+   tcase_add_test(tcase, utc_elm_slider_unit_format_get_set_p);\r
+   tcase_add_test(tcase, utc_elm_slider_unit_format_get_n);\r
+   tcase_add_test(tcase, utc_elm_slider_unit_format_set_n);\r
+   suite_add_tcase(suite, tcase);\r
+\r
+   return suite;\r
+}\r
+\r
+int\r
+main()\r
+{\r
+   int number_failed;\r
+\r
+   Suite *suite = test_suite();\r
+   SRunner *srunner = srunner_create(suite);\r
+   srunner_set_log(srunner, "utc_elm_slider_unit_format_get_set.log");\r
+   srunner_set_xml(srunner, "utc_elm_slider_unit_format_get_set.xml");\r
+   srunner_run_all(srunner, CK_NORMAL);\r
+   number_failed = srunner_ntests_failed(srunner);\r
+   srunner_free(srunner);\r
+\r
+   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;\r
+}\r
+\r
diff --git a/TC/elementary/slider/utc_elm_slider_unit_format_set.c b/TC/elementary/slider/utc_elm_slider_unit_format_set.c
deleted file mode 100644 (file)
index aed987f..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_unit_format_set elm_slider_unit_format_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_unit_format_set
- * @{
- * @objective Positive test case checks if set the unit format value for the slider object
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the slider object
- * @li "%1.2fmeters" string
- *
- * @procedure
- * @step 1 Set unit format value
- * @step 2 Get unit format value
- *
- * @passcondition Returned value is equal to "%1.2fmeters" and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_unit_format_set_p)
-{
-   const char *unit = NULL;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_unit_format_set(slider, "%1.2f meters");
-   unit = elm_slider_unit_format_get(slider);
-   if ((!unit) || (strcmp(unit, "%1.2f meters") != 0))
-     {
-        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_slider_unit_format_set
- * @{
- * @objective Negative test case checks if call test function with NULL instead of valid parameters
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL, the slider object
- * @li NULL, "%1.2fmeters" string
- *
- * @procedure
- * @step 1 Call test function with NULL instead of valid parameters
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_unit_format_set_n)
-{
-   if (slider == NULL)
-     {
-        return;
-     }
-   UNITEST_FUNC_NEG(elm_slider_unit_format_set, slider, "%1.2f meters");
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_unit_format_set");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_unit_format_set_p);
-   tcase_add_test(tcase, utc_elm_slider_unit_format_set_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_unit_format_set.log");
-   srunner_set_xml(srunner, "utc_elm_slider_unit_format_set.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_value_get.c b/TC/elementary/slider/utc_elm_slider_value_get.c
deleted file mode 100644 (file)
index e34a9b0..0000000
+++ /dev/null
@@ -1,144 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include <math.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_value_get elm_slider_value_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_value_get
- * @{
- * @objective Positive test case checks if get the slider value
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the slider object
- *
- * @procedure
- * @step 1 Set min and max slider value
- * @step 2 Set slider value
- * @step 3 Get slider value
- *
- * @passcondition Returned value is equal to 3.0 in DBL_EPSILON range and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_value_get_p)
-{
-   double value = 0.0;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_min_max_set(slider, 1.0, 6.0);
-   elm_slider_value_set(slider, 3.0);
-   value = elm_slider_value_get(slider);
-   if (fabs(value - 3.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_slider_value_get
- * @{
- * @objective Negative test case checks if call test function with NULL instead of the slider object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the slider object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_value_get_n)
-{
-   double value = 1.0;
-
-   value = elm_slider_value_get(NULL);
-   if (fabs(value - 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
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_value_get");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_value_get_p);
-   tcase_add_test(tcase, utc_elm_slider_value_get_n);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_value_get.log");
-   srunner_set_xml(srunner, "utc_elm_slider_value_get.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/slider/utc_elm_slider_value_get_set.c b/TC/elementary/slider/utc_elm_slider_value_get_set.c
new file mode 100644 (file)
index 0000000..f365779
--- /dev/null
@@ -0,0 +1,200 @@
+#include <check.h>\r
+#include <Elementary.h>\r
+#include <math.h>\r
+#include "../../utc_negative_unitest.h"\r
+\r
+Evas_Object *main_win = NULL;\r
+Evas_Object *slider = NULL;\r
+/**\r
+ * @addtogroup elm_slider\r
+ * @{\r
+ * @defgroup elm_slider_inverted_get elm_slider_inverted_get()\r
+ *\r
+ * @precondition\r
+ * @step 1 Initialize Elementary\r
+ * @step 2 Create and show main window\r
+ * @step 3 Create new slider and add it to parent window\r
+ */\r
+static void\r
+setup(void)\r
+{\r
+   printf(" ============ Startup ============ \n");\r
+   elm_init(0, NULL);\r
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);\r
+   if (main_win == NULL)\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);\r
+     }\r
+   evas_object_show(main_win);\r
+   slider = elm_slider_add(main_win);\r
+   if (slider == NULL)\r
+     {\r
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);\r
+     }\r
+}\r
+\r
+static void\r
+teardown(void)\r
+{\r
+   if (main_win)\r
+     {\r
+        evas_object_del(main_win);\r
+        main_win = NULL;\r
+     }\r
+   if (slider)\r
+     {\r
+        evas_object_del(slider);\r
+        slider = NULL;\r
+     }\r
+   elm_shutdown();\r
+   printf(" ============ Cleanup ============ \n");\r
+}\r
+
+/**
+ * @addtogroup elm_slider_value_get\r
+ * @{
+ * @objective Positive test case checks if get the slider value
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the slider object
+ *
+ * @procedure
+ * @step 1 Set min and max slider value
+ * @step 2 Set slider value
+ * @step 3 Get slider value
+ *
+ * @passcondition Returned value is equal to 3.0 in DBL_EPSILON range and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_value_get_set_p)\r
+{
+   double value = 0.0;\r
+   elm_slider_min_max_set(slider, 1.0, 6.0);
+   elm_slider_value_set(slider, 3.0);
+   value = elm_slider_value_get(slider);
+   if (fabs(value - 3.0) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);\r
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST\r
+
+/**
+ * @addtogroup elm_slider_value_get
+ * @{
+ * @objective Negative test case checks if call test function with NULL instead of the slider object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the slider object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the slider object
+ *
+ * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_value_get_n)
+{
+   double value = 1.0;
+
+   value = elm_slider_value_get(NULL);
+   if (fabs(value - 0.0) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);\r
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST\r
+
+/**
+ * @addtogroup elm_slider_value_set
+ * @{
+ * @objective Negative test case 01 checks if call test function with NULL instead of the slider object
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the slider object
+ * @li 3.0
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the slider object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_value_set_n)
+{
+   elm_slider_value_set(NULL, 3.0);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_slider_value_set
+ * @{
+ * @objective Negative test case checks if call test function with out of bound values
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li the slider object
+ * @li -1.0, 8.0
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the slider object
+ *
+ * @passcondition Returned value is equal to 1.0/6.0 in DBL_EPSILON range and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_slider_value_set_n2)
+{
+   double value = 0.0;
+   elm_slider_min_max_set(slider, 1.0, 6.0);
+   elm_slider_value_set(slider, -1.0);
+   value = elm_slider_value_get(slider);
+   if (fabs(value - 1.0) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);\r
+     }
+   elm_slider_value_set(slider, 8.0);
+   value = elm_slider_value_get(slider);
+   if (fabs(value - 6.0) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);\r
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST\r
+\r
+/**\r
+ *@}\r
+ */\r
+Suite *\r
+test_suite(void)\r
+{\r
+   Suite *suite = suite_create("utc_elm_slider_test_2");\r
+\r
+   TCase *tcase = tcase_create("TCase");\r
+   tcase_set_timeout(tcase, 30);\r
+   tcase_add_checked_fixture(tcase, setup, teardown);\r
+   tcase_add_test(tcase, utc_elm_slider_value_get_set_p);\r
+   tcase_add_test(tcase, utc_elm_slider_value_get_n);\r
+   tcase_add_test(tcase, utc_elm_slider_value_set_n);
+   tcase_add_test(tcase, utc_elm_slider_value_set_n2);\r
+   suite_add_tcase(suite, tcase);\r
+\r
+   return suite;\r
+}\r
+\r
+int\r
+main()\r
+{\r
+   int number_failed;\r
+\r
+   Suite *suite = test_suite();\r
+   SRunner *srunner = srunner_create(suite);\r
+   srunner_set_log(srunner, "utc_elm_slider_test_2.log");\r
+   srunner_set_xml(srunner, "utc_elm_slider_test_2.xml");\r
+   srunner_run_all(srunner, CK_NORMAL);\r
+   number_failed = srunner_ntests_failed(srunner);\r
+   srunner_free(srunner);\r
+\r
+   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;\r
+}\r
+\r
diff --git a/TC/elementary/slider/utc_elm_slider_value_set.c b/TC/elementary/slider/utc_elm_slider_value_set.c
deleted file mode 100644 (file)
index c1569ec..0000000
+++ /dev/null
@@ -1,178 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-Evas_Object *slider = NULL;
-
-/**
- * @addtogroup elm_slider
- * @{
- * @defgroup elm_slider_value_set elm_slider_value_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create new slider and add it to parent window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   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_show(main_win);
-   slider = elm_slider_add(main_win);
-   if (slider == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a slider..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_slider_value_set
- * @{
- * @objective Positive test case checks if set the slider value
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the slider object
- * @li 3.0
- *
- * @procedure
- * @step 1 Set min and max slider value
- * @step 2 Set slider value
- * @step 3 Get slider value
- *
- * @passcondition Returned value is equal to 3.0 in DBL_EPSILON range and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_value_set_p)
-{
-   double value = 0.0;
-
-   if (slider == NULL)
-     {
-        return;
-     }
-   elm_slider_min_max_set(slider, 1.0, 6.0);
-   elm_slider_value_set(slider, 3.0);
-   value = elm_slider_value_get(slider);
-   if (fabs(value - 3.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_slider_value_set
- * @{
- * @objective Negative test case 01 checks if call test function with NULL instead of the slider object
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the slider object
- * @li 3.0
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_value_set_n)
-{
-   elm_slider_value_set(NULL, 3.0);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_slider_value_set
- * @{
- * @objective Negative test case checks if call test function with out of bound values
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li the slider object
- * @li -1.0, 8.0
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the slider object
- *
- * @passcondition Returned value is equal to 1.0/6.0 in DBL_EPSILON range and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_slider_value_set_n2)
-{
-   double value = 0.0;
-   elm_slider_min_max_set(slider, 1.0, 6.0);
-   elm_slider_value_set(slider, -1.0);
-   value = elm_slider_value_get(slider);
-   if (fabs(value - 1.0) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_slider_value_set(slider, 8.0);
-   value = elm_slider_value_get(slider);
-   if (fabs(value - 6.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
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_slider_value_set");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_slider_value_set_p);
-   tcase_add_test(tcase, utc_elm_slider_value_set_n);
-   tcase_add_test(tcase, utc_elm_slider_value_set_n2);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_slider_value_set.log");
-   srunner_set_xml(srunner, "utc_elm_slider_value_set.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}