utc_evas_focus_get.c
-utc_evas_object_focus_get.c
-utc_evas_object_focus_set.c
+utc_evas_object_focus_get_set.c
utc_evas_focus_in.c
utc_evas_focus_out.c
utc_evas_focus_state_get.c
utc_evas_focus_get.c
-utc_evas_object_focus_get.c
-utc_evas_object_focus_set.c
+utc_evas_object_focus_get_set.c
utc_evas_focus_in.c
utc_evas_focus_out.c
utc_evas_focus_state_get.c
#utc_evas_focus_get.c
-utc_evas_object_focus_get.c
-utc_evas_object_focus_set.c
+utc_evas_object_focus_get_set.c
utc_evas_focus_in.c
utc_evas_focus_out.c
utc_evas_focus_state_get.c
#utc_evas_focus_get.c
-utc_evas_object_focus_get.c
-utc_evas_object_focus_set.c
+utc_evas_object_focus_get_set.c
utc_evas_focus_in.c
utc_evas_focus_out.c
utc_evas_focus_state_get.c
+++ /dev/null
-#include <check.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_focus
- * @{
- * @defgroup evas_object_focus_get evas_object_focus_get()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_focus_get
- * @{
- * @objective Positive test case checks if function gets focus of Evas_Object properly.
- * @n Input Data:
- * @li pointer to Evas_Object to get focus.
- *
- * @procedure
- * @step 1 Create evas
- * @step 2 Create box Evas_Object
- * @step 3 Check if focus is EINA_FALSE (default value)
- * @step 4 Set focus for object to EINA_TRUE
- * @step 5 Check if focus is set to EINA_TRUE
- *
- * @passcondition Function returns EINA_FALSE on step 3 and EINA_TRUE on step 5.
- * @}
- */
-START_TEST(utc_evas_object_focus_get_p)
-{
- int result = TEST_FAIL;
- Evas *evas = evas_new();
- Evas_Object *obj;
-
- evas_output_method_set(evas, evas_render_method_lookup("buffer"));
- obj = evas_object_box_add(evas);
-
- if (!obj)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
- }
- else if (evas_object_focus_get(obj) != EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Focus is EINA_TRUE..", __FILE__, __LINE__);
- }
- else
- {
- evas_object_focus_set(obj, EINA_TRUE);
-
- if (evas_object_focus_get(obj) != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Focus is not set to EINA_TRUE..", __FILE__, __LINE__);
- }
- else
- {
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- result = TEST_PASS;
- }
- }
- evas_free(evas);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_focus_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns EINA_FALSE if it is called with NULL instead of pointer to Evas_Object.
- * @n Input Data: NULL as pointer to Evas_Object.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of it's argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns EINA_FALSE.
- * @}
- */
-START_TEST(utc_evas_object_focus_get_n)
-{
-
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, evas_object_focus_get, NULL) == 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_evas_object_focus_get()
-{
- TCase *tcase = tcase_create("utc_evas_object_focus_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_object_focus_get_p);
- tcase_add_test(tcase, utc_evas_object_focus_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include "../../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup evas_focus
+ * @{
+ * @defgroup evas_object_focus_get evas_object_focus_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with evas_init().
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ evas_init();
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_object_focus_get
+ * @{
+ * @objective Positive test case checks if function gets focus of Evas_Object properly.
+ * @n Input Data:
+ * @li pointer to Evas_Object to get focus.
+ *
+ * @procedure
+ * @step 1 Create evas
+ * @step 2 Create box Evas_Object
+ * @step 3 Check if focus is EINA_FALSE (default value)
+ * @step 4 Set focus for object to EINA_TRUE
+ * @step 5 Check if focus is set to EINA_TRUE
+ *
+ * @passcondition Function returns EINA_FALSE on step 3 and EINA_TRUE on step 5.
+ * @}
+ */
+START_TEST(utc_evas_object_focus_get_p)
+{
+ int result = TEST_FAIL;
+ Evas *evas = evas_new();
+ Evas_Object *obj;
+
+ evas_output_method_set(evas, evas_render_method_lookup("buffer"));
+ obj = evas_object_box_add(evas);
+
+ if (!obj)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
+ }
+ else if (evas_object_focus_get(obj) != EINA_FALSE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Focus is EINA_TRUE..", __FILE__, __LINE__);
+ }
+ else
+ {
+ evas_object_focus_set(obj, EINA_TRUE);
+
+ if (evas_object_focus_get(obj) != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Focus is not set to EINA_TRUE..", __FILE__, __LINE__);
+ }
+ else
+ {
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+ result = TEST_PASS;
+ }
+ }
+ evas_free(evas);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_focus_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns EINA_FALSE if it is called with NULL instead of pointer to Evas_Object.
+ * @n Input Data: NULL as pointer to Evas_Object.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of it's argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns EINA_FALSE.
+ * @}
+ */
+START_TEST(utc_evas_object_focus_get_n)
+{
+
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, evas_object_focus_get, NULL) == 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 evas_object_focus_set
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of Evas_Object pointer.
+ * @n Input Data: NULL instead of pointer to Evas_Object, EINA_TRUE as focus flag.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL as first argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_object_focus_set_n)
+{
+
+ CREATE_CHECKED_ARGS_ARRAY(1, 0);
+ UNITEST_FUNC_NEG_CA(evas_object_focus_set, NULL, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_object_focus_get_set()
+{
+ TCase *tcase = tcase_create("utc_evas_object_focus_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_evas_object_focus_get_p);
+ tcase_add_test(tcase, utc_evas_object_focus_get_n);
+ tcase_add_test(tcase, utc_evas_object_focus_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_focus
- * @{
- * @defgroup evas_object_focus_set evas_object_focus_set()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_focus_set
- * @{
- * @objective Positive test case checks if function sets focus of Evas_Object properly.
- * @n Input Data:
- * @li pointer to Evas_Object to set focus;
- * @li EINA_TRUE/EINA_FALSE - flag whether set focus or unset for first/second call.
- *
- * @procedure
- * @step 1 Create evas
- * @step 2 Create box Evas_Object
- * @step 3 Check if focus is EINA_FALSE (default value)
- * @step 4 Set focus for object to EINA_TRUE
- * @step 5 Check if focus is set to EINA_TRUE
- *
- * @passcondition Function returns EINA_FALSE on step 3 and EINA_TRUE on step 5.
- * @}
- */
-START_TEST(utc_evas_object_focus_set_p)
-{
- int result = TEST_FAIL;
- Evas *evas = evas_new();
- Evas_Object *obj;
-
- evas_output_method_set(evas, evas_render_method_lookup("buffer"));
- obj = evas_object_box_add(evas);
-
- if (!obj)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
- }
- else if (evas_object_focus_get(obj) != EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Focus is EINA_TRUE..", __FILE__, __LINE__);
- }
- else
- {
- evas_object_focus_set(obj, EINA_TRUE);
-
- if (evas_object_focus_get(obj) != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Focus is not set to EINA_TRUE..", __FILE__, __LINE__);
- }
- else
- {
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- result = TEST_PASS;
- }
- }
- evas_free(evas);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_focus_set
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of Evas_Object pointer.
- * @n Input Data: NULL instead of pointer to Evas_Object, EINA_TRUE as focus flag.
- *
- * @procedure
- * @step 1 Call function and pass NULL as first argument.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_object_focus_set_n)
-{
-
- CREATE_CHECKED_ARGS_ARRAY(1, 0);
- UNITEST_FUNC_NEG_CA(evas_object_focus_set, NULL, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_focus_set()
-{
- TCase *tcase = tcase_create("utc_evas_object_focus_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_object_focus_set_p);
- tcase_add_test(tcase, utc_evas_object_focus_set_n);
- return tcase;
-}