utc_elm_entry_item_provider_remove.c
utc_elm_entry_line_wrap_get.c
utc_elm_entry_line_wrap_set.c
-# DEPRECATED utc_elm_entry_magnifier_disabled_get.c
-# DEPRECATED utc_elm_entry_magnifier_disabled_set.c
utc_elm_entry_markup_filter_append.c
utc_elm_entry_markup_filter_prepend.c
utc_elm_entry_markup_filter_remove.c
utc_elm_entry_item_provider_remove.c
utc_elm_entry_line_wrap_get.c
utc_elm_entry_line_wrap_set.c
-# DEPRECATED utc_elm_entry_magnifier_disabled_get.c
-# DEPRECATED utc_elm_entry_magnifier_disabled_set.c
utc_elm_entry_markup_filter_append.c
utc_elm_entry_markup_filter_prepend.c
utc_elm_entry_markup_filter_remove.c
utc_elm_entry_item_provider_remove.c
utc_elm_entry_line_wrap_get.c
utc_elm_entry_line_wrap_set.c
-# DEPRECATED utc_elm_entry_magnifier_disabled_get.c
-# DEPRECATED utc_elm_entry_magnifier_disabled_set.c
utc_elm_entry_markup_filter_append.c
utc_elm_entry_markup_filter_prepend.c
utc_elm_entry_markup_filter_remove.c
utc_elm_entry_item_provider_remove.c
utc_elm_entry_line_wrap_get.c
utc_elm_entry_line_wrap_set.c
-# DEPRECATED utc_elm_entry_magnifier_disabled_get.c
-# DEPRECATED utc_elm_entry_magnifier_disabled_set.c
utc_elm_entry_markup_filter_append.c
utc_elm_entry_markup_filter_prepend.c
utc_elm_entry_markup_filter_remove.c
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_entry
- * @{
- * @defgroup elm_entry_magnifier_disabled_get elm_entry_magnifier_disabled_get()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_entry_magnifier_disabled_get
- * @{
- * @objective Positive test case checks whether function call
- * to return a magnifier is enabled/disabled works properly
- * @n Input Data: the entry object
- *
- * @procedure
- * @step 1 Add an entry object to the main window
- * @step 2 Set the magnifier_disabled flag to EINA_TRUE
- * @step 3 Get the magnifier_disabled flag
- * @step 4 Set the magnifier_disabled flag to EINA_FALSE
- * @step 5 Get the magnifier_disabled flag
- *
- * @passcondition Test passes if returned values are the same as set values
- * @}
- */
-START_TEST(utc_elm_entry_magnifier_disabled_get_p)
-{
- Evas_Object *entry = NULL;
- Eina_Bool magnif = EINA_FALSE;
-
- entry = elm_entry_add(main_win);
- if (entry == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an entry object..", __FILE__, __LINE__);
- }
- elm_entry_magnifier_disabled_set(entry, EINA_TRUE);
- magnif = elm_entry_magnifier_disabled_get(entry);
- if (magnif != EINA_TRUE)
- {
- evas_object_del(entry);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_entry_magnifier_disabled_set(entry, EINA_FALSE);
- magnif = elm_entry_magnifier_disabled_get(entry);
- evas_object_del(entry);
- if (magnif != 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_entry_magnifier_disabled_get
- * @{
- * @objective Negative test case checks whether function called with NULL as the entry object
- * returns EINA_FALSE without segmentation fault
- * @n Input Data: NULL instead of the entry object
- *
- * @procedure
- * @step 1 Call function with NULL as the entry object
- *
- * @passcondition Test passes if returned value is EINA_FALSE there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_entry_magnifier_disabled_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_entry_magnifier_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
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_entry_magnifier_disabled_get");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_entry_magnifier_disabled_get_p);
- tcase_add_test(tcase, utc_elm_entry_magnifier_disabled_get_n);
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_entry_magnifier_disabled_get.log");
- srunner_set_xml(srunner, "utc_elm_entry_magnifier_disabled_get.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_entry
- * @{
- * @defgroup elm_entry_magnifier_disabled_set elm_entry_magnifier_disabled_set()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_entry_magnifier_disabled_set
- * @{
- * @objective Positive test case checks whether function call
- * to enable/disable a magnifier works properly
- * @n Input Data:
- * @li the entry object
- * @li EINA_TRUE/EINA_FALSE for first/second function call
- *
- * @procedure
- * @step 1 Add an entry object to the main window
- * @step 2 Set the magnifier_disabled flag to EINA_TRUE
- * @step 3 Get the magnifier_disabled flag
- * @step 4 Set the magnifier_disabled flag to EINA_FALSE
- * @step 5 Get the magnifier_disabled flag
- *
- * @passcondition Test passes if returned values are the same as set values
- * @}
- */
-START_TEST(utc_elm_entry_magnifier_disabled_set_p)
-{
- Evas_Object *entry = NULL;
- Eina_Bool magnif = EINA_FALSE;
-
- entry = elm_entry_add(main_win);
- if (entry == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an entry object..", __FILE__, __LINE__);
- }
- elm_entry_magnifier_disabled_set(entry, EINA_TRUE);
- magnif = elm_entry_magnifier_disabled_get(entry);
- if (magnif != EINA_TRUE)
- {
- evas_object_del(entry);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_entry_magnifier_disabled_set(entry, EINA_FALSE);
- magnif = elm_entry_magnifier_disabled_get(entry);
- evas_object_del(entry);
- if (magnif != 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_entry_magnifier_disabled_set
- * @{
- * @objective Negative test case checks whether function called with NULL as the entry object
- * works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the entry object
- * @li EINA_FALSE as the magnifier_disabled flag
- *
- * @procedure
- * @step 1 Call function with NULL as the entry object
- *
- * @passcondition Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_entry_magnifier_disabled_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0);
- UNITEST_FUNC_NEG_CA(elm_entry_magnifier_disabled_set, NULL, EINA_FALSE);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_entry_magnifier_disabled_set");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_entry_magnifier_disabled_set_p);
- tcase_add_test(tcase, utc_elm_entry_magnifier_disabled_set_n);
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_entry_magnifier_disabled_set.log");
- srunner_set_xml(srunner, "utc_elm_entry_magnifier_disabled_set.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}