utc_elm_index_xxxx: Merged TCs(*_get and *_set) to reduce duplicate test operations 78/190778/6
authorAbhishek Shrivastava <a.shrivastav@samsung.com>
Fri, 5 Oct 2018 08:16:14 +0000 (13:46 +0530)
committerHermet Park <chuneon.park@samsung.com>
Fri, 26 Oct 2018 08:32:45 +0000 (08:32 +0000)
Change-Id: Icb259c76a974e816270ed288e75ed2da3f813ba2

26 files changed:
TC/elementary/index/tslist
TC/elementary/index/tslist_mobile
TC/elementary/index/tslist_tv
TC/elementary/index/tslist_wear
TC/elementary/index/utc_elm_index_add.c [deleted file]
TC/elementary/index/utc_elm_index_autohide_disabled_get.c [deleted file]
TC/elementary/index/utc_elm_index_autohide_disabled_get_set.c [new file with mode: 0644]
TC/elementary/index/utc_elm_index_autohide_disabled_set.c [deleted file]
TC/elementary/index/utc_elm_index_delay_change_time_get.c [deleted file]
TC/elementary/index/utc_elm_index_delay_change_time_get_set.c [new file with mode: 0644]
TC/elementary/index/utc_elm_index_delay_change_time_set.c [deleted file]
TC/elementary/index/utc_elm_index_horizontal_get.c [deleted file]
TC/elementary/index/utc_elm_index_horizontal_get_set.c [new file with mode: 0644]
TC/elementary/index/utc_elm_index_horizontal_set.c [deleted file]
TC/elementary/index/utc_elm_index_indicator_disabled_get.c [deleted file]
TC/elementary/index/utc_elm_index_indicator_disabled_get_set.c [new file with mode: 0644]
TC/elementary/index/utc_elm_index_indicator_disabled_set.c [deleted file]
TC/elementary/index/utc_elm_index_item_level_get.c [deleted file]
TC/elementary/index/utc_elm_index_item_level_get_set.c [new file with mode: 0644]
TC/elementary/index/utc_elm_index_item_level_set.c [deleted file]
TC/elementary/index/utc_elm_index_omit_enabled_get.c [deleted file]
TC/elementary/index/utc_elm_index_omit_enabled_get_set.c [new file with mode: 0644]
TC/elementary/index/utc_elm_index_omit_enabled_set.c [deleted file]
TC/elementary/index/utc_elm_index_standard_priority_get.c [deleted file]
TC/elementary/index/utc_elm_index_standard_priority_get_set.c [new file with mode: 0644]
TC/elementary/index/utc_elm_index_standard_priority_set.c [deleted file]

index 0eae6afca0b83cee16da7b438e59882a90e86f8b..61642ed4f28122563b497dca10360acd79fd228a 100644 (file)
@@ -1,27 +1,19 @@
-utc_elm_index_add.c
-utc_elm_index_autohide_disabled_get.c
-utc_elm_index_autohide_disabled_set.c
-utc_elm_index_indicator_disabled_get.c
-utc_elm_index_indicator_disabled_set.c
+utc_elm_index_autohide_disabled_get_set.c
+utc_elm_index_indicator_disabled_get_set.c
 utc_elm_index_item_append.c
 utc_elm_index_item_clear.c
 utc_elm_index_item_find.c
 utc_elm_index_item_letter_get.c
-utc_elm_index_item_level_get.c
-utc_elm_index_item_level_set.c
+utc_elm_index_item_level_get_set.c
 utc_elm_index_item_prepend.c
 utc_elm_index_item_priority_set.c
 utc_elm_index_item_selected_set.c
 utc_elm_index_item_sorted_insert.c
 utc_elm_index_level_go.c
 utc_elm_index_selected_item_get.c
-utc_elm_index_delay_change_time_get.c
-utc_elm_index_delay_change_time_set.c
-utc_elm_index_horizontal_get.c
-utc_elm_index_horizontal_set.c
+utc_elm_index_delay_change_time_get_set.c
+utc_elm_index_horizontal_get_set.c
 utc_elm_index_item_insert_after.c
 utc_elm_index_item_insert_before.c
-utc_elm_index_omit_enabled_get.c
-utc_elm_index_omit_enabled_set.c
-utc_elm_index_standard_priority_get.c
-utc_elm_index_standard_priority_set.c
+utc_elm_index_omit_enabled_get_set.c
+utc_elm_index_standard_priority_get_set.c
\ No newline at end of file
index 0eae6afca0b83cee16da7b438e59882a90e86f8b..61642ed4f28122563b497dca10360acd79fd228a 100644 (file)
@@ -1,27 +1,19 @@
-utc_elm_index_add.c
-utc_elm_index_autohide_disabled_get.c
-utc_elm_index_autohide_disabled_set.c
-utc_elm_index_indicator_disabled_get.c
-utc_elm_index_indicator_disabled_set.c
+utc_elm_index_autohide_disabled_get_set.c
+utc_elm_index_indicator_disabled_get_set.c
 utc_elm_index_item_append.c
 utc_elm_index_item_clear.c
 utc_elm_index_item_find.c
 utc_elm_index_item_letter_get.c
-utc_elm_index_item_level_get.c
-utc_elm_index_item_level_set.c
+utc_elm_index_item_level_get_set.c
 utc_elm_index_item_prepend.c
 utc_elm_index_item_priority_set.c
 utc_elm_index_item_selected_set.c
 utc_elm_index_item_sorted_insert.c
 utc_elm_index_level_go.c
 utc_elm_index_selected_item_get.c
-utc_elm_index_delay_change_time_get.c
-utc_elm_index_delay_change_time_set.c
-utc_elm_index_horizontal_get.c
-utc_elm_index_horizontal_set.c
+utc_elm_index_delay_change_time_get_set.c
+utc_elm_index_horizontal_get_set.c
 utc_elm_index_item_insert_after.c
 utc_elm_index_item_insert_before.c
-utc_elm_index_omit_enabled_get.c
-utc_elm_index_omit_enabled_set.c
-utc_elm_index_standard_priority_get.c
-utc_elm_index_standard_priority_set.c
+utc_elm_index_omit_enabled_get_set.c
+utc_elm_index_standard_priority_get_set.c
\ No newline at end of file
index a08672a978b11d7ecbb1376b7b06ba7c1060a4b6..58842219c2b7bcd559a6810692b4de3afc7bfd5c 100644 (file)
@@ -1,27 +1,19 @@
-utc_elm_index_add.c
-utc_elm_index_autohide_disabled_get.c
-utc_elm_index_autohide_disabled_set.c
-utc_elm_index_indicator_disabled_get.c
-utc_elm_index_indicator_disabled_set.c
+utc_elm_index_autohide_disabled_get_set.c
+utc_elm_index_indicator_disabled_get_set.c
 utc_elm_index_item_append.c
 utc_elm_index_item_clear.c
 utc_elm_index_item_find.c
 utc_elm_index_item_letter_get.c
-#utc_elm_index_item_level_get.c
-#utc_elm_index_item_level_set.c
+#utc_elm_index_item_level_get_set.c
 utc_elm_index_item_prepend.c
 #utc_elm_index_item_priority_set.c
 utc_elm_index_item_selected_set.c
 utc_elm_index_item_sorted_insert.c
 utc_elm_index_level_go.c
 utc_elm_index_selected_item_get.c
-utc_elm_index_delay_change_time_get.c
-utc_elm_index_delay_change_time_set.c
-utc_elm_index_horizontal_get.c
-utc_elm_index_horizontal_set.c
+utc_elm_index_delay_change_time_get_set.c
+utc_elm_index_horizontal_get_set.c
 utc_elm_index_item_insert_after.c
 utc_elm_index_item_insert_before.c
-utc_elm_index_omit_enabled_get.c
-utc_elm_index_omit_enabled_set.c
-#utc_elm_index_standard_priority_get.c
-#utc_elm_index_standard_priority_set.c
+utc_elm_index_omit_enabled_get_set.c
+#utc_elm_index_standard_priority_get_set.c
\ No newline at end of file
index a08672a978b11d7ecbb1376b7b06ba7c1060a4b6..58842219c2b7bcd559a6810692b4de3afc7bfd5c 100644 (file)
@@ -1,27 +1,19 @@
-utc_elm_index_add.c
-utc_elm_index_autohide_disabled_get.c
-utc_elm_index_autohide_disabled_set.c
-utc_elm_index_indicator_disabled_get.c
-utc_elm_index_indicator_disabled_set.c
+utc_elm_index_autohide_disabled_get_set.c
+utc_elm_index_indicator_disabled_get_set.c
 utc_elm_index_item_append.c
 utc_elm_index_item_clear.c
 utc_elm_index_item_find.c
 utc_elm_index_item_letter_get.c
-#utc_elm_index_item_level_get.c
-#utc_elm_index_item_level_set.c
+#utc_elm_index_item_level_get_set.c
 utc_elm_index_item_prepend.c
 #utc_elm_index_item_priority_set.c
 utc_elm_index_item_selected_set.c
 utc_elm_index_item_sorted_insert.c
 utc_elm_index_level_go.c
 utc_elm_index_selected_item_get.c
-utc_elm_index_delay_change_time_get.c
-utc_elm_index_delay_change_time_set.c
-utc_elm_index_horizontal_get.c
-utc_elm_index_horizontal_set.c
+utc_elm_index_delay_change_time_get_set.c
+utc_elm_index_horizontal_get_set.c
 utc_elm_index_item_insert_after.c
 utc_elm_index_item_insert_before.c
-utc_elm_index_omit_enabled_get.c
-utc_elm_index_omit_enabled_set.c
-#utc_elm_index_standard_priority_get.c
-#utc_elm_index_standard_priority_set.c
+utc_elm_index_omit_enabled_get_set.c
+#utc_elm_index_standard_priority_get_set.c
\ No newline at end of file
diff --git a/TC/elementary/index/utc_elm_index_add.c b/TC/elementary/index/utc_elm_index_add.c
deleted file mode 100644 (file)
index 6ba7b17..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_index
- * @{
- * @defgroup elm_index_add elm_index_add()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_index_add
- * @{
- * @objective Positive test case checks whether function call to add a new index object to the given parent object
- * works properly and without segmentation fault
- * @n Input Data: the window object
- *
- * @procedure
- * @step 1 Add an index object to the main window
- *
- * @passcondition Test passes if returned value is a non-NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_index_add_p)
-{
-   Evas_Object *idx = NULL;
-
-   idx = elm_index_add(main_win);
-   if (idx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_del(idx);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_index_add
- * @{
- * @objective Negative test case checks whether function call with NULL as the parent object
- * works properly and without segmentation fault
- * @n Input Data: NULL instead of the parent object
- *
- * @procedure
- * @step 1 Call function with NULL instead of the parent object
- *
- * @passcondition Test passes if returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_index_add_n)
-{
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_index_add, NULL))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_elm_index_add()
-{
-   TCase *tcase = tcase_create("utc_elm_index_add");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_index_add_p);
-   tcase_add_test(tcase, utc_elm_index_add_n);
-   return tcase;
-}
diff --git a/TC/elementary/index/utc_elm_index_autohide_disabled_get.c b/TC/elementary/index/utc_elm_index_autohide_disabled_get.c
deleted file mode 100644 (file)
index d148a69..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_index
- * @{
- * @defgroup elm_index_autohide_disabled_get elm_index_autohide_disabled_get()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_index_autohide_disabled_get
- * @{
- * @objective Positive test case checks whether function call to return autohiding feature value
- * for a given index object works properly
- * @n Input Data: the index object
- *
- * @procedure
- * @step 1 Add an index object to the main window
- * @step 2 Set the autohide feature to EINA_TRUE
- * @step 3 Get the autohide feature of the index object
- * @step 4 Set the autohide feature to EINA_FALSE
- * @step 5 Get the autohide feature of the index object
- *
- * @passcondition Test passes if returned values are the same as set values
- * @}
- */
-START_TEST(utc_elm_index_autohide_disabled_get_p)
-{
-   Evas_Object *idx = NULL;
-   Eina_Bool is_index_active = EINA_FALSE;
-
-   idx = elm_index_add(main_win);
-   if (idx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an index object..", __FILE__, __LINE__);
-        return;
-     }
-   elm_index_autohide_disabled_set(idx, EINA_TRUE);
-   is_index_active = elm_index_autohide_disabled_get(idx);
-   if (is_index_active == EINA_FALSE)
-     {
-        evas_object_del(idx);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_index_autohide_disabled_set(idx, EINA_FALSE);
-   is_index_active = elm_index_autohide_disabled_get(idx);
-   evas_object_del(idx);
-   if (is_index_active == 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_index_autohide_disabled_get
- * @{
- * @objective Negative test case checks whether function call with NULL as the index object
- * works properly and without segmentation fault
- * @n Input Data: NULL instead of the index object
- *
- * @procedure
- * @step 1 Call function with NULL instead of the index object
- *
- * @passcondition Test passes if returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_index_autohide_disabled_get_n)
-{
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_index_autohide_disabled_get, NULL))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_elm_index_autohide_disabled_get()
-{
-   TCase *tcase = tcase_create("utc_elm_index_autohide_disabled_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_index_autohide_disabled_get_p);
-   tcase_add_test(tcase, utc_elm_index_autohide_disabled_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/index/utc_elm_index_autohide_disabled_get_set.c b/TC/elementary/index/utc_elm_index_autohide_disabled_get_set.c
new file mode 100644 (file)
index 0000000..b61213d
--- /dev/null
@@ -0,0 +1,168 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_index
+ * @{
+ * @defgroup elm_index_autohide_disabled_get elm_index_autohide_disabled_get()
+ *
+ * @precondition
+ * @step 1 Initialize elementary
+ * @step 2 Create a main window
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_index_autohide_disabled_get
+ * @{
+ * @objective Positive test case checks whether function call to return autohiding feature value
+ * for a given index object works properly
+ * @n Input Data: the index object
+ *
+ * @procedure
+ * @step 1 Add an index object to the main window
+ * @step 2 Set the autohide feature to EINA_TRUE
+ * @step 3 Get the autohide feature of the index object
+ * @step 4 Set the autohide feature to EINA_FALSE
+ * @step 5 Get the autohide feature of the index object
+ *
+ * @passcondition Test passes if returned values are the same as set values
+ * @}
+ */
+START_TEST(utc_elm_index_autohide_disabled_get_p)
+{
+   Evas_Object *idx = NULL;
+   Eina_Bool is_index_active = EINA_FALSE;
+
+   idx = elm_index_add(main_win);
+   if (idx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an index object..", __FILE__, __LINE__);
+     }
+   elm_index_autohide_disabled_set(idx, EINA_TRUE);
+   is_index_active = elm_index_autohide_disabled_get(idx);
+   if (is_index_active == EINA_FALSE)
+     {
+        evas_object_del(idx);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_index_autohide_disabled_set(idx, EINA_FALSE);
+   is_index_active = elm_index_autohide_disabled_get(idx);
+   evas_object_del(idx);
+   if (is_index_active == 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_index_autohide_disabled_get
+ * @{
+ * @objective Negative test case checks whether function call with NULL as the index object
+ * works properly and without segmentation fault
+ * @n Input Data: NULL instead of the index object
+ *
+ * @procedure
+ * @step 1 Call function with NULL instead of the index object
+ *
+ * @passcondition Test passes if returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_index_autohide_disabled_get_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_index_autohide_disabled_get, NULL))
+     {
+        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_index_autohide_disabled_set
+ * @{
+ * @objective Negative test case checks whether function call with NULL as the index object
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL as the index object
+ * @li EINA_FALSE as the value to set whether a given icons autohide mode
+ *
+ * @procedure
+ * @step 1 Call function with NULL instead of the index object
+ *
+ * @passcondition Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_index_autohide_disabled_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_index_autohide_disabled_set, NULL, EINA_FALSE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_index_add
+ * @{
+ * @objective Negative test case checks whether function call with NULL as the parent object
+ * works properly and without segmentation fault
+ * @n Input Data: NULL instead of the parent object
+ *
+ * @procedure
+ * @step 1 Call function with NULL instead of the parent object
+ *
+ * @passcondition Test passes if returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_index_add_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_index_add, NULL))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_index_autohide_disabled_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_index_autohide_disabled_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_index_autohide_disabled_get_p);
+   tcase_add_test(tcase, utc_elm_index_autohide_disabled_get_n);
+   tcase_add_test(tcase, utc_elm_index_autohide_disabled_set_n);
+   tcase_add_test(tcase, utc_elm_index_add_n);
+   return tcase;
+}
diff --git a/TC/elementary/index/utc_elm_index_autohide_disabled_set.c b/TC/elementary/index/utc_elm_index_autohide_disabled_set.c
deleted file mode 100644 (file)
index b6295c3..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_index
- * @{
- * @defgroup elm_index_autohide_disabled_set elm_index_autohide_disabled_set()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_index_autohide_disabled_set
- * @{
- * @objective Positive test case checks whether function call to set the autohiding feature value
- * for a given index object works properly
- * @n Input Data:
- * @li the index object
- * @li EINA_TRUE/EINA_FALSE for first/second function call
- *
- * @procedure
- * @step 1 Add an index object to the main window
- * @step 2 Set the autohide feature to EINA_TRUE
- * @step 3 Get the autohide feature of the index object
- * @step 4 Set the autohide feature to EINA_FALSE
- * @step 5 Get the autohide feature of the index object
- *
- * @passcondition Test passes if returned values are the same as set values
- * @}
- */
-START_TEST(utc_elm_index_autohide_disabled_set_p)
-{
-   Evas_Object *idx = NULL;
-   Eina_Bool is_index_active = EINA_FALSE;
-
-   idx = elm_index_add(main_win);
-   if (idx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an index object..", __FILE__, __LINE__);
-        return;
-     }
-   elm_index_autohide_disabled_set(idx, EINA_TRUE);
-   is_index_active = elm_index_autohide_disabled_get(idx);
-   if (is_index_active == EINA_FALSE)
-     {
-        evas_object_del(idx);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_index_autohide_disabled_set(idx, EINA_FALSE);
-   is_index_active = elm_index_autohide_disabled_get(idx);
-   evas_object_del(idx);
-   if (is_index_active == 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_index_autohide_disabled_set
- * @{
- * @objective Negative test case checks whether function call with NULL as the index object
- * works properly and without segmentation fault
- * @n Input Data:
- * @li NULL as the index object
- * @li EINA_FALSE as the value to set whether a given icons autohide mode
- *
- * @procedure
- * @step 1 Call function with NULL instead of the index object
- *
- * @passcondition Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_index_autohide_disabled_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_index_autohide_disabled_set, NULL, EINA_FALSE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_elm_index_autohide_disabled_set()
-{
-   TCase *tcase = tcase_create("utc_elm_index_autohide_disabled_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_index_autohide_disabled_set_p);
-   tcase_add_test(tcase, utc_elm_index_autohide_disabled_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/index/utc_elm_index_delay_change_time_get.c b/TC/elementary/index/utc_elm_index_delay_change_time_get.c
deleted file mode 100644 (file)
index 7dbfb62..0000000
+++ /dev/null
@@ -1,148 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <float.h>
-
-static Evas_Object *main_win;
-
-/**
- * @addtogroup elm_index
- * @{
- * @defgroup elm_index_delay_change_time_get elm_index_delay_change_time_get()
- *
- * @precondition
- * @step 1 Create a main window.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-}
-
-static void
-teardown(void)
-{
-   if (NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_index_delay_change_time_get
- * @{
- * @objective Positive test case 01: check whether function ruturns default delay change time value
- * @n Input Data:
- * @li the index object
- *
- * @procedure
- * @step 1 Add a index widget to main window.
- * @step 2 Call the API for the index widget just created to obtain default value
- *
- * @passcondition  :   API returns value that is close to 0.2
- * @}
- */
-START_TEST(utc_elm_index_delay_change_time_get_p_01)
-{
-   Evas_Object *idx = NULL;
-   double delay = 0.0f;
-   double expected = .2f;
-   idx = elm_index_add(main_win);
-
-   if (!idx)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   delay = elm_index_delay_change_time_get(idx);
-   if (fabs(delay - expected) <= DBL_EPSILON * fmax(fabs(delay),fabs(expected)))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        evas_object_del(idx);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-   evas_object_del(idx);
-}
-END_TEST
-
-/**
- * @addtogroup elm_index_delay_change_time_get
- * @{
- * @objective Positive test case 02: check whether function ruturns delay change time value previously set.
- * @n Input Data:
- * @li the index object
- *
- * @procedure
- * @step 1 Add a index widget to main window.
- * @step 2 Call the API for the index widget just created to set new delay change time value
- * @step 3 Call the API for the index widget just created to get previously set delay change time value
- *
- * @passcondition  :   API returns the value that was previously set
- * @}
- */
-START_TEST(utc_elm_index_delay_change_time_get_p_02)
-{
-   Evas_Object *idx = NULL;
-   double delay = 0.0f;
-   double expected = 1.0f;
-   idx = elm_index_add(main_win);
-
-   if (!idx)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-
-   elm_index_delay_change_time_set(idx, expected);
-   delay = elm_index_delay_change_time_get(idx);
-   if (delay != expected)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        evas_object_del(idx);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-   evas_object_del(idx);
-}
-END_TEST
-
-/**
- * @addtogroup elm_index_delay_change_time_get
- * @{
- * @objective Negative test case 01: check whether calling function with NULL as the index object won't cause occurrence of SIGSEGV
- * @n Input Data:
- * @li the index object
- *
- * @procedure
- * @step 1 Call the API for the "NULL" index widget
- *
- * @passcondition  :   API Executes successfully
- * @}
- */
-START_TEST(utc_elm_index_delay_change_time_get_n_01)
-{
-   (void)elm_index_delay_change_time_get(NULL);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_index_delay_change_time_get()
-{
-   TCase *tcase = tcase_create("utc_elm_index_delay_change_time_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_index_delay_change_time_get_p_01);
-   tcase_add_test(tcase, utc_elm_index_delay_change_time_get_p_02);
-   tcase_add_test(tcase, utc_elm_index_delay_change_time_get_n_01);
-   return tcase;
-}
diff --git a/TC/elementary/index/utc_elm_index_delay_change_time_get_set.c b/TC/elementary/index/utc_elm_index_delay_change_time_get_set.c
new file mode 100644 (file)
index 0000000..0b0a3f5
--- /dev/null
@@ -0,0 +1,196 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include <float.h>
+
+static Evas_Object *main_win;
+
+/**
+ * @addtogroup elm_index
+ * @{
+ * @defgroup elm_index_delay_change_time_get elm_index_delay_change_time_get()
+ *
+ * @precondition
+ * @step 1 Create a main window.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+}
+
+static void
+teardown(void)
+{
+   if (NULL != main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_index_delay_change_time_get
+ * @{
+ * @objective Positive test case 01: check whether function ruturns default delay change time value
+ * @n Input Data:
+ * @li the index object
+ *
+ * @procedure
+ * @step 1 Add a index widget to main window.
+ * @step 2 Call the API for the index widget just created to obtain default value
+ *
+ * @passcondition  :   API returns value that is close to 0.2
+ * @}
+ */
+START_TEST(utc_elm_index_delay_change_time_get_p_01)
+{
+   Evas_Object *idx = NULL;
+   double delay = 0.0f;
+   double expected = .2f;
+   idx = elm_index_add(main_win);
+
+   if (!idx)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   delay = elm_index_delay_change_time_get(idx);
+   if (fabs(delay - expected) <= DBL_EPSILON * fmax(fabs(delay),fabs(expected)))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+        evas_object_del(idx);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+   evas_object_del(idx);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_index_delay_change_time_get
+ * @{
+ * @objective Positive test case 02: check whether function ruturns delay change time value previously set.
+ * @n Input Data:
+ * @li the index object
+ *
+ * @procedure
+ * @step 1 Add a index widget to main window.
+ * @step 2 Call the API for the index widget just created to set new delay change time value
+ * @step 3 Call the API for the index widget just created to get previously set delay change time value
+ *
+ * @passcondition  :   API returns the value that was previously set
+ * @}
+ */
+START_TEST(utc_elm_index_delay_change_time_get_p_02)
+{
+   Evas_Object *idx = NULL;
+   double delay = 0.0f;
+   double expected = 1.0f;
+   idx = elm_index_add(main_win);
+
+   if (!idx)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   elm_index_delay_change_time_set(idx, expected);
+   delay = elm_index_delay_change_time_get(idx);
+   if (delay != expected)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+        evas_object_del(idx);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+   evas_object_del(idx);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_index_delay_change_time_get
+ * @{
+ * @objective Negative test case 01: check whether calling function with NULL as the index object won't cause occurrence of SIGSEGV
+ * @n Input Data:
+ * @li the index object
+ *
+ * @procedure
+ * @step 1 Call the API for the "NULL" index widget
+ *
+ * @passcondition  :   API Executes successfully
+ * @}
+ */
+START_TEST(utc_elm_index_delay_change_time_get_n_01)
+{
+   (void)elm_index_delay_change_time_get(NULL);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_index_delay_change_time_set
+ * @{
+ * @objective Negative test case 01: check whether calling function with NULL as the index object won't cause occurrence of SIGSEGV
+ * @n Input Data:
+ * @li null index object
+ * @li the delay value
+ *
+ * @procedure
+ * @step 1 Call the API for the "NULL" index widget
+ *
+ * @passcondition  :   API Executes successfully
+ * @}
+ */
+START_TEST(utc_elm_index_delay_change_time_set_n_01)
+{
+   elm_index_delay_change_time_set(NULL, 1.0);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_index_delay_change_time_set
+ * @{
+ * @objective Negative test case 02: check whether calling function with a negative delay value won't cause occurrence of SIGSEGV
+ * @n Input Data:
+ * @li the index object
+ * @li invalid delay value
+ *
+ * @procedure
+ * @step 1 Call the API with negative value of the delay for index widget
+ *
+ * @passcondition  :   API Executes successfully
+ * @}
+ */
+START_TEST(utc_elm_index_delay_change_time_set_n_02)
+{
+   Evas_Object *idx = NULL;
+   double delay = -1.0f;
+   idx = elm_index_add(main_win);
+   if (!idx)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_index_delay_change_time_set(idx, delay);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+   evas_object_del(idx);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_index_delay_change_time_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_index_delay_change_time_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_index_delay_change_time_get_p_01);
+   tcase_add_test(tcase, utc_elm_index_delay_change_time_get_p_02);
+   tcase_add_test(tcase, utc_elm_index_delay_change_time_get_n_01);
+   tcase_add_test(tcase, utc_elm_index_delay_change_time_set_n_01);
+   tcase_add_test(tcase, utc_elm_index_delay_change_time_set_n_02);
+   return tcase;
+}
diff --git a/TC/elementary/index/utc_elm_index_delay_change_time_set.c b/TC/elementary/index/utc_elm_index_delay_change_time_set.c
deleted file mode 100644 (file)
index 1813faf..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-static Evas_Object *main_win;
-
-/**
- * @addtogroup elm_index
- * @{
- * @defgroup elm_index_delay_change_time_set elm_index_delay_change_time_set()
- *
- * @precondition
- * @step 1 Create a main window.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-}
-
-static void
-teardown(void)
-{
-   if (NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_index_delay_change_time_set
- * @{
- * @objective Positive test case 01: check whether function ruturns delay change time value previously set.
- * @n Input Data:
- * @li the index object
- * @li the delay value
- *
- * @procedure
- * @step 1 Add a index widget to main window.
- * @step 2 Call the API for the index widget just created to set new delay change time value
- * @step 3 Call the API for the index widget just created to get previously set delay change time value
- *
- * @passcondition  :   API returns the value that was previously set
- * @}
- */
-START_TEST(utc_elm_index_delay_change_time_set_p_01)
-{
-   Evas_Object *idx = NULL;
-   double delay = 0.0f;
-   double expected = 1.0f;
-   idx = elm_index_add(main_win);
-
-   if (!idx)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-
-   elm_index_delay_change_time_set(idx, expected);
-   delay = elm_index_delay_change_time_get(idx);
-   if (delay != expected)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        evas_object_del(idx);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-   evas_object_del(idx);
-}
-END_TEST
-
-/**
- * @addtogroup elm_index_delay_change_time_set
- * @{
- * @objective Negative test case 01: check whether calling function with NULL as the index object won't cause occurrence of SIGSEGV
- * @n Input Data:
- * @li null index object
- * @li the delay value
- *
- * @procedure
- * @step 1 Call the API for the "NULL" index widget
- *
- * @passcondition  :   API Executes successfully
- * @}
- */
-START_TEST(utc_elm_index_delay_change_time_set_n_01)
-{
-   elm_index_delay_change_time_set(NULL, 1.0);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_index_delay_change_time_set
- * @{
- * @objective Negative test case 02: check whether calling function with a negative delay value won't cause occurrence of SIGSEGV
- * @n Input Data:
- * @li the index object
- * @li invalid delay value
- *
- * @procedure
- * @step 1 Call the API with negative value of the delay for index widget
- *
- * @passcondition  :   API Executes successfully
- * @}
- */
-START_TEST(utc_elm_index_delay_change_time_set_n_02)
-{
-   Evas_Object *idx = NULL;
-   double delay = -1.0f;
-   idx = elm_index_add(main_win);
-   if (!idx)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_index_delay_change_time_set(idx, delay);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-   evas_object_del(idx);
-}
-END_TEST
-/**
- * @}
- */
-
-TCase * _utc_elm_index_delay_change_time_set()
-{
-   TCase *tcase = tcase_create("utc_elm_index_delay_change_time_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_index_delay_change_time_set_p_01);
-   tcase_add_test(tcase, utc_elm_index_delay_change_time_set_n_01);
-   tcase_add_test(tcase, utc_elm_index_delay_change_time_set_n_02);
-   return tcase;
-}
diff --git a/TC/elementary/index/utc_elm_index_horizontal_get.c b/TC/elementary/index/utc_elm_index_horizontal_get.c
deleted file mode 100644 (file)
index b84b6fb..0000000
+++ /dev/null
@@ -1,145 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-static Evas_Object *main_win;
-
-/**
- * @addtogroup elm_index
- * @{
- * @defgroup elm_index_horizontal_get elm_index_horizontal_get()
- *
- *
- * @precondition
- * @step 1 Create a main window.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-}
-
-static void
-teardown(void)
-{
-   if (NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_index_horizontal_get
- * @{
- * @objective Positive test case 01: check whether function set the indicator as to be disabled properly
- * @n Input Data:
- * @li the index object
- *
- * @procedure
- * @step 1 Add a index widget to main window.
- * @step 2 Call elm_index_horizontal_set for the index widget just created to set value to EINA_TRUE
- * @step 3 Call the API for the index widget to check that returned value is equal to previously set one.
- *
- * @passcondition  :   API Executes successfully
- * @}
- */
-START_TEST(utc_elm_index_horizontal_get_p_01)
-{
-   Evas_Object *idx = NULL;
-   Eina_Bool is_enabled = EINA_FALSE;
-   idx = elm_index_add(main_win);
-   if (!idx)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_index_horizontal_set(idx, EINA_TRUE);
-   is_enabled = elm_index_horizontal_get(idx);
-   if (is_enabled == 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_index_horizontal_get
- * @{
- * @objective Positive test case 02: check whether function set the indicator as to be disabled properly
- * @n Input Data:
- * @li the index object
- *
- * @procedure
- * @step 1 Add a index widget to main window.
- * @step 2 Call elm_index_horizontal_set for the index widget just created to set value to EINA_FALSE
- * @step 3 Call the API for the index widget to check that returned value is equal to previously set one.
- *
- * @passcondition  :   API Executes successfully
- * @}
- */
-START_TEST(utc_elm_index_horizontal_get_p_02)
-{
-   Evas_Object *idx = NULL;
-   Eina_Bool is_enabled = EINA_FALSE;
-   idx = elm_index_add(main_win);
-   if (!idx)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_index_horizontal_set(idx, EINA_FALSE);
-   is_enabled = elm_index_horizontal_get(idx);
-   if (is_enabled == 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_index_horizontal_get
- * @{
- * @objective Negative test case 01: check whether calling function with NULL as the index object returns EINA_FALSE
- * @n Input Data:
- * @li null index object
- *
- * @procedure
- * @step 1 Call the API for the "NULL" index widget
- *
- * @passcondition  :   API return EINA_FALSE
- * @}
- */
-START_TEST(utc_elm_index_horizontal_get_n_01)
-{
-   if (EINA_FALSE != elm_index_horizontal_get(NULL))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_index_horizontal_get()
-{
-   TCase *tcase = tcase_create("utc_elm_index_horizontal_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_index_horizontal_get_p_01);
-   tcase_add_test(tcase, utc_elm_index_horizontal_get_p_02);
-   tcase_add_test(tcase, utc_elm_index_horizontal_get_n_01);
-   return tcase;
-}
diff --git a/TC/elementary/index/utc_elm_index_horizontal_get_set.c b/TC/elementary/index/utc_elm_index_horizontal_get_set.c
new file mode 100644 (file)
index 0000000..d759691
--- /dev/null
@@ -0,0 +1,163 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+
+static Evas_Object *main_win;
+
+/**
+ * @addtogroup elm_index
+ * @{
+ * @defgroup elm_index_horizontal_get elm_index_horizontal_get()
+ *
+ *
+ * @precondition
+ * @step 1 Create a main window.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+}
+
+static void
+teardown(void)
+{
+   if (NULL != main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_index_horizontal_get
+ * @{
+ * @objective Positive test case 01: check whether function set the indicator as to be disabled properly
+ * @n Input Data:
+ * @li the index object
+ *
+ * @procedure
+ * @step 1 Add a index widget to main window.
+ * @step 2 Call elm_index_horizontal_set for the index widget just created to set value to EINA_TRUE
+ * @step 3 Call the API for the index widget to check that returned value is equal to previously set one.
+ *
+ * @passcondition  :   API Executes successfully
+ * @}
+ */
+START_TEST(utc_elm_index_horizontal_get_p_01)
+{
+   Evas_Object *idx = NULL;
+   Eina_Bool is_enabled = EINA_FALSE;
+   idx = elm_index_add(main_win);
+   if (!idx)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_index_horizontal_set(idx, EINA_TRUE);
+   is_enabled = elm_index_horizontal_get(idx);
+   if (is_enabled == 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_index_horizontal_get
+ * @{
+ * @objective Positive test case 02: check whether function set the indicator as to be disabled properly
+ * @n Input Data:
+ * @li the index object
+ *
+ * @procedure
+ * @step 1 Add a index widget to main window.
+ * @step 2 Call elm_index_horizontal_set for the index widget just created to set value to EINA_FALSE
+ * @step 3 Call the API for the index widget to check that returned value is equal to previously set one.
+ *
+ * @passcondition  :   API Executes successfully
+ * @}
+ */
+START_TEST(utc_elm_index_horizontal_get_p_02)
+{
+   Evas_Object *idx = NULL;
+   Eina_Bool is_enabled = EINA_FALSE;
+   idx = elm_index_add(main_win);
+   if (!idx)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_index_horizontal_set(idx, EINA_FALSE);
+   is_enabled = elm_index_horizontal_get(idx);
+   if (is_enabled == 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_index_horizontal_get
+ * @{
+ * @objective Negative test case 01: check whether calling function with NULL as the index object returns EINA_FALSE
+ * @n Input Data:
+ * @li null index object
+ *
+ * @procedure
+ * @step 1 Call the API for the "NULL" index widget
+ *
+ * @passcondition  :   API return EINA_FALSE
+ * @}
+ */
+START_TEST(utc_elm_index_horizontal_get_n_01)
+{
+   if (EINA_FALSE != elm_index_horizontal_get(NULL))
+     {
+        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_index_horizontal_set
+ * @{
+ * @objective Negative test case 01: check whether calling function with NULL as the index object won't cause occurrence of SIGSEGV
+ * @n Input Data:
+ * @li the index object
+ * @li EINA_TRUE to enable horizontal or EINA_FALSE to disable it, i.e., to enable vertical mode
+ *
+ * @procedure
+ * @step 1 Call the API for the "NULL" index widget
+ *
+ * @passcondition  :   API Executes successfully
+ * @}
+ */
+START_TEST(utc_UIFW_elm_index_horizontal_set_n_1)
+{
+   elm_index_horizontal_set(NULL, EINA_TRUE);
+   elm_index_horizontal_set(NULL, EINA_FALSE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_index_horizontal_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_index_horizontal_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_index_horizontal_get_p_01);
+   tcase_add_test(tcase, utc_elm_index_horizontal_get_p_02);
+   tcase_add_test(tcase, utc_elm_index_horizontal_get_n_01);
+   tcase_add_test(tcase, utc_UIFW_elm_index_horizontal_set_n_1);
+   return tcase;
+}
diff --git a/TC/elementary/index/utc_elm_index_horizontal_set.c b/TC/elementary/index/utc_elm_index_horizontal_set.c
deleted file mode 100644 (file)
index 0fa128a..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-static Evas_Object *main_win;
-
-/**
- * @addtogroup elm_index
- * @{
- * @defgroup elm_index_horizontal_set elm_index_horizontal_set()
- *
- * @precondition
- * @step 1 Create a main window.
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-}
-
-static void
-teardown(void)
-{
-   if (NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_index_horizontal_set
- * @{
- * @objective Positive test case 01: check whether function set the indicator as to be disabled properly
- * @n Input Data:
- * @li the index object
- * @li EINA_TRUE to enable horizontal or EINA_FALSE to disable it, i.e., to enable vertical mode
- *
- * @procedure
- * @step 1 Add a index widget to main window.
- * @step 2 Call the API for the index widget just created
- *
- * @passcondition  :   API Executes successfully
- * @}
- */
-START_TEST(utc_UIFW_elm_index_horizontal_set_p_1)
-{
-   Evas_Object *idx = NULL;
-   Eina_Bool is_enabled = EINA_FALSE;
-   idx = elm_index_add(main_win);
-   elm_index_horizontal_set(idx, EINA_TRUE);
-   is_enabled = elm_index_horizontal_get(idx);
-   if (is_enabled == 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_index_horizontal_set
- * @{
- * @objective Negative test case 01: check whether calling function with NULL as the index object won't cause occurrence of SIGSEGV
- * @n Input Data:
- * @li the index object
- * @li EINA_TRUE to enable horizontal or EINA_FALSE to disable it, i.e., to enable vertical mode
- *
- * @procedure
- * @step 1 Call the API for the "NULL" index widget
- *
- * @passcondition  :   API Executes successfully
- * @}
- */
-START_TEST(utc_UIFW_elm_index_horizontal_set_n_1)
-{
-   elm_index_horizontal_set(NULL, EINA_TRUE);
-   elm_index_horizontal_set(NULL, EINA_FALSE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- * @}
- */
-
-TCase * _utc_elm_index_horizontal_set()
-{
-   TCase *tcase = tcase_create("utc_elm_index_horizontal_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_UIFW_elm_index_horizontal_set_p_1);
-   tcase_add_test(tcase, utc_UIFW_elm_index_horizontal_set_n_1);
-   return tcase;
-}
diff --git a/TC/elementary/index/utc_elm_index_indicator_disabled_get.c b/TC/elementary/index/utc_elm_index_indicator_disabled_get.c
deleted file mode 100644 (file)
index bab22a1..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_index
- * @{
- * @defgroup elm_index_indicator_disabled_get elm_index_indicator_disabled_get()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_index_indicator_disabled_get
- * @{
- * @objective Positive test case checks whether function call to return the index indicator disabled state works properly
- * @n Input Data: the index object
- *
- * @procedure
- * @step 1 Add an index object to the main window
- * @step 2 Set the indicator disabled state to EINA_TRUE
- * @step 3 Get the indicator disabled state
- * @step 4 Set the indicator disabled state to EINA_FALSE
- * @step 5 Get the indicator disabled state
- *
- * @passcondition Test passes if returned values are the same as set values
- * @}
- */
-START_TEST(utc_elm_index_indicator_disabled_get_p)
-{
-   Evas_Object *idx = NULL;
-   Eina_Bool is_disabled = EINA_FALSE;
-
-   idx = elm_index_add(main_win);
-   if (idx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an index object..", __FILE__, __LINE__);
-        return;
-     }
-   elm_index_indicator_disabled_set(idx, EINA_TRUE);
-   is_disabled = elm_index_indicator_disabled_get(idx);
-   if (is_disabled == EINA_FALSE)
-     {
-        evas_object_del(idx);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_index_indicator_disabled_set(idx, EINA_FALSE);
-   is_disabled = elm_index_indicator_disabled_get(idx);
-   evas_object_del(idx);
-   if (is_disabled == 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_index_indicator_disabled_get
- * @{
- * @objective Negative test case checks whether function call with NULL as the index object
- * works properly and there is no segmentation fault
- * @n Input Data: NULL instead of the index object
- *
- * @procedure
- * @step 1 Call function with NULL instead of the index object
- *
- * @passcondition Test passes if function call returns EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_index_indicator_disabled_get_n)
-{
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_index_indicator_disabled_get, NULL))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_elm_index_indicator_disabled_get()
-{
-   TCase *tcase = tcase_create("utc_elm_index_indicator_disabled_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_index_indicator_disabled_get_p);
-   tcase_add_test(tcase, utc_elm_index_indicator_disabled_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/index/utc_elm_index_indicator_disabled_get_set.c b/TC/elementary/index/utc_elm_index_indicator_disabled_get_set.c
new file mode 100644 (file)
index 0000000..11c0538
--- /dev/null
@@ -0,0 +1,142 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_index
+ * @{
+ * @defgroup elm_index_indicator_disabled_get elm_index_indicator_disabled_get()
+ *
+ * @precondition
+ * @step 1 Initialize elementary
+ * @step 2 Create a main window
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_index_indicator_disabled_get
+ * @{
+ * @objective Positive test case checks whether function call to return the index indicator disabled state works properly
+ * @n Input Data: the index object
+ *
+ * @procedure
+ * @step 1 Add an index object to the main window
+ * @step 2 Set the indicator disabled state to EINA_TRUE
+ * @step 3 Get the indicator disabled state
+ * @step 4 Set the indicator disabled state to EINA_FALSE
+ * @step 5 Get the indicator disabled state
+ *
+ * @passcondition Test passes if returned values are the same as set values
+ * @}
+ */
+START_TEST(utc_elm_index_indicator_disabled_get_p)
+{
+   Evas_Object *idx = NULL;
+   Eina_Bool is_disabled = EINA_FALSE;
+
+   idx = elm_index_add(main_win);
+   if (idx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an index object..", __FILE__, __LINE__);
+     }
+   elm_index_indicator_disabled_set(idx, EINA_TRUE);
+   is_disabled = elm_index_indicator_disabled_get(idx);
+   if (is_disabled == EINA_FALSE)
+     {
+        evas_object_del(idx);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_index_indicator_disabled_set(idx, EINA_FALSE);
+   is_disabled = elm_index_indicator_disabled_get(idx);
+   evas_object_del(idx);
+   if (is_disabled == 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_index_indicator_disabled_get
+ * @{
+ * @objective Negative test case checks whether function call with NULL as the index object
+ * works properly and there is no segmentation fault
+ * @n Input Data: NULL instead of the index object
+ *
+ * @procedure
+ * @step 1 Call function with NULL instead of the index object
+ *
+ * @passcondition Test passes if function call returns EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_index_indicator_disabled_get_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_index_indicator_disabled_get, NULL))
+     {
+        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_index_indicator_disabled_set
+ * @{
+ * @objective Negative test case checks whether function call with NULL as the index object
+ * works properly and there is no segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the index object
+ * @li EINA_FALSE as the value to set whether a given icon is animated
+ *
+ * @procedure
+ * @step 1 Call function with NULL instead of the index object
+ *
+ * @passcondition Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_index_indicator_disabled_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_index_indicator_disabled_set, NULL, EINA_FALSE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_elm_index_indicator_disabled_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_index_indicator_disabled_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_index_indicator_disabled_get_p);
+   tcase_add_test(tcase, utc_elm_index_indicator_disabled_get_n);
+   tcase_add_test(tcase, utc_elm_index_indicator_disabled_set_n);
+   return tcase;
+}
diff --git a/TC/elementary/index/utc_elm_index_indicator_disabled_set.c b/TC/elementary/index/utc_elm_index_indicator_disabled_set.c
deleted file mode 100644 (file)
index a08e328..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_index
- * @{
- * @defgroup elm_index_indicator_disabled_set elm_index_indicator_disabled_set()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_index_indicator_disabled_set
- * @{
- * @objective Positive test case checks whether function call
- * to set the index indicator disabled state works properly
- * @n Input Data:
- * @li the index object
- * @li EINA_TRUE/EINA_FALSE for first/second function call
- *
- * @procedure
- * @step 1 Add an index object to the main window
- * @step 2 Set the indicator disabled state to EINA_TRUE
- * @step 3 Get the indicator disabled state
- * @step 4 Set the indicator disabled state to EINA_FALSE
- * @step 5 Get the indicator disabled state
- *
- * @passcondition Test passes if returned values are the same as set values
- * @}
- */
-START_TEST(utc_elm_index_indicator_disabled_set_p)
-{
-   Evas_Object *idx = NULL;
-   Eina_Bool is_disabled = EINA_FALSE;
-
-   idx = elm_index_add(main_win);
-   if (idx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an index object..", __FILE__, __LINE__);
-        return;
-     }
-   elm_index_indicator_disabled_set(idx, EINA_TRUE);
-   is_disabled = elm_index_indicator_disabled_get(idx);
-   if (is_disabled == EINA_FALSE)
-     {
-        evas_object_del(idx);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_index_indicator_disabled_set(idx, EINA_FALSE);
-   is_disabled = elm_index_indicator_disabled_get(idx);
-   evas_object_del(idx);
-   if (is_disabled == 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_index_indicator_disabled_set
- * @{
- * @objective Negative test case checks whether function call with NULL as the index object
- * works properly and there is no segmentation fault
- * @n Input Data:
- * @li NULL instead of the index object
- * @li EINA_FALSE as the value to set whether a given icon is animated
- *
- * @procedure
- * @step 1 Call function with NULL instead of the index object
- *
- * @passcondition Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_index_indicator_disabled_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_index_indicator_disabled_set, NULL, EINA_FALSE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_elm_index_indicator_disabled_set()
-{
-   TCase *tcase = tcase_create("utc_elm_index_indicator_disabled_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_index_indicator_disabled_set_p);
-   tcase_add_test(tcase, utc_elm_index_indicator_disabled_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/index/utc_elm_index_item_level_get.c b/TC/elementary/index/utc_elm_index_item_level_get.c
deleted file mode 100644 (file)
index 91e9e8e..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_index
- * @{
- * @defgroup elm_index_item_level_get elm_index_item_level_get()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_index_item_level_get
- * @{
- * @objective Positive test case checks whether function call to return the items level for a given index object works properly
- * @n Input Data: the index object
- *
- * @procedure
- * @step 1 Add an index object to the main window
- * @step 2 Set the item level to 1
- * @step 3 Get the item level
- * @step 4 Set the item level to 0
- * @step 5 Get the item level
- *
- * @passcondition Test passes if returned item levels are the same as set levels
- * @}
- */
-START_TEST(utc_elm_index_item_level_get_p)
-{
-   Evas_Object *idx = NULL;
-   int level = -1;
-
-   idx = elm_index_add(main_win);
-   if (idx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an index object..", __FILE__, __LINE__);
-     }
-   elm_index_level_go(idx, 0);
-   elm_index_item_level_set(idx, 1);
-   level = elm_index_item_level_get(idx);
-   if (level != 1)
-     {
-        evas_object_del(idx);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   elm_index_item_level_set(idx, 0);
-   level = elm_index_item_level_get(idx);
-   evas_object_del(idx);
-   if (level != 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_index_item_level_get
- * @{
- * @objective Negative test case checks whether function call with NULL as item object
- * works properly and without any segmentation fault
- * @n Input Data: NULL instead of the item object
- *
- * @procedure
- * @step 1 Get the item for NULL instead of the item object
- *
- * @passcondition Test passes if returned value is 0 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_index_item_level_get_n)
-{
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(0, elm_index_item_level_get, NULL))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_elm_index_item_level_get()
-{
-   TCase *tcase = tcase_create("utc_elm_index_item_level_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_index_item_level_get_p);
-   tcase_add_test(tcase, utc_elm_index_item_level_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/index/utc_elm_index_item_level_get_set.c b/TC/elementary/index/utc_elm_index_item_level_get_set.c
new file mode 100644 (file)
index 0000000..8547add
--- /dev/null
@@ -0,0 +1,144 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_index
+ * @{
+ * @defgroup elm_index_item_level_get elm_index_item_level_get()
+ *
+ * @precondition
+ * @step 1 Initialize elementary
+ * @step 2 Create a main window
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_index_item_level_get
+ * @{
+ * @objective Positive test case checks whether function call to return the items level for a given index object works properly
+ * @n Input Data: the index object
+ *
+ * @procedure
+ * @step 1 Add an index object to the main window
+ * @step 2 Set the item level to 1
+ * @step 3 Get the item level
+ * @step 4 Set the item level to 0
+ * @step 5 Get the item level
+ *
+ * @passcondition Test passes if returned item levels are the same as set levels
+ * @}
+ */
+START_TEST(utc_elm_index_item_level_get_p)
+{
+   Evas_Object *idx = NULL;
+   int level = -1;
+
+   idx = elm_index_add(main_win);
+   if (idx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an index object..", __FILE__, __LINE__);
+     }
+   elm_index_level_go(idx, 0);
+   elm_index_item_level_set(idx, 1);
+   level = elm_index_item_level_get(idx);
+   if (level != 1)
+     {
+        evas_object_del(idx);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_index_item_level_set(idx, 0);
+   level = elm_index_item_level_get(idx);
+   evas_object_del(idx);
+   if (level != 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_index_item_level_get
+ * @{
+ * @objective Negative test case checks whether function call with NULL as item object
+ * works properly and without any segmentation fault
+ * @n Input Data: NULL instead of the item object
+ *
+ * @procedure
+ * @step 1 Get the item for NULL instead of the item object
+ *
+ * @passcondition Test passes if returned value is 0 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_index_item_level_get_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(0, elm_index_item_level_get, NULL))
+     {
+        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_index_item_level_set
+ * @{
+ * @objective Negative test case 1 checks whether function call with NULL as the index object
+ * works properly and without any segmentation fault
+ * @n Input Data:
+ * @li NULL as the index object
+ * @li 0 as the object level
+ *
+ * @procedure
+ * @step 1 Set the item level as 0 for NULL instead of the index object
+ *
+ * @passcondition Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_index_item_level_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_index_item_level_set, NULL, 0);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_index_item_level_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_index_item_level_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_index_item_level_get_p);
+   tcase_add_test(tcase, utc_elm_index_item_level_get_n);
+   tcase_add_test(tcase, utc_elm_index_item_level_set_n);
+   return tcase;
+}
diff --git a/TC/elementary/index/utc_elm_index_item_level_set.c b/TC/elementary/index/utc_elm_index_item_level_set.c
deleted file mode 100644 (file)
index c8b80de..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_index
- * @{
- * @defgroup elm_index_item_level_set elm_index_item_level_set()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_index_item_level_set
- * @{
- * @objective Positive test case checks whether function sets the items level for a given index object properly
- * @n Input Data:
- * @li the index object
- * @li 1/0 for first/second function call
- *
- * @procedure
- * @step 1 Add an index object to the main window
- * @step 2 Set the item level to 1
- * @step 3 Get the item level
- * @step 4 Set the item level to 0
- * @step 5 Get the item level
- *
- * @passcondition Test passes if returned item levels are the same as set levels
- * @}
- */
-START_TEST(utc_elm_index_item_level_set_p)
-{
-   Evas_Object *idx = NULL;
-   int level = -1;
-
-   idx = elm_index_add(main_win);
-   if (idx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an index object..", __FILE__, __LINE__);
-     }
-   elm_index_level_go(idx, 0);
-   elm_index_item_level_set(idx, 1);
-   level = elm_index_item_level_get(idx);
-   if (level != 1)
-     {
-        evas_object_del(idx);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   elm_index_item_level_set(idx, 0);
-   level = elm_index_item_level_get(idx);
-   evas_object_del(idx);
-   if (level != 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_index_item_level_set
- * @{
- * @objective Negative test case 1 checks whether function call with NULL as the index object
- * works properly and without any segmentation fault
- * @n Input Data:
- * @li NULL as the index object
- * @li 0 as the object level
- *
- * @procedure
- * @step 1 Set the item level as 0 for NULL instead of the index object
- *
- * @passcondition Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_index_item_level_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_index_item_level_set, NULL, 0);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_index_item_level_set()
-{
-   TCase *tcase = tcase_create("utc_elm_index_item_level_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_index_item_level_set_p);
-   tcase_add_test(tcase, utc_elm_index_item_level_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/index/utc_elm_index_omit_enabled_get.c b/TC/elementary/index/utc_elm_index_omit_enabled_get.c
deleted file mode 100644 (file)
index 9cc80a4..0000000
+++ /dev/null
@@ -1,139 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-/**
- * @addtogroup elm_index
- * @{
- * @defgroup elm_index_omit_enabled_get elm_index_omit_enabled_get()
- *
- * @precondition
- * @step 1 Initialize elementary
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-}
-
-static void
-teardown(void)
-{
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_index_omit_enabled_get
- * @{
- * @objective Positive test case 01 checks that function retrieve
- * whether the omit feature is enabled for a given index widget
- * @n Input Data:
- * @li obj The index object
- *
- * @procedure
- * @step 1 Create a main window
- * @step 2 Add an index object to the main window
- * @step 3 Enables the omit feature for a given index widget
- * @step 4 Check whether omit feature for a given index widget is
- * enabled
- * @step 5 Disable the omit feature for a given index widget
- * @step 6 Check whether omit feature for a given index widget is
- * disabled
- *
- * @passcondition Test passes function elm_index_omit_enabled_get
- * retrieve the current status(enabled/disabled) of omit feature
- * for a given index widget and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_index_omit_enabled_get_p_01)
-{
-
-   Evas_Object *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 *obj = elm_index_add(main_win);
-   if (obj == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an index widget..", __FILE__, __LINE__);
-
-        evas_object_del(main_win);
-
-        return;
-     }
-
-   Eina_Bool enabled = EINA_TRUE;
-
-   elm_index_omit_enabled_set(obj, enabled);
-   if (elm_index_omit_enabled_get(obj) != enabled)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-
-        evas_object_del(obj);
-        evas_object_del(main_win);
-
-        return;
-     }
-
-   enabled = EINA_FALSE;
-   elm_index_omit_enabled_set(obj, enabled);
-   if (elm_index_omit_enabled_get(obj) != enabled)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-
-        evas_object_del(obj);
-        evas_object_del(main_win);
-
-        return;
-     }
-
-   evas_object_del(obj);
-   evas_object_del(main_win);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_index_omit_enabled_get
- * @{
- * @objective Negative test case 01 checks whether function call with NULL instead
- * of index widget
- * @n Input Data:
- * @li obj NULL
- *
- * @procedure
- * @step 1 Call elm_index_omit_enabled_get passing NULL instead of object
- *
- * @passcondition Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_index_omit_enabled_get_n_01)
-{
-
-   if (elm_index_omit_enabled_get(NULL) != 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
-/**
- * @}
- */
-
-TCase * _utc_elm_index_omit_enabled_get()
-{
-   TCase *tcase = tcase_create("utc_elm_index_omit_enabled_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_index_omit_enabled_get_p_01);
-   tcase_add_test(tcase, utc_elm_index_omit_enabled_get_n_01);
-   return tcase;
-}
diff --git a/TC/elementary/index/utc_elm_index_omit_enabled_get_set.c b/TC/elementary/index/utc_elm_index_omit_enabled_get_set.c
new file mode 100644 (file)
index 0000000..ba15ffa
--- /dev/null
@@ -0,0 +1,159 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+
+/**
+ * @addtogroup elm_index
+ * @{
+ * @defgroup elm_index_omit_enabled_get elm_index_omit_enabled_get()
+ *
+ * @precondition
+ * @step 1 Initialize elementary
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+}
+
+static void
+teardown(void)
+{
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_index_omit_enabled_get
+ * @{
+ * @objective Positive test case 01 checks that function retrieve
+ * whether the omit feature is enabled for a given index widget
+ * @n Input Data:
+ * @li obj The index object
+ *
+ * @procedure
+ * @step 1 Create a main window
+ * @step 2 Add an index object to the main window
+ * @step 3 Enables the omit feature for a given index widget
+ * @step 4 Check whether omit feature for a given index widget is
+ * enabled
+ * @step 5 Disable the omit feature for a given index widget
+ * @step 6 Check whether omit feature for a given index widget is
+ * disabled
+ *
+ * @passcondition Test passes function elm_index_omit_enabled_get
+ * retrieve the current status(enabled/disabled) of omit feature
+ * for a given index widget and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_index_omit_enabled_get_p_01)
+{
+
+   Evas_Object *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 *obj = elm_index_add(main_win);
+   if (obj == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an index widget..", __FILE__, __LINE__);
+
+        evas_object_del(main_win);
+     }
+
+   Eina_Bool enabled = EINA_TRUE;
+
+   elm_index_omit_enabled_set(obj, enabled);
+   if (elm_index_omit_enabled_get(obj) != enabled)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+
+        evas_object_del(obj);
+        evas_object_del(main_win);
+     }
+
+   enabled = EINA_FALSE;
+   elm_index_omit_enabled_set(obj, enabled);
+   if (elm_index_omit_enabled_get(obj) != enabled)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+
+        evas_object_del(obj);
+        evas_object_del(main_win);
+     }
+
+   evas_object_del(obj);
+   evas_object_del(main_win);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_index_omit_enabled_get
+ * @{
+ * @objective Negative test case 01 checks whether function call with NULL instead
+ * of index widget
+ * @n Input Data:
+ * @li obj NULL
+ *
+ * @procedure
+ * @step 1 Call elm_index_omit_enabled_get passing NULL instead of object
+ *
+ * @passcondition Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_index_omit_enabled_get_n_01)
+{
+
+   if (elm_index_omit_enabled_get(NULL) != 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_index_omit_enabled_set
+ * @{
+ * @objective Negative test case 01 checks whether function call with NULL instead
+ * of index widget
+ * @n Input Data:
+ * @li obj NULL
+ * @li enabled If enabled is EINA_TRUE the omit feature is enabled,
+ * otherwise to disable it
+ *
+ * @procedure
+ * @step 1 Call elm_index_omit_enabled_set passing NULL instead of object
+ *
+ * @passcondition Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_index_omit_enabled_set_n_01)
+{
+
+   const Eina_Bool enabled = EINA_TRUE;
+   elm_index_omit_enabled_set(NULL, enabled);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ * @}
+ */
+
+TCase * _utc_elm_index_omit_enabled_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_index_omit_enabled_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_index_omit_enabled_get_p_01);
+   tcase_add_test(tcase, utc_elm_index_omit_enabled_get_n_01);
+   tcase_add_test(tcase, utc_elm_index_omit_enabled_set_n_01);
+   return tcase;
+}
diff --git a/TC/elementary/index/utc_elm_index_omit_enabled_set.c b/TC/elementary/index/utc_elm_index_omit_enabled_set.c
deleted file mode 100644 (file)
index 48d9996..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-/**
- * @addtogroup elm_index
- * @{
- * @defgroup elm_index_omit_enabled_set elm_index_omit_enabled_set()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-}
-
-static void
-teardown(void)
-{
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_index_omit_enabled_set
- * @{
- * @objective Positive test case 01 checks whether function enables/disables
- * the omit feature for a given index widget
- * @n Input Data:
- * @li obj The index object
- * @li enabled If enabled is EINA_TRUE the omit feature is enabled,
- * otherwise to disable it
- *
- * @procedure
- * @step 1 Create a main window
- * @step 2 Add an index object to the main window
- * @step 3 Enables the omit feature for a given index widget
- * @step 4 Check whether omit feature for a given index widget is
- * enabled
- * @step 5 Disable the omit feature for a given index widget
- * @step 6 Check whether omit feature for a given index widget is
- * disabled
- *
- * @passcondition Test passes function elm_index_omit_enabled_set
- * properly enable/disable the omit feature for a given index widget
- * and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_index_omit_enabled_set_p_01)
-{
-
-   Evas_Object *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 *obj = elm_index_add(main_win);
-   if (obj == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an index widget..", __FILE__, __LINE__);
-
-        evas_object_del(main_win);
-
-        return;
-     }
-
-   Eina_Bool enabled = EINA_TRUE;
-
-   elm_index_omit_enabled_set(obj, enabled);
-   if (elm_index_omit_enabled_get(obj) != enabled)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-
-        evas_object_del(obj);
-        evas_object_del(main_win);
-
-        return;
-     }
-
-   enabled = EINA_FALSE;
-   elm_index_omit_enabled_set(obj, enabled);
-   if (elm_index_omit_enabled_get(obj) != enabled)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-
-        evas_object_del(obj);
-        evas_object_del(main_win);
-
-        return;
-     }
-
-   evas_object_del(obj);
-   evas_object_del(main_win);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_index_omit_enabled_set
- * @{
- * @objective Negative test case 01 checks whether function call with NULL instead
- * of index widget
- * @n Input Data:
- * @li obj NULL
- * @li enabled If enabled is EINA_TRUE the omit feature is enabled,
- * otherwise to disable it
- *
- * @procedure
- * @step 1 Call elm_index_omit_enabled_set passing NULL instead of object
- *
- * @passcondition Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_index_omit_enabled_set_n_01)
-{
-
-   const Eina_Bool enabled = EINA_TRUE;
-   elm_index_omit_enabled_set(NULL, enabled);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- * @}
- */
-
-TCase * _utc_elm_index_omit_enabled_set()
-{
-   TCase *tcase = tcase_create("utc_elm_index_omit_enabled_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_index_omit_enabled_set_p_01);
-   tcase_add_test(tcase, utc_elm_index_omit_enabled_set_n_01);
-   return tcase;
-}
diff --git a/TC/elementary/index/utc_elm_index_standard_priority_get.c b/TC/elementary/index/utc_elm_index_standard_priority_get.c
deleted file mode 100644 (file)
index 56b7ae0..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_index
- * @{
- * @defgroup elm_index_standard_priority_get elm_index_standard_priority_get()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_index_standard_priority_get
- * @{
- * @objective Positive test case checks whether function call to get the priority value
- * for a given index object works properly
- * @n Input Data:
- * @li the index object
- *
- * @procedure
- * @step 1 Add an index object to the main window
- * @step 2 Set the priority to 0
- * @step 3 Get the priority of the index object
- * @step 4 Set the priority to 50
- * @step 5 Get the priority of the index object
- *
- * @passcondition Test passes if returned values are the same as set values
- * @}
- */
-START_TEST(utc_elm_index_standard_priority_get_p)
-{
-   Evas_Object *idx = NULL;
-   int priority = 0;
-   int ret = 0;
-
-   idx = elm_index_add(main_win);
-   if (idx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an index object..", __FILE__, __LINE__);
-     }
-   elm_index_standard_priority_set(idx, priority);
-   ret = elm_index_standard_priority_get(idx);
-   if (ret != priority)
-     {
-        evas_object_del(idx);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   priority = 50;
-
-   elm_index_standard_priority_set(idx, priority);
-   ret = elm_index_standard_priority_get(idx);
-   if (ret != priority)
-     {
-        evas_object_del(idx);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   evas_object_del(idx);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_index_standard_priority_get
- * @{
- * @objective Negative test case checks whether function call with NULL as the index object
- * works properly and without segmentation fault
- * @n Input Data: NULL instead of the index object
- *
- * @procedure
- * @step 1 Call function with NULL instead of the index object
- *
- * @passcondition Test passes if returned value is 0 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_index_standard_priority_get_n)
-{
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(0, elm_index_standard_priority_get, NULL))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_elm_index_standard_priority_get()
-{
-   TCase *tcase = tcase_create("utc_elm_index_standard_priority_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_index_standard_priority_get_p);
-   tcase_add_test(tcase, utc_elm_index_standard_priority_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/index/utc_elm_index_standard_priority_get_set.c b/TC/elementary/index/utc_elm_index_standard_priority_get_set.c
new file mode 100644 (file)
index 0000000..4b35886
--- /dev/null
@@ -0,0 +1,148 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_index
+ * @{
+ * @defgroup elm_index_standard_priority_get elm_index_standard_priority_get()
+ *
+ * @precondition
+ * @step 1 Initialize elementary
+ * @step 2 Create a main window
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_index_standard_priority_get
+ * @{
+ * @objective Positive test case checks whether function call to get the priority value
+ * for a given index object works properly
+ * @n Input Data:
+ * @li the index object
+ *
+ * @procedure
+ * @step 1 Add an index object to the main window
+ * @step 2 Set the priority to 0
+ * @step 3 Get the priority of the index object
+ * @step 4 Set the priority to 50
+ * @step 5 Get the priority of the index object
+ *
+ * @passcondition Test passes if returned values are the same as set values
+ * @}
+ */
+START_TEST(utc_elm_index_standard_priority_get_p)
+{
+   Evas_Object *idx = NULL;
+   int priority = 0;
+   int ret = 0;
+
+   idx = elm_index_add(main_win);
+   if (idx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an index object..", __FILE__, __LINE__);
+     }
+   elm_index_standard_priority_set(idx, priority);
+   ret = elm_index_standard_priority_get(idx);
+   if (ret != priority)
+     {
+        evas_object_del(idx);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   priority = 50;
+
+   elm_index_standard_priority_set(idx, priority);
+   ret = elm_index_standard_priority_get(idx);
+   if (ret != priority)
+     {
+        evas_object_del(idx);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   evas_object_del(idx);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_index_standard_priority_get
+ * @{
+ * @objective Negative test case checks whether function call with NULL as the index object
+ * works properly and without segmentation fault
+ * @n Input Data: NULL instead of the index object
+ *
+ * @procedure
+ * @step 1 Call function with NULL instead of the index object
+ *
+ * @passcondition Test passes if returned value is 0 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_index_standard_priority_get_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(0, elm_index_standard_priority_get, NULL))
+     {
+        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_index_standard_priority_set
+ * @{
+ * @objective Negative test case checks whether function call with NULL as the index object
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL as the index object
+ * @li -100 as the value to set priority
+ *
+ * @procedure
+ * @step 1 Call function with NULL instead of the index object
+ *
+ * @passcondition Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_index_standard_priority_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_index_standard_priority_set, NULL, -100);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_elm_index_standard_priority_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_index_standard_priority_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_index_standard_priority_get_p);
+   tcase_add_test(tcase, utc_elm_index_standard_priority_get_n);
+   tcase_add_test(tcase, utc_elm_index_standard_priority_set_n);
+   return tcase;
+}
diff --git a/TC/elementary/index/utc_elm_index_standard_priority_set.c b/TC/elementary/index/utc_elm_index_standard_priority_set.c
deleted file mode 100644 (file)
index d756bcf..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_index
- * @{
- * @defgroup elm_index_standard_priority_set elm_index_standard_priority_set()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_index_standard_priority_set
- * @{
- * @objective Positive test case checks whether function call to set the priority value
- * for a given index object works properly
- * @n Input Data:
- * @li the index object
- * @li 0/50 for first/second function call
- *
- * @procedure
- * @step 1 Add an index object to the main window
- * @step 2 Set the priority to 0
- * @step 3 Get the priority of the index object
- * @step 4 Set the priority to 50
- * @step 5 Get the priority of the index object
- *
- * @passcondition Test passes if returned values are the same as set values
- * @}
- */
-START_TEST(utc_elm_index_standard_priority_set_p)
-{
-   Evas_Object *idx = NULL;
-   int priority = 0;
-   int ret = 0;
-
-   idx = elm_index_add(main_win);
-   if (idx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an index object..", __FILE__, __LINE__);
-     }
-   elm_index_standard_priority_set(idx, priority);
-   ret = elm_index_standard_priority_get(idx);
-   if (ret != priority)
-     {
-        evas_object_del(idx);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   priority = 50;
-
-   elm_index_standard_priority_set(idx, priority);
-   ret = elm_index_standard_priority_get(idx);
-   if (ret != priority)
-     {
-        evas_object_del(idx);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   evas_object_del(idx);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_index_standard_priority_set
- * @{
- * @objective Negative test case checks whether function call with NULL as the index object
- * works properly and without segmentation fault
- * @n Input Data:
- * @li NULL as the index object
- * @li -100 as the value to set priority
- *
- * @procedure
- * @step 1 Call function with NULL instead of the index object
- *
- * @passcondition Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_index_standard_priority_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_index_standard_priority_set, NULL, -100);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_elm_index_standard_priority_set()
-{
-   TCase *tcase = tcase_create("utc_elm_index_standard_priority_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_index_standard_priority_set_p);
-   tcase_add_test(tcase, utc_elm_index_standard_priority_set_n);
-   return tcase;
-}