utc_elm_panes_xxxx: Merge TCs to reduce duplicate test operations 55/189055/2
authorApurv Khatri <apurv.khatri@samsung.com>
Thu, 13 Sep 2018 05:21:28 +0000 (10:51 +0530)
committerHermet Park <chuneon.park@samsung.com>
Fri, 21 Sep 2018 07:38:26 +0000 (07:38 +0000)
Change-Id: I134c1678cd3d62b58495de23aa30fb8aa33afd43

17 files changed:
TC/elementary/panes/tslist
TC/elementary/panes/tslist_mobile
TC/elementary/panes/tslist_tv
TC/elementary/panes/tslist_wear
TC/elementary/panes/utc_elm_panes_add.c [deleted file]
TC/elementary/panes/utc_elm_panes_content_left_size_get.c [deleted file]
TC/elementary/panes/utc_elm_panes_content_left_size_get_set.c [new file with mode: 0644]
TC/elementary/panes/utc_elm_panes_content_left_size_set.c [deleted file]
TC/elementary/panes/utc_elm_panes_content_right_size_get.c [deleted file]
TC/elementary/panes/utc_elm_panes_content_right_size_get_set.c [new file with mode: 0644]
TC/elementary/panes/utc_elm_panes_content_right_size_set.c [deleted file]
TC/elementary/panes/utc_elm_panes_fixed_get.c [deleted file]
TC/elementary/panes/utc_elm_panes_fixed_get_set.c [new file with mode: 0644]
TC/elementary/panes/utc_elm_panes_fixed_set.c [deleted file]
TC/elementary/panes/utc_elm_panes_horizontal_get.c [deleted file]
TC/elementary/panes/utc_elm_panes_horizontal_get_set.c [new file with mode: 0644]
TC/elementary/panes/utc_elm_panes_horizontal_set.c [deleted file]

index 2f5269d2f6a094b3ae3a7db492a1f574a32b0159..33c3b613c1ad60a90bef1b722ce462d04890be95 100644 (file)
@@ -1,11 +1,6 @@
-utc_elm_panes_add.c
-utc_elm_panes_content_left_size_get.c
-utc_elm_panes_content_left_size_set.c
-utc_elm_panes_fixed_get.c
-utc_elm_panes_fixed_set.c
-utc_elm_panes_horizontal_get.c
-utc_elm_panes_horizontal_set.c
-utc_elm_panes_content_right_size_get.c
-utc_elm_panes_content_right_size_set.c
+utc_elm_panes_content_left_size_get_set.c
+utc_elm_panes_fixed_get_set.c
+utc_elm_panes_horizontal_get_set.c
+utc_elm_panes_content_right_size_get_set.c
 utc_elm_panes_content_left_right.c
 utc_elm_panes_content_left_right_unset.c
index 2f5269d2f6a094b3ae3a7db492a1f574a32b0159..33c3b613c1ad60a90bef1b722ce462d04890be95 100644 (file)
@@ -1,11 +1,6 @@
-utc_elm_panes_add.c
-utc_elm_panes_content_left_size_get.c
-utc_elm_panes_content_left_size_set.c
-utc_elm_panes_fixed_get.c
-utc_elm_panes_fixed_set.c
-utc_elm_panes_horizontal_get.c
-utc_elm_panes_horizontal_set.c
-utc_elm_panes_content_right_size_get.c
-utc_elm_panes_content_right_size_set.c
+utc_elm_panes_content_left_size_get_set.c
+utc_elm_panes_fixed_get_set.c
+utc_elm_panes_horizontal_get_set.c
+utc_elm_panes_content_right_size_get_set.c
 utc_elm_panes_content_left_right.c
 utc_elm_panes_content_left_right_unset.c
index d32fd624d6dd568bccd0d63fc94a86c4313a2da0..c58a71cf755466724acb13c9ece6d8f5bd0744eb 100644 (file)
@@ -1,11 +1,6 @@
-utc_elm_panes_add.c
-utc_elm_panes_content_left_size_get.c
-utc_elm_panes_content_left_size_set.c
-utc_elm_panes_fixed_get.c
-utc_elm_panes_fixed_set.c
-utc_elm_panes_horizontal_get.c
-utc_elm_panes_horizontal_set.c
-utc_elm_panes_content_right_size_get.c
-utc_elm_panes_content_right_size_set.c
+utc_elm_panes_content_left_size_get_set.c
+utc_elm_panes_fixed_get_set.c
+utc_elm_panes_horizontal_get_set.c
+utc_elm_panes_content_right_size_get_set.c
 #utc_elm_panes_content_left_right.c
 #utc_elm_panes_content_left_right_unset.c
index d32fd624d6dd568bccd0d63fc94a86c4313a2da0..c58a71cf755466724acb13c9ece6d8f5bd0744eb 100644 (file)
@@ -1,11 +1,6 @@
-utc_elm_panes_add.c
-utc_elm_panes_content_left_size_get.c
-utc_elm_panes_content_left_size_set.c
-utc_elm_panes_fixed_get.c
-utc_elm_panes_fixed_set.c
-utc_elm_panes_horizontal_get.c
-utc_elm_panes_horizontal_set.c
-utc_elm_panes_content_right_size_get.c
-utc_elm_panes_content_right_size_set.c
+utc_elm_panes_content_left_size_get_set.c
+utc_elm_panes_fixed_get_set.c
+utc_elm_panes_horizontal_get_set.c
+utc_elm_panes_content_right_size_get_set.c
 #utc_elm_panes_content_left_right.c
 #utc_elm_panes_content_left_right_unset.c
diff --git a/TC/elementary/panes/utc_elm_panes_add.c b/TC/elementary/panes/utc_elm_panes_add.c
deleted file mode 100644 (file)
index 3b29cc0..0000000
+++ /dev/null
@@ -1,109 +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_panes
- * @{
- * @defgroup elm_panes_add elm_panes_add()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_panes_add
- * @{
- * @objective Positive Test case check if create a new panes widget
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the parent window object
- *
- * @procedure
- * @step 1 Create a new panes widget
- *
- * @passcondition Returned value is not NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_panes_add_p)
-{
-   Evas_Object *panes = NULL;
-
-   if (main_win == NULL)
-     {
-        return;
-     }
-   panes = elm_panes_add(main_win);
-   if (panes == 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
-
-/**
- * @addtogroup elm_panes_add
- * @{
- * @objective Negative Test case checks if call test function with NULL instead of the parent object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the parent object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the parent object
- *
- * @passcondition Returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_panes_add_n)
-{
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_panes_add, main_win))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_panes_add()
-{
-   TCase *tcase = tcase_create("utc_elm_panes_add");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_panes_add_p);
-   tcase_add_test(tcase, utc_elm_panes_add_n);
-   return tcase;
-}
diff --git a/TC/elementary/panes/utc_elm_panes_content_left_size_get.c b/TC/elementary/panes/utc_elm_panes_content_left_size_get.c
deleted file mode 100644 (file)
index 8bd78c0..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <math.h>
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *panes = NULL;
-
-/**
- * @addtogroup elm_panes
- * @{
- * @defgroup elm_panes_content_left_size_get elm_panes_content_left_size_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new panes widget
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   panes = elm_panes_add(main_win);
-   if (panes == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a panes widget..", __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_panes_content_left_size_get
- * @{
- * @objective Positive Test case checks if set the size proportion of panes
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the panes widget
- *
- * @procedure
- * @step 1 Set the size proportion of panes
- * @step 2 Get the size proportion of panes
- *
- * @passcondition Returned value is 0.2 in DBL_EPSILON range and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_panes_content_left_size_get_p)
-{
-   double size = 0.0;
-
-   if (panes == NULL)
-     {
-        return;
-     }
-   elm_panes_content_left_size_set(panes, 0.2);
-   size = elm_panes_content_left_size_get(panes);
-   if (fabs(size - 0.2) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_panes_content_left_size_get
- * @{
- * @objective Negative Test case checks if call test function with NULL instead of the panes widget
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the panes widget
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the panes widget
- *
- * @passcondition Returned value is 0.0 in DBL_EPSILON range and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_panes_content_left_size_get_n)
-{
-   double size = 0.0;
-
-   size = elm_panes_content_left_size_get(NULL);
-   if (fabs(size) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_panes_content_left_size_get()
-{
-   TCase *tcase = tcase_create("utc_elm_panes_content_left_size_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_panes_content_left_size_get_p);
-   tcase_add_test(tcase, utc_elm_panes_content_left_size_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/panes/utc_elm_panes_content_left_size_get_set.c b/TC/elementary/panes/utc_elm_panes_content_left_size_get_set.c
new file mode 100644 (file)
index 0000000..d239c3c
--- /dev/null
@@ -0,0 +1,163 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include <math.h>
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Evas_Object *panes = NULL;
+
+/**
+ * @addtogroup elm_panes
+ * @{
+ * @defgroup elm_panes_content_left_size_get elm_panes_content_left_size_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a new panes widget
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   panes = elm_panes_add(main_win);
+   if (panes == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a panes widget..", __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_panes_content_left_size_get
+ * @{
+ * @objective Positive Test case checks if set the size proportion of panes
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the panes widget
+ *
+ * @procedure
+ * @step 1 Set the size proportion of panes
+ * @step 2 Get the size proportion of panes
+ *
+ * @passcondition Returned value is 0.2 in DBL_EPSILON range and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_panes_content_left_size_get_p)
+{
+   double size = 0.0;
+
+   elm_panes_content_left_size_set(panes, 0.2);
+   size = elm_panes_content_left_size_get(panes);
+   if (fabs(size - 0.2) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_panes_content_left_size_get
+ * @{
+ * @objective Negative Test case checks if call test function with NULL instead of the panes widget
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the panes widget
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the panes widget
+ *
+ * @passcondition Returned value is 0.0 in DBL_EPSILON range and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_panes_content_left_size_get_n)
+{
+   double size = 0.0;
+
+   size = elm_panes_content_left_size_get(NULL);
+   if (fabs(size) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_panes_content_left_size_set
+ * @{
+ * @objective Negative Test case checks if call test function with invalid parameters
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL, the panes object
+ * @li 0.2, -0.2
+ *
+ * @procedure
+ * @step 1 Call test function with invalid parameters
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_panes_content_left_size_set_n)
+{
+   elm_panes_content_left_size_set(NULL, 0.2);
+   elm_panes_content_left_size_set(panes, -0.2);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_panes_add
+ * @{
+ * @objective Negative Test case checks if call test function with NULL instead of the parent object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the parent object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the parent object
+ *
+ * @passcondition Returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_panes_add_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_panes_add, main_win))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_panes_content_left_size_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_panes_content_left_size_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_panes_content_left_size_get_p);
+   tcase_add_test(tcase, utc_elm_panes_content_left_size_get_n);
+   tcase_add_test(tcase, utc_elm_panes_content_left_size_set_n);
+   tcase_add_test(tcase, utc_elm_panes_add_n);
+   return tcase;
+}
diff --git a/TC/elementary/panes/utc_elm_panes_content_left_size_set.c b/TC/elementary/panes/utc_elm_panes_content_left_size_set.c
deleted file mode 100644 (file)
index 67a12ad..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <math.h>
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *panes = NULL;
-
-/**
- * @addtogroup elm_panes
- * @{
- * @defgroup elm_panes_content_left_size_set elm_panes_content_left_size_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new panes widget
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   panes = elm_panes_add(main_win);
-   if (panes == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a panes widget..", __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_panes_content_left_size_set
- * @{
- * @objective Positive Test case checks if set the size proportion of panes
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the panes widget
- * @li 0.2
- *
- * @procedure
- * @step 1 Set the size proportion of panes
- * @step 2 Get the size proportion of panes
- *
- * @passcondition Returned value is 0.2 in DBL_EPSILON range and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_panes_content_left_size_set_p)
-{
-   double size = 0.0;
-
-   if (panes == NULL)
-     {
-        return;
-     }
-   elm_panes_content_left_size_set(panes, 0.2);
-   size = elm_panes_content_left_size_get(panes);
-   if (fabs(size - 0.2) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_panes_content_left_size_set
- * @{
- * @objective Negative Test case checks if call test function with invalid parameters
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL, the panes object
- * @li 0.2, -0.2
- *
- * @procedure
- * @step 1 Call test function with invalid parameters
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_panes_content_left_size_set_n)
-{
-   if (panes == NULL)
-     {
-        return;
-     }
-   elm_panes_content_left_size_set(NULL, 0.2);
-   elm_panes_content_left_size_set(panes, -0.2);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_panes_content_left_size_set()
-{
-   TCase *tcase = tcase_create("utc_elm_panes_content_left_size_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_panes_content_left_size_set_p);
-   tcase_add_test(tcase, utc_elm_panes_content_left_size_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/panes/utc_elm_panes_content_right_size_get.c b/TC/elementary/panes/utc_elm_panes_content_right_size_get.c
deleted file mode 100644 (file)
index 390da5b..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <math.h>
-
-static Evas_Object *main_win;
-
-/**
- * @addtogroup elm_panes
- * @{
- * @defgroup elm_panes_content_right_size_get elm_panes_content_right_size_get()
- *
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create 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 (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_panes_content_right_size_get
- * @{
- * @objective Positive Test case 01: Get size of the right side of the panes
- * @n Input data:
- * @li valid Evas_Object (panes)
- *
- * @procedure
- * @step 1 Add panes to main win
- * @step 2 Set content_right_size of panes using elm_panes_content_right_size_set
- * @step 3 Get the content_right_size set by elm_panes_content_right_size_set function
- *
- * @passcondition: If same content_right_size value is obtained by elm_panes_content_right_size_get function
- * as set by elm_panes_content_right_size_set function (size is 0.2) then elm_panes_content_right_size_get passes in positive test else fails
- * @}
- */
-
-START_TEST(utc_UIFW_elm_panes_content_right_size_get_p_01)
-{
-   Evas_Object *panes = NULL;
-   double size;
-
-   panes = elm_panes_add(main_win);
-   elm_panes_content_right_size_set(panes, 0.2);
-   size = elm_panes_content_right_size_get(panes);
-   evas_object_del(panes);
-   if (fabs(size - 0.2) > DBL_EPSILON)
-   {
-      ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-      return;
-   }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_panes_content_right_size_get
- * @{
- * @objective Negative Test case 01: Call function with NULL as an argument
- * @n Input data:
- * @li invalid Evas_Object (NULL)
- *
- * @procedure
- * @step 1 Call function with NULL as an argument
- *
- * @passcondition: If function returns value different than 0.0 (0.0 - left content size) or cause segmentation fault test fails
- * @}
- */
-
-START_TEST(utc_UIFW_elm_panes_content_right_size_get_n_01)
-{
-   double size = -1.0;
-   size = elm_panes_content_right_size_get(NULL);
-   if (fabs(size) > DBL_EPSILON)
-   {
-      ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..size: %d", __FILE__, __LINE__, size);
-      return;
-   }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_elm_panes_content_right_size_get()
-{
-   TCase *tcase = tcase_create("utc_elm_panes_content_right_size_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_UIFW_elm_panes_content_right_size_get_p_01);
-   tcase_add_test(tcase, utc_UIFW_elm_panes_content_right_size_get_n_01);
-   return tcase;
-}
diff --git a/TC/elementary/panes/utc_elm_panes_content_right_size_get_set.c b/TC/elementary/panes/utc_elm_panes_content_right_size_get_set.c
new file mode 100644 (file)
index 0000000..f98022e
--- /dev/null
@@ -0,0 +1,203 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include <math.h>
+
+static Evas_Object *main_win;
+
+/**
+ * @addtogroup elm_panes
+ * @{
+ * @defgroup elm_panes_content_right_size_set elm_panes_content_right_size_set()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create 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 (main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_panes_content_right_size_set
+ * @{
+ * @objective Positive Test case 01: Test checks if the function correctly set the size of the side of the panes
+ * @n Input data:
+ * @li valid Evas_Object (panes)
+ * @li size is 0.2
+ *
+ * @procedure
+ * @step 1 Add panes to main win
+ * @step 2 Set content_right_size of panes using elm_panes_content_right_size_set
+ * @step 3 Get the content_right_size set by elm_panes_content_right_size_set function
+ *
+ * @passcondition: If same content_right_size value is obtained by elm_panes_content_right_size_get function
+ * as set by elm_panes_content_right_size_set function then elm_panes_content_right_size_set passes in positive test else fails
+ * @}
+ */
+START_TEST(utc_elm_panes_content_right_size_set_p_01)
+{
+   Evas_Object *panes = NULL;
+   double size;
+
+   panes = elm_panes_add(main_win);
+   elm_panes_content_right_size_set(panes, 0.2);
+   size = elm_panes_content_right_size_get(panes);
+   evas_object_del(panes);
+   if (fabs(size - 0.2) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_panes_content_right_size_set
+ * @{
+ * @objective Negative Test case 01: Call function with NULL as an argument
+ * @n Input data:
+ * @li invalid Evas_Object (NULL)
+ * @li size is -0.5
+ *
+ * @procedure
+ * @step 1 Call function with NULL as an argument
+ *
+ * @passcondition: Test passes if there is no Segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_panes_content_right_size_set_n_01)
+{
+   elm_panes_content_right_size_set(NULL, -0.5);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_panes_content_right_size_set
+ * @{
+ * @objective Negative Test case 02: Call function with size less than 0.0
+ * @n Input data:
+ * @li valid Evas_Object (panes)
+ * @li size is -0.5
+ *
+ * @procedure
+ * @step 1 Add panes to main win
+ * @step 2 Set content_right_size of panes using elm_panes_content_right_size_set
+ * @step 3 Get the content_right_size set by elm_panes_content_right_size_set function
+ *
+ * @passcondition: Test passes if there is no Segmentation fault and
+ * value is obtained by elm_panes_content_right_size_get function equal to 0.0 (min size)
+ * @}
+ */
+START_TEST(utc_elm_panes_content_right_size_set_n_02)
+{
+   Evas_Object *panes = NULL;
+   double invalid_size = -0.5;
+   double min_size = 0.0;
+   double size;
+
+   panes = elm_panes_add(main_win);
+   elm_panes_content_right_size_set(panes, invalid_size);
+   size = elm_panes_content_right_size_get(panes);
+   if (fabs(size - min_size) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_panes_content_right_size_set
+ * @{
+ * @objective Negative Test case 03: Call function with size bigger than 1.0
+ * @n Input data:
+ * @li valid Evas_Object (panes)
+ * @li size is 1.5
+ *
+ * @procedure
+ * @step 1 Add panes to main win
+ * @step 2 Set content_right_size of panes using elm_panes_content_right_size_set
+ * @step 3 Get the content_right_size set by elm_panes_content_right_size_set function
+ *
+ * @passcondition: Test passes if there is no Segmentation fault and
+ * value is obtained by elm_panes_content_right_size_get function equal to 1.0 (max size)
+ * @}
+ */
+START_TEST(utc_elm_panes_content_right_size_set_n_03)
+{
+   Evas_Object *panes = NULL;
+   double invalid_size = 1.5;
+   double max_size = 1.0;
+   double size;
+
+   panes = elm_panes_add(main_win);
+   elm_panes_content_right_size_set(panes, invalid_size);
+   size = elm_panes_content_right_size_get(panes);
+   if (fabs(size - max_size) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ * @}
+ */
+
+/**
+ * @addtogroup elm_panes_content_right_size_get
+ * @{
+ * @objective Negative Test case 01: Call function with NULL as an argument
+ * @n Input data:
+ * @li invalid Evas_Object (NULL)
+ *
+ * @procedure
+ * @step 1 Call function with NULL as an argument
+ *
+ * @passcondition: If function returns value different than 0.0 (0.0 - left content size) or cause segmentation fault test fails
+ * @}
+ */
+
+START_TEST(utc_elm_panes_content_right_size_get_n_01)
+{
+   double size = -1.0;
+   size = elm_panes_content_right_size_get(NULL);
+   if (fabs(size) > DBL_EPSILON)
+   {
+      ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..size: %d", __FILE__, __LINE__, size);
+   }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+TCase * _utc_elm_panes_content_right_size_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_panes_content_right_size_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_panes_content_right_size_set_p_01);
+   tcase_add_test(tcase, utc_elm_panes_content_right_size_set_n_01);
+   tcase_add_test(tcase, utc_elm_panes_content_right_size_set_n_02);
+   tcase_add_test(tcase, utc_elm_panes_content_right_size_set_n_03);
+   tcase_add_test(tcase, utc_elm_panes_content_right_size_get_n_01);
+   return tcase;
+}
diff --git a/TC/elementary/panes/utc_elm_panes_content_right_size_set.c b/TC/elementary/panes/utc_elm_panes_content_right_size_set.c
deleted file mode 100644 (file)
index be4c4c5..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <math.h>
-
-static Evas_Object *main_win;
-
-/**
- * @addtogroup elm_panes
- * @{
- * @defgroup elm_panes_content_right_size_set elm_panes_content_right_size_set()
- *
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create 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 (main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_panes_content_right_size_set
- * @{
- * @objective Positive Test case 01: Test checks if the function correctly set the size of the side of the panes
- * @n Input data:
- * @li valid Evas_Object (panes)
- * @li size is 0.2
- *
- * @procedure
- * @step 1 Add panes to main win
- * @step 2 Set content_right_size of panes using elm_panes_content_right_size_set
- * @step 3 Get the content_right_size set by elm_panes_content_right_size_set function
- *
- * @passcondition: If same content_right_size value is obtained by elm_panes_content_right_size_get function
- * as set by elm_panes_content_right_size_set function then elm_panes_content_right_size_set passes in positive test else fails
- * @}
- */
-START_TEST(utc_UIFW_elm_panes_content_right_size_set_p_01)
-{
-   Evas_Object *panes = NULL;
-   double size;
-
-   panes = elm_panes_add(main_win);
-   elm_panes_content_right_size_set(panes, 0.2);
-   size = elm_panes_content_right_size_get(panes);
-   evas_object_del(panes);
-   if (fabs(size - 0.2) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_panes_content_right_size_set
- * @{
- * @objective Negative Test case 01: Call function with NULL as an argument
- * @n Input data:
- * @li invalid Evas_Object (NULL)
- * @li size is -0.5
- *
- * @procedure
- * @step 1 Call function with NULL as an argument
- *
- * @passcondition: Test passes if there is no Segmentation fault
- * @}
- */
-START_TEST(utc_UIFW_elm_panes_content_right_size_set_n_01)
-{
-   elm_panes_content_right_size_set(NULL, -0.5);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_panes_content_right_size_set
- * @{
- * @objective Negative Test case 02: Call function with size less than 0.0
- * @n Input data:
- * @li valid Evas_Object (panes)
- * @li size is -0.5
- *
- * @procedure
- * @step 1 Add panes to main win
- * @step 2 Set content_right_size of panes using elm_panes_content_right_size_set
- * @step 3 Get the content_right_size set by elm_panes_content_right_size_set function
- *
- * @passcondition: Test passes if there is no Segmentation fault and
- * value is obtained by elm_panes_content_right_size_get function equal to 0.0 (min size)
- * @}
- */
-START_TEST(utc_UIFW_elm_panes_content_right_size_set_n_02)
-{
-   Evas_Object *panes = NULL;
-   double invalid_size = -0.5;
-   double min_size = 0.0;
-   double size;
-
-   panes = elm_panes_add(main_win);
-   elm_panes_content_right_size_set(panes, invalid_size);
-   size = elm_panes_content_right_size_get(panes);
-   if (fabs(size - min_size) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_panes_content_right_size_set
- * @{
- * @objective Negative Test case 03: Call function with size bigger than 1.0
- * @n Input data:
- * @li valid Evas_Object (panes)
- * @li size is 1.5
- *
- * @procedure
- * @step 1 Add panes to main win
- * @step 2 Set content_right_size of panes using elm_panes_content_right_size_set
- * @step 3 Get the content_right_size set by elm_panes_content_right_size_set function
- *
- * @passcondition: Test passes if there is no Segmentation fault and
- * value is obtained by elm_panes_content_right_size_get function equal to 1.0 (max size)
- * @}
- */
-START_TEST(utc_UIFW_elm_panes_content_right_size_set_n_03)
-{
-   Evas_Object *panes = NULL;
-   double invalid_size = 1.5;
-   double max_size = 1.0;
-   double size;
-
-   panes = elm_panes_add(main_win);
-   elm_panes_content_right_size_set(panes, invalid_size);
-   size = elm_panes_content_right_size_get(panes);
-   if (fabs(size - max_size) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- * @}
- */
-
-TCase * _utc_elm_panes_content_right_size_set()
-{
-   TCase *tcase = tcase_create("utc_elm_panes_content_right_size_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_UIFW_elm_panes_content_right_size_set_p_01);
-   tcase_add_test(tcase, utc_UIFW_elm_panes_content_right_size_set_n_01);
-   tcase_add_test(tcase, utc_UIFW_elm_panes_content_right_size_set_n_02);
-   tcase_add_test(tcase, utc_UIFW_elm_panes_content_right_size_set_n_03);
-   return tcase;
-}
diff --git a/TC/elementary/panes/utc_elm_panes_fixed_get.c b/TC/elementary/panes/utc_elm_panes_fixed_get.c
deleted file mode 100644 (file)
index b6d652c..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *panes = NULL;
-
-/**
- * @addtogroup elm_panes
- * @{
- * @defgroup elm_panes_fixed_get elm_panes_fixed_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new panes widget
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   panes = elm_panes_add(main_win);
-   if (panes == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a panes widget..", __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_panes_fixed_get
- * @{
- * @objective Positive Test case checks if get the resize mode
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the panes widget
- *
- * @procedure
- * @step 1 Set the resize mode to EINA_TRUE
- * @step 2 Get the resize mode
- * @step 3 Set the resize mode to EINA_FALSE
- * @step 4 Get the resize mode
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_panes_fixed_get_p)
-{
-   Eina_Bool fixed = EINA_FALSE;
-
-   if (panes == NULL)
-     {
-        return;
-     }
-   elm_panes_fixed_set(panes, EINA_TRUE);
-   fixed = elm_panes_fixed_get(panes);
-   if (fixed != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_panes_fixed_set(panes, EINA_FALSE);
-   fixed = elm_panes_fixed_get(panes);
-   if (fixed != 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_panes_fixed_get
- * @{
- * @objective Negative Test case checks if call test function with NULL instead of the panes widget
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the panes widget
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the panes widget
- *
- * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_panes_fixed_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_panes_fixed_get, panes) == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_panes_fixed_get()
-{
-   TCase *tcase = tcase_create("utc_elm_panes_fixed_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_panes_fixed_get_p);
-   tcase_add_test(tcase, utc_elm_panes_fixed_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/panes/utc_elm_panes_fixed_get_set.c b/TC/elementary/panes/utc_elm_panes_fixed_get_set.c
new file mode 100644 (file)
index 0000000..72ae592
--- /dev/null
@@ -0,0 +1,143 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Evas_Object *panes = NULL;
+
+/**
+ * @addtogroup elm_panes
+ * @{
+ * @defgroup elm_panes_fixed_get elm_panes_fixed_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a new panes widget
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   panes = elm_panes_add(main_win);
+   if (panes == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a panes widget..", __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_panes_fixed_get
+ * @{
+ * @objective Positive Test case checks if get the resize mode
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the panes widget
+ *
+ * @procedure
+ * @step 1 Set the resize mode to EINA_TRUE
+ * @step 2 Get the resize mode
+ * @step 3 Set the resize mode to EINA_FALSE
+ * @step 4 Get the resize mode
+ *
+ * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_panes_fixed_get_p)
+{
+   Eina_Bool fixed = EINA_FALSE;
+
+   elm_panes_fixed_set(panes, EINA_TRUE);
+   fixed = elm_panes_fixed_get(panes);
+   if (fixed != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_panes_fixed_set(panes, EINA_FALSE);
+   fixed = elm_panes_fixed_get(panes);
+   if (fixed != 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_panes_fixed_get
+ * @{
+ * @objective Negative Test case checks if call test function with NULL instead of the panes widget
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the panes widget
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the panes widget
+ *
+ * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_panes_fixed_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_panes_fixed_get, panes) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_panes_fixed_set
+ * @{
+ * @objective Negative Test case checks if call test function with NULL instead of the panes widget
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the panes widget
+ * @li EINA_TRUE
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the panes widget
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_panes_fixed_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_panes_fixed_set, panes, EINA_TRUE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_panes_fixed_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_panes_fixed_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_panes_fixed_get_p);
+   tcase_add_test(tcase, utc_elm_panes_fixed_get_n);
+   tcase_add_test(tcase, utc_elm_panes_fixed_set_n);
+   return tcase;
+}
diff --git a/TC/elementary/panes/utc_elm_panes_fixed_set.c b/TC/elementary/panes/utc_elm_panes_fixed_set.c
deleted file mode 100644 (file)
index bf1af76..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *panes = NULL;
-
-/**
- * @addtogroup elm_panes
- * @{
- * @defgroup elm_panes_fixed_set elm_panes_fixed_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new panes widget
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   panes = elm_panes_add(main_win);
-   if (panes == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a panes widget..", __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_panes_fixed_set
- * @{
- * @objective Positive Test case checks if set the resize mode
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the panes widget
- * @li EINA_TRUE, EINA_FALSE
- *
- * @procedure
- * @step 1 Set the resize mode to EINA_TRUE
- * @step 2 Get the resize mode
- * @step 3 Set the resize mode to EINA_FALSE
- * @step 4 Get the resize mode
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_panes_fixed_set_p)
-{
-   Eina_Bool fixed = EINA_FALSE;
-
-   if (panes == NULL)
-     {
-        return;
-     }
-   elm_panes_fixed_set(panes, EINA_TRUE);
-   fixed = elm_panes_fixed_get(panes);
-   if (fixed != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_panes_fixed_set(panes, EINA_FALSE);
-   fixed = elm_panes_fixed_get(panes);
-   if (fixed != 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_panes_fixed_set
- * @{
- * @objective Negative Test case checks if call test function with NULL instead of the panes widget
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the panes widget
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the panes widget
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_panes_fixed_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_panes_fixed_set, panes, EINA_TRUE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_panes_fixed_set()
-{
-   TCase *tcase = tcase_create("utc_elm_panes_fixed_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_panes_fixed_set_p);
-   tcase_add_test(tcase, utc_elm_panes_fixed_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/panes/utc_elm_panes_horizontal_get.c b/TC/elementary/panes/utc_elm_panes_horizontal_get.c
deleted file mode 100644 (file)
index a23a651..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *panes = NULL;
-
-/**
- * @addtogroup elm_panes
- * @{
- * @defgroup elm_panes_horizontal_get elm_panes_horizontal_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new panes widget
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   panes = elm_panes_add(main_win);
-   if (panes == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a panes widget..", __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_panes_horizontal_get
- * @{
- * @objective Positive Test case checks if get horizontal orientation
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the panes widget
- *
- * @procedure
- * @step 1 Set the horizontal split direction of a given panes widget
- * @step 2 Get the split direction of a given widget
- * @step 3 Set the vertical split direction of a given panes widget
- * @step 4 Get the split direction of a given widget
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_panes_horizontal_get_p)
-{
-   Eina_Bool horizontal = EINA_FALSE;
-
-   if (panes == NULL)
-     {
-        return;
-     }
-   elm_panes_horizontal_set(panes, EINA_TRUE);
-   horizontal = elm_panes_horizontal_get(panes);
-   if (horizontal != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_panes_horizontal_set(panes, EINA_FALSE);
-   horizontal = elm_panes_horizontal_get(panes);
-   if (horizontal != 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_panes_horizontal_get
- * @{
- * @objective Negative Test case checks if call test function with NULL instead of the panes widget
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the panes widget
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the panes widget
- *
- * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_panes_horizontal_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_panes_horizontal_get, panes) == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_panes_horizontal_get()
-{
-   TCase *tcase = tcase_create("utc_elm_panes_horizontal_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_panes_horizontal_get_p);
-   tcase_add_test(tcase, utc_elm_panes_horizontal_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/panes/utc_elm_panes_horizontal_get_set.c b/TC/elementary/panes/utc_elm_panes_horizontal_get_set.c
new file mode 100644 (file)
index 0000000..8bd0848
--- /dev/null
@@ -0,0 +1,143 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Evas_Object *panes = NULL;
+
+/**
+ * @addtogroup elm_panes
+ * @{
+ * @defgroup elm_panes_horizontal_get elm_panes_horizontal_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a new panes widget
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   panes = elm_panes_add(main_win);
+   if (panes == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a panes widget..", __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_panes_horizontal_get
+ * @{
+ * @objective Positive Test case checks if get horizontal orientation
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the panes widget
+ *
+ * @procedure
+ * @step 1 Set the horizontal split direction of a given panes widget
+ * @step 2 Get the split direction of a given widget
+ * @step 3 Set the vertical split direction of a given panes widget
+ * @step 4 Get the split direction of a given widget
+ *
+ * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_panes_horizontal_get_p)
+{
+   Eina_Bool horizontal = EINA_FALSE;
+
+   elm_panes_horizontal_set(panes, EINA_TRUE);
+   horizontal = elm_panes_horizontal_get(panes);
+   if (horizontal != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_panes_horizontal_set(panes, EINA_FALSE);
+   horizontal = elm_panes_horizontal_get(panes);
+   if (horizontal != 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_panes_horizontal_get
+ * @{
+ * @objective Negative Test case checks if call test function with NULL instead of the panes widget
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the panes widget
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the panes widget
+ *
+ * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_panes_horizontal_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_panes_horizontal_get, panes) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_panes_horizontal_set
+ * @{
+ * @objective Negative Test case checks if call test function with NULL instead of the panes widget
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the panes widget
+ * @li EINA_TRUE
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the panes widget
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_panes_horizontal_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_panes_horizontal_set, panes, EINA_TRUE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_panes_horizontal_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_panes_horizontal_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_panes_horizontal_get_p);
+   tcase_add_test(tcase, utc_elm_panes_horizontal_get_n);
+   tcase_add_test(tcase, utc_elm_panes_horizontal_set_n);
+   return tcase;
+}
diff --git a/TC/elementary/panes/utc_elm_panes_horizontal_set.c b/TC/elementary/panes/utc_elm_panes_horizontal_set.c
deleted file mode 100644 (file)
index 7943874..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *panes = NULL;
-
-/**
- * @addtogroup elm_panes
- * @{
- * @defgroup elm_panes_horizontal_set elm_panes_horizontal_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a new panes widget
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   panes = elm_panes_add(main_win);
-   if (panes == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a panes widget..", __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_panes_horizontal_set
- * @{
- * @objective Positive Test case checks if set horizontal orientation
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the panes widget
- * @li EINA_TRUE, EINA_FALSE
- *
- * @procedure
- * @step 1 Set the horizontal split direction of a given panes widget
- * @step 2 Get the split direction of a given widget
- * @step 3 Set the vertical split direction of a given panes widget
- * @step 4 Get the split direction of a given widget
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_panes_horizontal_set_p)
-{
-   Eina_Bool horizontal = EINA_FALSE;
-
-   if (panes == NULL)
-     {
-        return;
-     }
-   elm_panes_horizontal_set(panes, EINA_TRUE);
-   horizontal = elm_panes_horizontal_get(panes);
-   if (horizontal != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_panes_horizontal_set(panes, EINA_FALSE);
-   horizontal = elm_panes_horizontal_get(panes);
-   if (horizontal != 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_panes_horizontal_set
- * @{
- * @objective Negative Test case checks if call test function with NULL instead of the panes widget
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the panes widget
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the panes widget
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_panes_horizontal_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_panes_horizontal_set, panes, EINA_TRUE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_panes_horizontal_set()
-{
-   TCase *tcase = tcase_create("utc_elm_panes_horizontal_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_panes_horizontal_set_p);
-   tcase_add_test(tcase, utc_elm_panes_horizontal_set_n);
-   return tcase;
-}