utc_elm_hoversel_items_get.c
utc_elm_hoversel_item_icon_get.c
utc_elm_hoversel_item_icon_set.c
-#utc_elm_hoversel_scrollable_get.c
-#utc_elm_hoversel_scrollable_set.c
utc_elm_hoversel_auto_update.c
utc_elm_hoversel_items_get.c
utc_elm_hoversel_item_icon_get.c
utc_elm_hoversel_item_icon_set.c
-#utc_elm_hoversel_scrollable_get.c
-#utc_elm_hoversel_scrollable_set.c
utc_elm_hoversel_auto_update.c
utc_elm_hoversel_items_get.c
utc_elm_hoversel_item_icon_get.c
utc_elm_hoversel_item_icon_set.c
-utc_elm_hoversel_scrollable_get.c
-utc_elm_hoversel_scrollable_set.c
#utc_elm_hoversel_auto_update.c
utc_elm_hoversel_items_get.c
utc_elm_hoversel_item_icon_get.c
utc_elm_hoversel_item_icon_set.c
-utc_elm_hoversel_scrollable_get.c
-utc_elm_hoversel_scrollable_set.c
#utc_elm_hoversel_auto_update.c
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_hoversel
- * @{
- * @defgroup elm_hoversel_scrollable_get elm_hoversel_scrollable_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__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_hoversel_scrollable_get
- * @{
- * @objective Positive test case checks whether function work properly with valid parameters
- * @n Input Data:
- * @li the hoversel object
- * @li scrollable flag
- *
- * @procedure
- * @step 1 Add a hoversel object to the main window
- * @step 2 Set hoversel to scrollable mode
- * @step 3 Check scrollable mode of hoversel
- * @step 4 Set hoversel to not scrollable mode
- * @step 5 Check scrollable mode of hoversel
- *
- * @passcondition Test passes if returned value from elm_hoversel_scrollable_get() API equal to set value
- * @}
- */
-START_TEST(utc_elm_hoversel_scrollable_get_p)
-{
- Evas_Object *hoversel = NULL;
-
- hoversel = elm_hoversel_add(main_win);
- if (hoversel == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create a hoversel..", __FILE__, __LINE__);
- return;
- }
-
- elm_hoversel_scrollable_set(hoversel, EINA_TRUE);
- if (elm_hoversel_scrollable_get(hoversel) == EINA_FALSE)
- {
- evas_object_del(hoversel);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
-
- elm_hoversel_scrollable_set(hoversel, EINA_FALSE);
- if (elm_hoversel_scrollable_get(hoversel) == EINA_TRUE)
- {
- evas_object_del(hoversel);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- evas_object_del(hoversel);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_hoversel_scrollable_get
- * @{
- * @objective Negative test case checks whether function call with NULL as hoversel object works without segmentation fault
- * @n Input Data:
- * @li NULL as the hoversel object
- * @li EINA_TRUE scrollable flag
- *
- * @procedure
- * @step 1 Call function with NULL instead of the hoversel object
- *
- * @passcondition Test passes if returned value equal to EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_hoversel_scrollable_get_n)
-{
-
- if (elm_hoversel_scrollable_get(NULL) == 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
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_hoversel_scrollable_get");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_hoversel_scrollable_get_p);
- tcase_add_test(tcase, utc_elm_hoversel_scrollable_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_hoversel_scrollable_get.log");
- srunner_set_xml(srunner, "utc_elm_hoversel_scrollable_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>
-Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_hoversel
- * @{
- * @defgroup elm_hoversel_scrollable_set elm_hoversel_scrollable_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__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_hoversel_scrollable_set
- * @{
- * @objective Positive test case checks whether function work properly with valid parameters
- * @n Input Data:
- * @li the hoversel object
- * @li scrollable flag
- *
- * @procedure
- * @step 1 Add a hoversel object to the main window
- * @step 2 Set hoversel to scrollable mode
- * @step 3 Check scrollable mode of hoversel
- * @step 4 Set hoversel to not scrollable mode
- * @step 5 Check scrollable mode of hoversel
- *
- * @passcondition Test passes if returned value from elm_hoversel_scrollable_get() API equal to set value
- * @}
- */
-START_TEST(utc_elm_hoversel_scrollable_set_p)
-{
- Evas_Object *hoversel = NULL;
-
- hoversel = elm_hoversel_add(main_win);
- if (hoversel == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create a hoversel..", __FILE__, __LINE__);
- return;
- }
-
- elm_hoversel_scrollable_set(hoversel, EINA_TRUE);
- if (elm_hoversel_scrollable_get(hoversel) == EINA_FALSE)
- {
- evas_object_del(hoversel);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
-
- elm_hoversel_scrollable_set(hoversel, EINA_FALSE);
- if (elm_hoversel_scrollable_get(hoversel) == EINA_TRUE)
- {
- evas_object_del(hoversel);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- evas_object_del(hoversel);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_hoversel_scrollable_set
- * @{
- * @objective Negative test case checks whether function call with NULL as hoversel object works without segmentation fault
- * @n Input Data:
- * @li NULL as the hoversel object
- * @li EINA_FALSE scrollable flag
- *
- * @procedure
- * @step 1 Call function with NULL instead of the hoversel object
- *
- * @passcondition Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_hoversel_scrollable_set_n)
-{
-
- elm_hoversel_scrollable_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_hoversel_scrollable_set");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_hoversel_scrollable_set_p);
- tcase_add_test(tcase, utc_elm_hoversel_scrollable_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_hoversel_scrollable_set.log");
- srunner_set_xml(srunner, "utc_elm_hoversel_scrollable_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;
-}