elm_entry: delete utc for removed APIs 31/187531/2
authorYeongjong Lee <yj34.lee@samsung.com>
Fri, 24 Aug 2018 01:25:00 +0000 (10:25 +0900)
committerHermet Park <chuneon.park@samsung.com>
Mon, 27 Aug 2018 04:44:57 +0000 (04:44 +0000)
elm_entry_magnifier_disabled_get
elm_entry_magnifier_disabled_set

these APIs are removed since Tizen 3.0

Change-Id: I58a5a866dfc818efa5a582e922a7d07e0415fd16

TC/elementary/entry/tslist
TC/elementary/entry/tslist_mobile
TC/elementary/entry/tslist_tv
TC/elementary/entry/tslist_wear
TC/elementary/entry/utc_elm_entry_magnifier_disabled_get.c [deleted file]
TC/elementary/entry/utc_elm_entry_magnifier_disabled_set.c [deleted file]

index 52e746b896adc47571536d8d1e3dbad94fdd5e7d..45a466b62ea180b54acb0046cd7bc1869e2433f2 100644 (file)
@@ -76,8 +76,6 @@ utc_elm_entry_item_provider_prepend.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
index 52e746b896adc47571536d8d1e3dbad94fdd5e7d..45a466b62ea180b54acb0046cd7bc1869e2433f2 100644 (file)
@@ -76,8 +76,6 @@ utc_elm_entry_item_provider_prepend.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
index ffd675ca5706f7f6a0c2300ed9c338479e140779..de99a775578e321dfacb8729ccfb60b627eafffa 100644 (file)
@@ -76,8 +76,6 @@ utc_elm_entry_item_provider_prepend.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
index ffd675ca5706f7f6a0c2300ed9c338479e140779..de99a775578e321dfacb8729ccfb60b627eafffa 100644 (file)
@@ -76,8 +76,6 @@ utc_elm_entry_item_provider_prepend.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
diff --git a/TC/elementary/entry/utc_elm_entry_magnifier_disabled_get.c b/TC/elementary/entry/utc_elm_entry_magnifier_disabled_get.c
deleted file mode 100644 (file)
index 54ea231..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-#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;
-}
diff --git a/TC/elementary/entry/utc_elm_entry_magnifier_disabled_set.c b/TC/elementary/entry/utc_elm_entry_magnifier_disabled_set.c
deleted file mode 100644 (file)
index 57d0eaa..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-#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;
-}