From: Abhishek Shrivastava Date: Wed, 5 Sep 2018 09:35:08 +0000 (+0530) Subject: utc_elm_config_scroll_xxxx: Merged TCs(*_get and *_set) to reduce duplicate test... X-Git-Tag: submit/tizen/20190320.070700~101 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=baf43b34a79cb8d971324f23680cefcf53eceebd;p=test%2Ftct%2Fnative%2Fefl-test-suite.git utc_elm_config_scroll_xxxx: Merged TCs(*_get and *_set) to reduce duplicate test operations Change-Id: If7ff8f448e0823055d755794732dc0ca1e841043 --- diff --git a/TC/elementary/scroll/tslist b/TC/elementary/scroll/tslist index 8d2b6315..3571348a 100644 --- a/TC/elementary/scroll/tslist +++ b/TC/elementary/scroll/tslist @@ -1,26 +1,13 @@ -utc_elm_config_scroll_bounce_enabled_get.c -utc_elm_config_scroll_bounce_enabled_set.c -utc_elm_config_scroll_bounce_friction_get.c -utc_elm_config_scroll_bounce_friction_set.c -utc_elm_config_scroll_bring_in_scroll_friction_get.c -utc_elm_config_scroll_bring_in_scroll_friction_set.c -utc_elm_config_scroll_page_scroll_friction_get.c -utc_elm_config_scroll_page_scroll_friction_set.c -utc_elm_config_scroll_thumbscroll_border_friction_get.c -utc_elm_config_scroll_thumbscroll_border_friction_set.c -utc_elm_config_scroll_thumbscroll_enabled_get.c -utc_elm_config_scroll_thumbscroll_enabled_set.c -utc_elm_config_scroll_thumbscroll_friction_get.c -utc_elm_config_scroll_thumbscroll_friction_set.c -utc_elm_config_scroll_thumbscroll_momentum_threshold_get.c -utc_elm_config_scroll_thumbscroll_momentum_threshold_set.c -utc_elm_config_scroll_thumbscroll_sensitivity_friction_get.c -utc_elm_config_scroll_thumbscroll_sensitivity_friction_set.c -utc_elm_config_scroll_thumbscroll_threshold_get.c -utc_elm_config_scroll_thumbscroll_threshold_set.c -utc_elm_config_scroll_zoom_friction_get.c -utc_elm_config_scroll_zoom_friction_set.c -utc_elm_config_scroll_item_align_enabled_get.c -utc_elm_config_scroll_item_align_enabled_set.c -utc_elm_config_scroll_item_valign_get.c -utc_elm_config_scroll_item_valign_set.c +utc_elm_config_scroll_bounce_enabled_get_set.c +utc_elm_config_scroll_bounce_friction_get_set.c +utc_elm_config_scroll_bring_in_scroll_friction_get_set.c +utc_elm_config_scroll_page_scroll_friction_get_set.c +utc_elm_config_scroll_thumbscroll_border_friction_get_set.c +utc_elm_config_scroll_thumbscroll_enabled_get_set.c +utc_elm_config_scroll_thumbscroll_friction_get_set.c +utc_elm_config_scroll_thumbscroll_momentum_threshold_get_set.c +utc_elm_config_scroll_thumbscroll_sensitivity_friction_get_set.c +utc_elm_config_scroll_thumbscroll_threshold_get_set.c +utc_elm_config_scroll_zoom_friction_get_set.c +utc_elm_config_scroll_item_align_enabled_get_set.c +utc_elm_config_scroll_item_valign_get_set.c \ No newline at end of file diff --git a/TC/elementary/scroll/tslist_mobile b/TC/elementary/scroll/tslist_mobile index 8d2b6315..3571348a 100644 --- a/TC/elementary/scroll/tslist_mobile +++ b/TC/elementary/scroll/tslist_mobile @@ -1,26 +1,13 @@ -utc_elm_config_scroll_bounce_enabled_get.c -utc_elm_config_scroll_bounce_enabled_set.c -utc_elm_config_scroll_bounce_friction_get.c -utc_elm_config_scroll_bounce_friction_set.c -utc_elm_config_scroll_bring_in_scroll_friction_get.c -utc_elm_config_scroll_bring_in_scroll_friction_set.c -utc_elm_config_scroll_page_scroll_friction_get.c -utc_elm_config_scroll_page_scroll_friction_set.c -utc_elm_config_scroll_thumbscroll_border_friction_get.c -utc_elm_config_scroll_thumbscroll_border_friction_set.c -utc_elm_config_scroll_thumbscroll_enabled_get.c -utc_elm_config_scroll_thumbscroll_enabled_set.c -utc_elm_config_scroll_thumbscroll_friction_get.c -utc_elm_config_scroll_thumbscroll_friction_set.c -utc_elm_config_scroll_thumbscroll_momentum_threshold_get.c -utc_elm_config_scroll_thumbscroll_momentum_threshold_set.c -utc_elm_config_scroll_thumbscroll_sensitivity_friction_get.c -utc_elm_config_scroll_thumbscroll_sensitivity_friction_set.c -utc_elm_config_scroll_thumbscroll_threshold_get.c -utc_elm_config_scroll_thumbscroll_threshold_set.c -utc_elm_config_scroll_zoom_friction_get.c -utc_elm_config_scroll_zoom_friction_set.c -utc_elm_config_scroll_item_align_enabled_get.c -utc_elm_config_scroll_item_align_enabled_set.c -utc_elm_config_scroll_item_valign_get.c -utc_elm_config_scroll_item_valign_set.c +utc_elm_config_scroll_bounce_enabled_get_set.c +utc_elm_config_scroll_bounce_friction_get_set.c +utc_elm_config_scroll_bring_in_scroll_friction_get_set.c +utc_elm_config_scroll_page_scroll_friction_get_set.c +utc_elm_config_scroll_thumbscroll_border_friction_get_set.c +utc_elm_config_scroll_thumbscroll_enabled_get_set.c +utc_elm_config_scroll_thumbscroll_friction_get_set.c +utc_elm_config_scroll_thumbscroll_momentum_threshold_get_set.c +utc_elm_config_scroll_thumbscroll_sensitivity_friction_get_set.c +utc_elm_config_scroll_thumbscroll_threshold_get_set.c +utc_elm_config_scroll_zoom_friction_get_set.c +utc_elm_config_scroll_item_align_enabled_get_set.c +utc_elm_config_scroll_item_valign_get_set.c \ No newline at end of file diff --git a/TC/elementary/scroll/tslist_tv b/TC/elementary/scroll/tslist_tv index 94363c30..12a9aca5 100644 --- a/TC/elementary/scroll/tslist_tv +++ b/TC/elementary/scroll/tslist_tv @@ -1,26 +1,15 @@ -utc_elm_config_scroll_bounce_enabled_get.c -utc_elm_config_scroll_bounce_enabled_set.c -utc_elm_config_scroll_bounce_friction_get.c -utc_elm_config_scroll_bounce_friction_set.c -utc_elm_config_scroll_bring_in_scroll_friction_get.c -utc_elm_config_scroll_bring_in_scroll_friction_set.c -utc_elm_config_scroll_page_scroll_friction_get.c -utc_elm_config_scroll_page_scroll_friction_set.c -utc_elm_config_scroll_thumbscroll_border_friction_get.c -utc_elm_config_scroll_thumbscroll_border_friction_set.c -utc_elm_config_scroll_thumbscroll_enabled_get.c -utc_elm_config_scroll_thumbscroll_enabled_set.c -utc_elm_config_scroll_thumbscroll_friction_get.c -utc_elm_config_scroll_thumbscroll_friction_set.c -utc_elm_config_scroll_thumbscroll_momentum_threshold_get.c -utc_elm_config_scroll_thumbscroll_momentum_threshold_set.c -utc_elm_config_scroll_thumbscroll_sensitivity_friction_get.c -utc_elm_config_scroll_thumbscroll_sensitivity_friction_set.c -utc_elm_config_scroll_thumbscroll_threshold_get.c -utc_elm_config_scroll_thumbscroll_threshold_set.c -utc_elm_config_scroll_zoom_friction_get.c -utc_elm_config_scroll_zoom_friction_set.c +utc_elm_config_scroll_bounce_enabled_get_set.c +utc_elm_config_scroll_bounce_friction_get_set.c +utc_elm_config_scroll_bring_in_scroll_friction_get_set.c +utc_elm_config_scroll_page_scroll_friction_get_set.c +utc_elm_config_scroll_thumbscroll_border_friction_get_set.c +utc_elm_config_scroll_thumbscroll_enabled_get_set.c +utc_elm_config_scroll_thumbscroll_friction_get_set.c +utc_elm_config_scroll_thumbscroll_momentum_threshold_get_set.c +utc_elm_config_scroll_thumbscroll_sensitivity_friction_get_set.c +utc_elm_config_scroll_thumbscroll_threshold_get_set.c +utc_elm_config_scroll_zoom_friction_get_set.c #utc_elm_config_scroll_item_align_enabled_get.c #utc_elm_config_scroll_item_align_enabled_set.c #utc_elm_config_scroll_item_valign_get.c -#utc_elm_config_scroll_item_valign_set.c +#utc_elm_config_scroll_item_valign_set.c \ No newline at end of file diff --git a/TC/elementary/scroll/tslist_wear b/TC/elementary/scroll/tslist_wear index 8d2b6315..3571348a 100644 --- a/TC/elementary/scroll/tslist_wear +++ b/TC/elementary/scroll/tslist_wear @@ -1,26 +1,13 @@ -utc_elm_config_scroll_bounce_enabled_get.c -utc_elm_config_scroll_bounce_enabled_set.c -utc_elm_config_scroll_bounce_friction_get.c -utc_elm_config_scroll_bounce_friction_set.c -utc_elm_config_scroll_bring_in_scroll_friction_get.c -utc_elm_config_scroll_bring_in_scroll_friction_set.c -utc_elm_config_scroll_page_scroll_friction_get.c -utc_elm_config_scroll_page_scroll_friction_set.c -utc_elm_config_scroll_thumbscroll_border_friction_get.c -utc_elm_config_scroll_thumbscroll_border_friction_set.c -utc_elm_config_scroll_thumbscroll_enabled_get.c -utc_elm_config_scroll_thumbscroll_enabled_set.c -utc_elm_config_scroll_thumbscroll_friction_get.c -utc_elm_config_scroll_thumbscroll_friction_set.c -utc_elm_config_scroll_thumbscroll_momentum_threshold_get.c -utc_elm_config_scroll_thumbscroll_momentum_threshold_set.c -utc_elm_config_scroll_thumbscroll_sensitivity_friction_get.c -utc_elm_config_scroll_thumbscroll_sensitivity_friction_set.c -utc_elm_config_scroll_thumbscroll_threshold_get.c -utc_elm_config_scroll_thumbscroll_threshold_set.c -utc_elm_config_scroll_zoom_friction_get.c -utc_elm_config_scroll_zoom_friction_set.c -utc_elm_config_scroll_item_align_enabled_get.c -utc_elm_config_scroll_item_align_enabled_set.c -utc_elm_config_scroll_item_valign_get.c -utc_elm_config_scroll_item_valign_set.c +utc_elm_config_scroll_bounce_enabled_get_set.c +utc_elm_config_scroll_bounce_friction_get_set.c +utc_elm_config_scroll_bring_in_scroll_friction_get_set.c +utc_elm_config_scroll_page_scroll_friction_get_set.c +utc_elm_config_scroll_thumbscroll_border_friction_get_set.c +utc_elm_config_scroll_thumbscroll_enabled_get_set.c +utc_elm_config_scroll_thumbscroll_friction_get_set.c +utc_elm_config_scroll_thumbscroll_momentum_threshold_get_set.c +utc_elm_config_scroll_thumbscroll_sensitivity_friction_get_set.c +utc_elm_config_scroll_thumbscroll_threshold_get_set.c +utc_elm_config_scroll_zoom_friction_get_set.c +utc_elm_config_scroll_item_align_enabled_get_set.c +utc_elm_config_scroll_item_valign_get_set.c \ No newline at end of file diff --git a/TC/elementary/scroll/utc_elm_config_scroll_bounce_enabled_get.c b/TC/elementary/scroll/utc_elm_config_scroll_bounce_enabled_get.c deleted file mode 100644 index 10407df4..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_bounce_enabled_get.c +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_bounce_enabled_get elm_config_scroll_bounce_enabled_get() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_bounce_enabled_get - * @{ - * @objective Positive test checks if function get whether scrollers should bounce - * works properly and doesn't cause segmentation fault - * @n Input Data: no parameters passed to function - * - * @procedure - * @step 1 Enable scroll bounce - * @step 2 Get scroll bounce state - * @step 3 Disable scroll bounce - * @step 4 Get scroll bounce state - * - * @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_config_scroll_bounce_enabled_get_p) -{ - Eina_Bool ret = EINA_FALSE; - - elm_config_scroll_bounce_enabled_set(EINA_TRUE); - ret = elm_config_scroll_bounce_enabled_get(); - if (ret != EINA_TRUE) - { - ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__); - return; - } - elm_config_scroll_bounce_enabled_set(EINA_FALSE); - ret = elm_config_scroll_bounce_enabled_get(); - if (ret != 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 - -/** - *@} - */ - -TCase * _utc_elm_config_scroll_bounce_enabled_get() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_bounce_enabled_get"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_bounce_enabled_get_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_bounce_enabled_get_set.c b/TC/elementary/scroll/utc_elm_config_scroll_bounce_enabled_get_set.c new file mode 100644 index 00000000..c4830cb3 --- /dev/null +++ b/TC/elementary/scroll/utc_elm_config_scroll_bounce_enabled_get_set.c @@ -0,0 +1,75 @@ +#include +#include +#include "../utc_elm_common.h" +#include "../../utc_negative_unitest.h" + +/** + * @addtogroup elm_scroll + * @{ + * @defgroup elm_config_scroll_bounce_enabled_set elm_config_scroll_bounce_enabled_set() + * + * @precondition + * @step 1 Initialize Elementary + */ +static void +setup(void) +{ + printf(" ============ Startup ============ \n"); + UTC_ELM_INIT(); +} + +static void +teardown(void) +{ + elm_shutdown(); + printf(" ============ Cleanup ============ \n"); +} + +/** + * @addtogroup elm_config_scroll_bounce_enabled_set + * @{ + * @objective Positive test checks if function set whether scrollers should bounce + * works properly and doesn't cause segmentation fault + * @n Input Data: EINA_TRUE, EINA_FALSE + * + * @procedure + * @step 1 Enable scroll bounce + * @step 2 Get scroll bounce state + * @step 3 Disable scroll bounce + * @step 4 Get scroll bounce state + * + * @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_config_scroll_bounce_enabled_set_p) +{ + Eina_Bool ret = EINA_FALSE; + + elm_config_scroll_bounce_enabled_set(EINA_TRUE); + ret = elm_config_scroll_bounce_enabled_get(); + if (ret != EINA_TRUE) + { + ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__); + } + elm_config_scroll_bounce_enabled_set(EINA_FALSE); + ret = elm_config_scroll_bounce_enabled_get(); + if (ret != 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 + +/** + *@} + */ + +TCase * _utc_elm_config_scroll_bounce_enabled_get_set() +{ + TCase *tcase = tcase_create("utc_elm_config_scroll_bounce_enabled_get_set"); + tcase_set_timeout(tcase, 30); + tcase_add_checked_fixture(tcase, setup, teardown); + tcase_add_test(tcase, utc_elm_config_scroll_bounce_enabled_set_p); + return tcase; +} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_bounce_enabled_set.c b/TC/elementary/scroll/utc_elm_config_scroll_bounce_enabled_set.c deleted file mode 100644 index 044181b8..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_bounce_enabled_set.c +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_bounce_enabled_set elm_config_scroll_bounce_enabled_set() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_bounce_enabled_set - * @{ - * @objective Positive test checks if function set whether scrollers should bounce - * works properly and doesn't cause segmentation fault - * @n Input Data: EINA_TRUE, EINA_FALSE - * - * @procedure - * @step 1 Enable scroll bounce - * @step 2 Get scroll bounce state - * @step 3 Disable scroll bounce - * @step 4 Get scroll bounce state - * - * @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_config_scroll_bounce_enabled_set_p) -{ - Eina_Bool ret = EINA_FALSE; - - elm_config_scroll_bounce_enabled_set(EINA_TRUE); - ret = elm_config_scroll_bounce_enabled_get(); - if (ret != EINA_TRUE) - { - ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__); - return; - } - elm_config_scroll_bounce_enabled_set(EINA_FALSE); - ret = elm_config_scroll_bounce_enabled_get(); - if (ret != 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 - -/** - *@} - */ - -TCase * _utc_elm_config_scroll_bounce_enabled_set() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_bounce_enabled_set"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_bounce_enabled_set_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_bounce_friction_get.c b/TC/elementary/scroll/utc_elm_config_scroll_bounce_friction_get.c deleted file mode 100644 index 3cb2928a..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_bounce_friction_get.c +++ /dev/null @@ -1,68 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_bounce_friction_get elm_config_scroll_bounce_friction_get() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_bounce_friction_get - * @{ - * @objective Positive test checks if get bounce friction works properly and doesn't cause segmentation fault - * @n Input Data: no parameters passed to function - * - * @procedure - * @step 1 Set Bounce Friction to 0.75 - * @step 2 Get Bounce Friction - * - * @passcondition Returned value is equal to 0.75 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_bounce_friction_get_p) -{ - double res = -1.0; - - elm_config_scroll_bounce_friction_set(0.75); - res = elm_config_scroll_bounce_friction_get(); - if (fabs(res - 0.75) > 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_config_scroll_bounce_friction_get() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_bounce_friction_get"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_bounce_friction_get_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_bounce_friction_get_set.c b/TC/elementary/scroll/utc_elm_config_scroll_bounce_friction_get_set.c new file mode 100644 index 00000000..35b0c555 --- /dev/null +++ b/TC/elementary/scroll/utc_elm_config_scroll_bounce_friction_get_set.c @@ -0,0 +1,102 @@ +#include +#include +#include "../utc_elm_common.h" +#include +#include "../../utc_negative_unitest.h" + +/** + * @addtogroup elm_scroll + * @{ + * @defgroup elm_config_scroll_bounce_friction_set elm_config_scroll_bounce_friction_set() + * + * @precondition + * @step 1 Initialize Elementary + */ +static void +setup(void) +{ + printf(" ============ Startup ============ \n"); + UTC_ELM_INIT(); +} + +static void +teardown(void) +{ + elm_shutdown(); + printf(" ============ Cleanup ============ \n"); +} + +/** + * @addtogroup elm_config_scroll_bounce_friction_set + * @{ + * @objective Positive test checks if set bounce friction works properly and doesn't cause segmentation fault + * @n Input Data: 0.75 + * + * @procedure + * @step 1 Set Bounce Friction to 0.75 + * @step 2 Get Bounce Friction + * + * @passcondition Returned value is equal to 0.75 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +START_TEST(utc_elm_config_scroll_bounce_friction_set_p) +{ + double res = -1.0; + + elm_config_scroll_bounce_friction_set(0.75); + res = elm_config_scroll_bounce_friction_get(); + if (fabs(res - 0.75) > 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_config_scroll_bounce_friction_set + * @{ + * @objective Negative test checks if set bounce friction works properly and doesn't cause segmentation fault if set value is negative + * @n Input Data: -10.0 + * + * @procedure + * @step 1 Set Bounce Friction to -10.0 + * @step 2 Get Bounce Friction + * + * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +#ifdef NOT_APPROVED_FOR_BUILD +START_TEST(utc_elm_config_scroll_bounce_friction_set_n) +{ + double res = -1.0; + + elm_config_scroll_bounce_friction_set(-10.0); + res = elm_config_scroll_bounce_friction_get(); + if (fabs(res) > 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 +#endif + +/** + *@} + */ + +TCase * _utc_elm_config_scroll_bounce_friction_get_set() +{ + TCase *tcase = tcase_create("utc_elm_config_scroll_bounce_friction_get_set"); + tcase_set_timeout(tcase, 30); + tcase_add_checked_fixture(tcase, setup, teardown); +#ifdef NOT_APPROVED_FOR_BUILD +#endif + tcase_add_test(tcase, utc_elm_config_scroll_bounce_friction_set_p); +#ifdef NOT_APPROVED_FOR_BUILD + tcase_add_test(tcase, utc_elm_config_scroll_bounce_friction_set_n); +#endif + return tcase; +} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_bounce_friction_set.c b/TC/elementary/scroll/utc_elm_config_scroll_bounce_friction_set.c deleted file mode 100644 index 18865888..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_bounce_friction_set.c +++ /dev/null @@ -1,103 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_bounce_friction_set elm_config_scroll_bounce_friction_set() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_bounce_friction_set - * @{ - * @objective Positive test checks if set bounce friction works properly and doesn't cause segmentation fault - * @n Input Data: 0.75 - * - * @procedure - * @step 1 Set Bounce Friction to 0.75 - * @step 2 Get Bounce Friction - * - * @passcondition Returned value is equal to 0.75 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_bounce_friction_set_p) -{ - double res = -1.0; - - elm_config_scroll_bounce_friction_set(0.75); - res = elm_config_scroll_bounce_friction_get(); - if (fabs(res - 0.75) > 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_config_scroll_bounce_friction_set - * @{ - * @objective Negative test checks if set bounce friction works properly and doesn't cause segmentation fault if set value is negative - * @n Input Data: -10.0 - * - * @procedure - * @step 1 Set Bounce Friction to -10.0 - * @step 2 Get Bounce Friction - * - * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -#ifdef NOT_APPROVED_FOR_BUILD -START_TEST(utc_elm_config_scroll_bounce_friction_set_n) -{ - double res = -1.0; - - elm_config_scroll_bounce_friction_set(-10.0); - res = elm_config_scroll_bounce_friction_get(); - if (fabs(res) > 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 -#endif - -/** - *@} - */ - -TCase * _utc_elm_config_scroll_bounce_friction_set() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_bounce_friction_set"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); -#ifdef NOT_APPROVED_FOR_BUILD -#endif - tcase_add_test(tcase, utc_elm_config_scroll_bounce_friction_set_p); -#ifdef NOT_APPROVED_FOR_BUILD - tcase_add_test(tcase, utc_elm_config_scroll_bounce_friction_set_n); -#endif - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_bring_in_scroll_friction_get.c b/TC/elementary/scroll/utc_elm_config_scroll_bring_in_scroll_friction_get.c deleted file mode 100644 index e0d10281..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_bring_in_scroll_friction_get.c +++ /dev/null @@ -1,68 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_bring_in_scroll_friction_get elm_config_scroll_bring_in_scroll_friction_get() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_bring_in_scroll_friction_get - * @{ - * @objective Positive test checks if get bring-in scroll friction works properly and doesn't cause segmentation fault - * @n Input Data: no parameters passed to function - * - * @procedure - * @step 1 Set Bring-In Scroll Friction to 0.75 - * @step 2 Get Bring-In Scroll Friction - * - * @passcondition Returned value is equal to 0.75 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_bring_in_scroll_friction_get_p) -{ - double res = -1.0; - - elm_config_scroll_bring_in_scroll_friction_set(0.75); - res = elm_config_scroll_bring_in_scroll_friction_get(); - if (fabs(res - 0.75) > 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_config_scroll_bring_in_scroll_friction_get() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_bring_in_scroll_friction_get"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_bring_in_scroll_friction_get_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_bring_in_scroll_friction_get_set.c b/TC/elementary/scroll/utc_elm_config_scroll_bring_in_scroll_friction_get_set.c new file mode 100644 index 00000000..6551bf5a --- /dev/null +++ b/TC/elementary/scroll/utc_elm_config_scroll_bring_in_scroll_friction_get_set.c @@ -0,0 +1,102 @@ +#include +#include +#include "../utc_elm_common.h" +#include +#include "../../utc_negative_unitest.h" + +/** + * @addtogroup elm_scroll + * @{ + * @defgroup elm_config_scroll_bring_in_scroll_friction_set elm_config_scroll_bring_in_scroll_friction_set() + * + * @precondition + * @step 1 Initialize Elementary + */ +static void +setup(void) +{ + printf(" ============ Startup ============ \n"); + UTC_ELM_INIT(); +} + +static void +teardown(void) +{ + elm_shutdown(); + printf(" ============ Cleanup ============ \n"); +} + +/** + * @addtogroup elm_config_scroll_bring_in_scroll_friction_set + * @{ + * @objective Positive test checks if set bring-in scroll friction works properly and doesn't cause segmentation fault + * @n Input Data: 0.75 + * + * @procedure + * @step 1 Set Bring-In Scroll Friction to 0.75 + * @step 2 Get Bring-In Scroll Friction + * + * @passcondition Returned value is equal to 0.75 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +START_TEST(utc_elm_config_scroll_bring_in_scroll_friction_set_p) +{ + double res = -1.0; + + elm_config_scroll_bring_in_scroll_friction_set(0.75); + res = elm_config_scroll_bring_in_scroll_friction_get(); + if (fabs(res - 0.75) > 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_config_scroll_bring_in_scroll_friction_set + * @{ + * @objective Negative test checks if set bring-in scroll friction works properly and doesn't cause segmentation fault if set value is not correct + * @n Input Data: -10.0 + * + * @procedure + * @step 1 Set Bring-In Scroll Friction to -10.0 + * @step 2 Get Bring-In Scroll Friction + * + * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +#ifdef NOT_APPROVED_FOR_BUILD +START_TEST(utc_elm_config_scroll_bring_in_scroll_friction_set_n) +{ + double res = -1.0; + + elm_config_scroll_bring_in_scroll_friction_set(-10.0); + res = elm_config_scroll_bring_in_scroll_friction_get(); + if (fabs(res) > 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 +#endif + +/** + *@} + */ + +TCase * _utc_elm_config_scroll_bring_in_scroll_friction_get_set() +{ + TCase *tcase = tcase_create("utc_elm_config_scroll_bring_in_scroll_friction_get_set"); + tcase_set_timeout(tcase, 30); + tcase_add_checked_fixture(tcase, setup, teardown); +#ifdef NOT_APPROVED_FOR_BUILD +#endif + tcase_add_test(tcase, utc_elm_config_scroll_bring_in_scroll_friction_set_p); +#ifdef NOT_APPROVED_FOR_BUILD + tcase_add_test(tcase, utc_elm_config_scroll_bring_in_scroll_friction_set_n); +#endif + return tcase; +} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_bring_in_scroll_friction_set.c b/TC/elementary/scroll/utc_elm_config_scroll_bring_in_scroll_friction_set.c deleted file mode 100644 index ad9386c2..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_bring_in_scroll_friction_set.c +++ /dev/null @@ -1,103 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_bring_in_scroll_friction_set elm_config_scroll_bring_in_scroll_friction_set() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_bring_in_scroll_friction_set - * @{ - * @objective Positive test checks if set bring-in scroll friction works properly and doesn't cause segmentation fault - * @n Input Data: 0.75 - * - * @procedure - * @step 1 Set Bring-In Scroll Friction to 0.75 - * @step 2 Get Bring-In Scroll Friction - * - * @passcondition Returned value is equal to 0.75 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_bring_in_scroll_friction_set_p) -{ - double res = -1.0; - - elm_config_scroll_bring_in_scroll_friction_set(0.75); - res = elm_config_scroll_bring_in_scroll_friction_get(); - if (fabs(res - 0.75) > 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_config_scroll_bring_in_scroll_friction_set - * @{ - * @objective Negative test checks if set bring-in scroll friction works properly and doesn't cause segmentation fault if set value is not correct - * @n Input Data: -10.0 - * - * @procedure - * @step 1 Set Bring-In Scroll Friction to -10.0 - * @step 2 Get Bring-In Scroll Friction - * - * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -#ifdef NOT_APPROVED_FOR_BUILD -START_TEST(utc_elm_config_scroll_bring_in_scroll_friction_set_n) -{ - double res = -1.0; - - elm_config_scroll_bring_in_scroll_friction_set(-10.0); - res = elm_config_scroll_bring_in_scroll_friction_get(); - if (fabs(res) > 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 -#endif - -/** - *@} - */ - -TCase * _utc_elm_config_scroll_bring_in_scroll_friction_set() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_bring_in_scroll_friction_set"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); -#ifdef NOT_APPROVED_FOR_BUILD -#endif - tcase_add_test(tcase, utc_elm_config_scroll_bring_in_scroll_friction_set_p); -#ifdef NOT_APPROVED_FOR_BUILD - tcase_add_test(tcase, utc_elm_config_scroll_bring_in_scroll_friction_set_n); -#endif - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_item_align_enabled_get.c b/TC/elementary/scroll/utc_elm_config_scroll_item_align_enabled_get.c deleted file mode 100644 index e883fded..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_item_align_enabled_get.c +++ /dev/null @@ -1,75 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_item_align_enabled_get elm_config_scroll_item_align_enabled_get() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - - /** - * @addtogroup elm_config_scroll_item_align_enabled_get - * @{ - * @objective Positive test checks if function get scroll item should align - * works properly and without segmentation fault - * @n Input Data: no parameters passed to function - * - * @procedure - * @step 1 Enable scroll item align - * @step 2 Get scroll item align state - * @step 3 Disable scroll item align - * @step 4 Get scroll item align state - * - * @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_config_scroll_item_align_enabled_get_p) -{ - Eina_Bool ret = EINA_FALSE; - - elm_config_scroll_item_align_enabled_set(EINA_TRUE); - ret = elm_config_scroll_item_align_enabled_get(); - if (ret != EINA_TRUE) - { - ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__); - } - - elm_config_scroll_item_align_enabled_set(EINA_FALSE); - ret = elm_config_scroll_item_align_enabled_get(); - if (ret != 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 - -/** - *@} - */ - -TCase * _utc_elm_config_scroll_item_align_enabled_get() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_item_align_enabled_get"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_item_align_enabled_get_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_item_align_enabled_get_set.c b/TC/elementary/scroll/utc_elm_config_scroll_item_align_enabled_get_set.c new file mode 100644 index 00000000..2b993dbf --- /dev/null +++ b/TC/elementary/scroll/utc_elm_config_scroll_item_align_enabled_get_set.c @@ -0,0 +1,75 @@ +#include +#include +#include "../utc_elm_common.h" + +/** + * @addtogroup elm_scroll + * @{ + * @defgroup elm_config_scroll_item_align_enabled_set elm_config_scroll_item_align_enabled_set() + * + * @precondition + * @step 1 Initialize Elementary + */ +static void +setup(void) +{ + printf(" ============ Startup ============ \n"); + UTC_ELM_INIT(); +} + +static void +teardown(void) +{ + elm_shutdown(); + printf(" ============ Cleanup ============ \n"); +} + + /** + * @addtogroup elm_config_scroll_item_align_enabled_set + * @{ + * @objective Positive test checks if function set scroll item should align + * works properly and without segmentation fault + * @n Input Data: EINA_TRUE, EINA_FALSE + * + * @procedure + * @step 1 Enable scroll item align + * @step 2 Get scroll item align state + * @step 3 Disable scroll item align + * @step 4 Get scroll item align state + * + * @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_config_scroll_item_align_enabled_set_p) +{ + Eina_Bool ret = EINA_FALSE; + + elm_config_scroll_item_align_enabled_set(EINA_TRUE); + ret = elm_config_scroll_item_align_enabled_get(); + if (ret != EINA_TRUE) + { + ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__); + } + + elm_config_scroll_item_align_enabled_set(EINA_FALSE); + ret = elm_config_scroll_item_align_enabled_get(); + if (ret != 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 + +/** + *@} + */ + +TCase * _utc_elm_config_scroll_item_align_enabled_get_set() +{ + TCase *tcase = tcase_create("utc_elm_config_scroll_item_align_enabled_get_set"); + tcase_set_timeout(tcase, 30); + tcase_add_checked_fixture(tcase, setup, teardown); + tcase_add_test(tcase, utc_elm_config_scroll_item_align_enabled_set_p); + return tcase; +} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_item_align_enabled_set.c b/TC/elementary/scroll/utc_elm_config_scroll_item_align_enabled_set.c deleted file mode 100644 index dd90e3cf..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_item_align_enabled_set.c +++ /dev/null @@ -1,75 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_item_align_enabled_set elm_config_scroll_item_align_enabled_set() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - - /** - * @addtogroup elm_config_scroll_item_align_enabled_set - * @{ - * @objective Positive test checks if function set scroll item should align - * works properly and without segmentation fault - * @n Input Data: EINA_TRUE, EINA_FALSE - * - * @procedure - * @step 1 Enable scroll item align - * @step 2 Get scroll item align state - * @step 3 Disable scroll item align - * @step 4 Get scroll item align state - * - * @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_config_scroll_item_align_enabled_set_p) -{ - Eina_Bool ret = EINA_FALSE; - - elm_config_scroll_item_align_enabled_set(EINA_TRUE); - ret = elm_config_scroll_item_align_enabled_get(); - if (ret != EINA_TRUE) - { - ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__); - } - - elm_config_scroll_item_align_enabled_set(EINA_FALSE); - ret = elm_config_scroll_item_align_enabled_get(); - if (ret != 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 - -/** - *@} - */ - -TCase * _utc_elm_config_scroll_item_align_enabled_set() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_item_align_enabled_set"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_item_align_enabled_set_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_item_valign_get.c b/TC/elementary/scroll/utc_elm_config_scroll_item_valign_get.c deleted file mode 100644 index 7ab15b97..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_item_valign_get.c +++ /dev/null @@ -1,72 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_item_valign_get elm_config_scroll_item_valign_get() - * - * - * @precondition - * @step 1 Initialize elementary - * @step 2 Create a main window - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_item_valign_get - * @{ - * @objective Positive test case checks if function call with valid values to get the scroll item vertical align - * works properly and without segmentation fault - * @n Input Data: - * @li "top" as the position name - * - * @procedure - * @step 1 Call elm_config_scroll_item_valign_set with valid values - * @step 2 Get the scroll item vertical align - * - * @passcondition Test passes if returned value is same as specified value and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_item_valign_get_p) -{ - - char *pos_name = "top"; - char *ret = NULL; - - elm_config_scroll_item_valign_set(pos_name); - ret = elm_config_scroll_item_valign_get(); - if ((ret == NULL) || (strcmp(ret, pos_name) != 0)) - { - 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_config_scroll_item_valign_get() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_item_valign_get"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_item_valign_get_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_item_valign_get_set.c b/TC/elementary/scroll/utc_elm_config_scroll_item_valign_get_set.c new file mode 100644 index 00000000..bb0e785b --- /dev/null +++ b/TC/elementary/scroll/utc_elm_config_scroll_item_valign_get_set.c @@ -0,0 +1,72 @@ +#include +#include +#include "../utc_elm_common.h" + +/** + * @addtogroup elm_scroll + * @{ + * @defgroup elm_config_scroll_item_valign_set elm_config_scroll_item_valign_set() + * + * + * @precondition + * @step 1 Initialize elementary + * @step 2 Create a main window + */ +static void +setup(void) +{ + printf(" ============ Startup ============ \n"); + UTC_ELM_INIT(); +} + +static void +teardown(void) +{ + elm_shutdown(); + printf(" ============ Cleanup ============ \n"); +} + +/** + * @addtogroup elm_config_scroll_item_valign_set + * @{ + * @objective Positive test case checks if function call with valid values to set the scroll item vertical align + * works properly and without segmentation fault + * @n Input Data: + * @li "top" as the position name + * + * @procedure + * @step 1 Call elm_config_scroll_item_valign_set with valid values + * @step 2 Get the scroll item vertical align + * + * @passcondition Test passes if returned value is same as specified value and there is no segmentation fault + * @} + */ +START_TEST(utc_elm_config_scroll_item_valign_set_p) +{ + + char *pos_name = "top"; + char *ret = NULL; + + elm_config_scroll_item_valign_set(pos_name); + ret = elm_config_scroll_item_valign_get(); + if ((ret == NULL) || (strcmp(ret, pos_name) != 0)) + { + 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_config_scroll_item_valign_get_set() +{ + TCase *tcase = tcase_create("utc_elm_config_scroll_item_valign_get_set"); + tcase_set_timeout(tcase, 30); + tcase_add_checked_fixture(tcase, setup, teardown); + tcase_add_test(tcase, utc_elm_config_scroll_item_valign_set_p); + return tcase; +} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_item_valign_set.c b/TC/elementary/scroll/utc_elm_config_scroll_item_valign_set.c deleted file mode 100644 index e9b051c3..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_item_valign_set.c +++ /dev/null @@ -1,72 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_item_valign_set elm_config_scroll_item_valign_set() - * - * - * @precondition - * @step 1 Initialize elementary - * @step 2 Create a main window - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_item_valign_set - * @{ - * @objective Positive test case checks if function call with valid values to set the scroll item vertical align - * works properly and without segmentation fault - * @n Input Data: - * @li "top" as the position name - * - * @procedure - * @step 1 Call elm_config_scroll_item_valign_set with valid values - * @step 2 Get the scroll item vertical align - * - * @passcondition Test passes if returned value is same as specified value and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_item_valign_set_p) -{ - - char *pos_name = "top"; - char *ret = NULL; - - elm_config_scroll_item_valign_set(pos_name); - ret = elm_config_scroll_item_valign_get(); - if ((ret == NULL) || (strcmp(ret, pos_name) != 0)) - { - 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_config_scroll_item_valign_set() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_item_valign_set"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_item_valign_set_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_page_scroll_friction_get.c b/TC/elementary/scroll/utc_elm_config_scroll_page_scroll_friction_get.c deleted file mode 100644 index cfd49db0..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_page_scroll_friction_get.c +++ /dev/null @@ -1,68 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_page_scroll_friction_get elm_config_scroll_page_scroll_friction_get() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_page_scroll_friction_get - * @{ - * @objective Positive test checks if get page scroll friction works properly and doesn't cause segmentation fault - * @n Input Data: no parameters passed to function - * - * @procedure - * @step 1 Set Page Scroll Friction to 0.75 - * @step 2 Get Page Scroll Friction - * - * @passcondition Returned value is equal to 0.75 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_page_scroll_friction_get_p) -{ - double res = -1.0; - - elm_config_scroll_page_scroll_friction_set(0.75); - res = elm_config_scroll_page_scroll_friction_get(); - if (fabs(res - 0.75) > 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_config_scroll_page_scroll_friction_get() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_page_scroll_friction_get"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_page_scroll_friction_get_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_page_scroll_friction_get_set.c b/TC/elementary/scroll/utc_elm_config_scroll_page_scroll_friction_get_set.c new file mode 100644 index 00000000..2f43d81b --- /dev/null +++ b/TC/elementary/scroll/utc_elm_config_scroll_page_scroll_friction_get_set.c @@ -0,0 +1,102 @@ +#include +#include +#include "../utc_elm_common.h" +#include +#include "../../utc_negative_unitest.h" + +/** + * @addtogroup elm_scroll + * @{ + * @defgroup elm_config_scroll_page_scroll_friction_set elm_config_scroll_page_scroll_friction_set() + * + * @precondition + * @step 1 Initialize Elementary + */ +static void +setup(void) +{ + printf(" ============ Startup ============ \n"); + UTC_ELM_INIT(); +} + +static void +teardown(void) +{ + elm_shutdown(); + printf(" ============ Cleanup ============ \n"); +} + +/** + * @addtogroup elm_config_scroll_page_scroll_friction_set + * @{ + * @objective Positive test checks if set page scroll friction works properly and doesn't cause segmentation fault + * @n Input Data: 0.75 + * + * @procedure + * @step 1 Set Page Scroll Friction to 0.75 + * @step 2 Get Page Scroll Friction + * + * @passcondition Returned value is equal to 0.75 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +START_TEST(utc_elm_config_scroll_page_scroll_friction_set_p) +{ + double res = -1.0; + + elm_config_scroll_page_scroll_friction_set(0.75); + res = elm_config_scroll_page_scroll_friction_get(); + if (fabs(res - 0.75) > 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_config_scroll_page_scroll_friction_set + * @{ + * @objective Negative test checks if set page scroll friction works properly and doesn't cause segmentation fault if set value is negative + * @n Input Data: -10.0 + * + * @procedure + * @step 1 Set Page Scroll Friction to -10.0 + * @step 2 Get Page Scroll Friction + * + * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +#ifdef NOT_APPROVED_FOR_BUILD +START_TEST(utc_elm_config_scroll_page_scroll_friction_set_n) +{ + double res = -1.0; + + elm_config_scroll_page_scroll_friction_set(-10.0); + res = elm_config_scroll_page_scroll_friction_get(); + if (fabs(res) > 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 +#endif + +/** + *@} + */ + +TCase * _utc_elm_config_scroll_page_scroll_friction_get_set() +{ + TCase *tcase = tcase_create("utc_elm_config_scroll_page_scroll_friction_get_set"); + tcase_set_timeout(tcase, 30); + tcase_add_checked_fixture(tcase, setup, teardown); +#ifdef NOT_APPROVED_FOR_BUILD +#endif + tcase_add_test(tcase, utc_elm_config_scroll_page_scroll_friction_set_p); +#ifdef NOT_APPROVED_FOR_BUILD + tcase_add_test(tcase, utc_elm_config_scroll_page_scroll_friction_set_n); +#endif + return tcase; +} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_page_scroll_friction_set.c b/TC/elementary/scroll/utc_elm_config_scroll_page_scroll_friction_set.c deleted file mode 100644 index 6bc56f46..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_page_scroll_friction_set.c +++ /dev/null @@ -1,103 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_page_scroll_friction_set elm_config_scroll_page_scroll_friction_set() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_page_scroll_friction_set - * @{ - * @objective Positive test checks if set page scroll friction works properly and doesn't cause segmentation fault - * @n Input Data: 0.75 - * - * @procedure - * @step 1 Set Page Scroll Friction to 0.75 - * @step 2 Get Page Scroll Friction - * - * @passcondition Returned value is equal to 0.75 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_page_scroll_friction_set_p) -{ - double res = -1.0; - - elm_config_scroll_page_scroll_friction_set(0.75); - res = elm_config_scroll_page_scroll_friction_get(); - if (fabs(res - 0.75) > 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_config_scroll_page_scroll_friction_set - * @{ - * @objective Negative test checks if set page scroll friction works properly and doesn't cause segmentation fault if set value is negative - * @n Input Data: -10.0 - * - * @procedure - * @step 1 Set Page Scroll Friction to -10.0 - * @step 2 Get Page Scroll Friction - * - * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -#ifdef NOT_APPROVED_FOR_BUILD -START_TEST(utc_elm_config_scroll_page_scroll_friction_set_n) -{ - double res = -1.0; - - elm_config_scroll_page_scroll_friction_set(-10.0); - res = elm_config_scroll_page_scroll_friction_get(); - if (fabs(res) > 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 -#endif - -/** - *@} - */ - -TCase * _utc_elm_config_scroll_page_scroll_friction_set() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_page_scroll_friction_set"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); -#ifdef NOT_APPROVED_FOR_BUILD -#endif - tcase_add_test(tcase, utc_elm_config_scroll_page_scroll_friction_set_p); -#ifdef NOT_APPROVED_FOR_BUILD - tcase_add_test(tcase, utc_elm_config_scroll_page_scroll_friction_set_n); -#endif - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_border_friction_get.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_border_friction_get.c deleted file mode 100644 index a04cf014..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_border_friction_get.c +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_thumbscroll_border_friction_get elm_config_scroll_thumbscroll_border_friction_get() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_thumbscroll_border_friction_get - * @{ - * @objective Positive test checks if get thumbscroll border friction - * works properly and doesn't cause segmentation fault - * @n Input Data: no parameters passed to function - * - * @procedure - * @step 1 Set Thumbscroll Border Friction to 0.5 - * @step 2 Get Thumbscroll Border Friction - * - * @passcondition Return value is 0.5 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_thumbscroll_border_friction_get_p) -{ - double res = -1.0; - - elm_config_scroll_thumbscroll_border_friction_set(0.5); - res = elm_config_scroll_thumbscroll_border_friction_get(); - if (fabs(res - 0.5) > 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_config_scroll_thumbscroll_border_friction_get() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_border_friction_get"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_border_friction_get_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_border_friction_get_set.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_border_friction_get_set.c new file mode 100644 index 00000000..40c2ff48 --- /dev/null +++ b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_border_friction_get_set.c @@ -0,0 +1,97 @@ +#include +#include +#include "../utc_elm_common.h" +#include +#include "../../utc_negative_unitest.h" + +/** + * @addtogroup elm_scroll + * @{ + * @defgroup elm_config_scroll_thumbscroll_border_friction_set elm_config_scroll_thumbscroll_border_friction_set() + * + * @precondition + * @step 1 Initialize Elementary + */ +static void +setup(void) +{ + printf(" ============ Startup ============ \n"); + UTC_ELM_INIT(); +} + +static void +teardown(void) +{ + elm_shutdown(); + printf(" ============ Cleanup ============ \n"); +} + +/** + * @addtogroup elm_config_scroll_thumbscroll_border_friction_set + * @{ + * @objective Positive test checks if set thumbscroll border friction + * works properly and doesn't cause segmentation fault + * @n Input Data: 0.5 + * + * @procedure + * @step 1 Set Thumbscroll Border Friction to 0.5 + * @step 2 Get Thumbscroll Border Friction + * + * @passcondition Return value is 0.5 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +START_TEST(utc_elm_config_scroll_thumbscroll_border_friction_set_p) +{ + double res = -1.0; + + elm_config_scroll_thumbscroll_border_friction_set(0.5); + res = elm_config_scroll_thumbscroll_border_friction_get(); + if (fabs(res - 0.5) > 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_config_scroll_thumbscroll_border_friction_set + * @{ + * @objective Negative test checks if set thumbscroll border friction works + * properly and doesn't cause segmentation fault if passed value is not correct + * @n Input Data: -10.0 + * + * @procedure + * @step 1 Set Thumbscroll Border Friction to -10 + * @step 2 Get Thumbscroll Border Friction + * + * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +START_TEST(utc_elm_config_scroll_thumbscroll_border_friction_set_n) +{ + double res = -1.0; + + elm_config_scroll_thumbscroll_border_friction_set(-10.0); + res = elm_config_scroll_thumbscroll_border_friction_get(); + if (fabs(res) > 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 + +/** + *@} + */ + +TCase * _utc_elm_config_scroll_thumbscroll_border_friction_get_set() +{ + TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_border_friction_get_set"); + tcase_set_timeout(tcase, 30); + tcase_add_checked_fixture(tcase, setup, teardown); + tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_border_friction_set_p); + tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_border_friction_set_n); + return tcase; +} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_border_friction_set.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_border_friction_set.c deleted file mode 100644 index 42b3894b..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_border_friction_set.c +++ /dev/null @@ -1,99 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_thumbscroll_border_friction_set elm_config_scroll_thumbscroll_border_friction_set() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_thumbscroll_border_friction_set - * @{ - * @objective Positive test checks if set thumbscroll border friction - * works properly and doesn't cause segmentation fault - * @n Input Data: 0.5 - * - * @procedure - * @step 1 Set Thumbscroll Border Friction to 0.5 - * @step 2 Get Thumbscroll Border Friction - * - * @passcondition Return value is 0.5 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_thumbscroll_border_friction_set_p) -{ - double res = -1.0; - - elm_config_scroll_thumbscroll_border_friction_set(0.5); - res = elm_config_scroll_thumbscroll_border_friction_get(); - if (fabs(res - 0.5) > 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_config_scroll_thumbscroll_border_friction_set - * @{ - * @objective Negative test checks if set thumbscroll border friction works - * properly and doesn't cause segmentation fault if passed value is not correct - * @n Input Data: -10.0 - * - * @procedure - * @step 1 Set Thumbscroll Border Friction to -10 - * @step 2 Get Thumbscroll Border Friction - * - * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_thumbscroll_border_friction_set_n) -{ - double res = -1.0; - - elm_config_scroll_thumbscroll_border_friction_set(-10.0); - res = elm_config_scroll_thumbscroll_border_friction_get(); - if (fabs(res) > 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_config_scroll_thumbscroll_border_friction_set() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_border_friction_set"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_border_friction_set_p); - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_border_friction_set_n); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_enabled_get.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_enabled_get.c deleted file mode 100644 index b2949b48..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_enabled_get.c +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_thumbscroll_enabled_get elm_config_scroll_thumbscroll_enabled_get() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_thumbscroll_enabled_get - * @{ - * @objective Positive test checks if get whether scrollers should be draggable - * works properly and doesn't cause segmentation fault - * @n Input Data: no parameters passed to function - * - * @procedure - * @step 1 Set scrollers should be draggable to EINA_TRUE - * @step 2 Get whether scrollers should be draggable - * @step 3 Set scrollers should be draggable to EINA_FALSE - * @step 4 Get whether scrollers should be draggable - * - * @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_config_scroll_thumbscroll_enabled_get_p) -{ - Eina_Bool ret = EINA_FALSE; - - elm_config_scroll_thumbscroll_enabled_set(EINA_TRUE); - ret = elm_config_scroll_thumbscroll_enabled_get(); - if (ret != EINA_TRUE) - { - ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__); - return; - } - elm_config_scroll_thumbscroll_enabled_set(EINA_FALSE); - ret = elm_config_scroll_thumbscroll_enabled_get(); - if (ret != 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 - -/** - *@} - */ - -TCase * _utc_elm_config_scroll_thumbscroll_enabled_get() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_enabled_get"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_enabled_get_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_enabled_get_set.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_enabled_get_set.c new file mode 100644 index 00000000..70da89fc --- /dev/null +++ b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_enabled_get_set.c @@ -0,0 +1,75 @@ +#include +#include +#include "../utc_elm_common.h" +#include "../../utc_negative_unitest.h" + +/** + * @addtogroup elm_scroll + * @{ + * @defgroup elm_config_scroll_thumbscroll_enabled_set elm_config_scroll_thumbscroll_enabled_set() + * + * @precondition + * @step 1 Initialize Elementary + */ +static void +setup(void) +{ + printf(" ============ Startup ============ \n"); + UTC_ELM_INIT(); +} + +static void +teardown(void) +{ + elm_shutdown(); + printf(" ============ Cleanup ============ \n"); +} + +/** + * @addtogroup elm_config_scroll_thumbscroll_enabled_set + * @{ + * @objective Positive test checks if set whether scrollers should be draggable + * works properly and doesn't cause segmentation fault + * @n Input Data: EINA_TRUE, EINA_FALSE + * + * @procedure + * @step 1 Set scrollers should be draggable to EINA_TRUE + * @step 2 Get whether scrollers should be draggable + * @step 3 Set scrollers should be draggable to EINA_FALSE + * @step 4 Get whether scrollers should be draggable + * + * @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_config_scroll_thumbscroll_enabled_set_p) +{ + Eina_Bool ret = EINA_FALSE; + + elm_config_scroll_thumbscroll_enabled_set(EINA_TRUE); + ret = elm_config_scroll_thumbscroll_enabled_get(); + if (ret != EINA_TRUE) + { + ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__); + } + elm_config_scroll_thumbscroll_enabled_set(EINA_FALSE); + ret = elm_config_scroll_thumbscroll_enabled_get(); + if (ret != 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 + +/** + *@} + */ + +TCase * _utc_elm_config_scroll_thumbscroll_enabled_get_set() +{ + TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_enabled_get_set"); + tcase_set_timeout(tcase, 30); + tcase_add_checked_fixture(tcase, setup, teardown); + tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_enabled_set_p); + return tcase; +} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_enabled_set.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_enabled_set.c deleted file mode 100644 index b8bdb3f4..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_enabled_set.c +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_thumbscroll_enabled_set elm_config_scroll_thumbscroll_enabled_set() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_thumbscroll_enabled_set - * @{ - * @objective Positive test checks if set whether scrollers should be draggable - * works properly and doesn't cause segmentation fault - * @n Input Data: EINA_TRUE, EINA_FALSE - * - * @procedure - * @step 1 Set scrollers should be draggable to EINA_TRUE - * @step 2 Get whether scrollers should be draggable - * @step 3 Set scrollers should be draggable to EINA_FALSE - * @step 4 Get whether scrollers should be draggable - * - * @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_config_scroll_thumbscroll_enabled_set_p) -{ - Eina_Bool ret = EINA_FALSE; - - elm_config_scroll_thumbscroll_enabled_set(EINA_TRUE); - ret = elm_config_scroll_thumbscroll_enabled_get(); - if (ret != EINA_TRUE) - { - ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__); - return; - } - elm_config_scroll_thumbscroll_enabled_set(EINA_FALSE); - ret = elm_config_scroll_thumbscroll_enabled_get(); - if (ret != 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 - -/** - *@} - */ - -TCase * _utc_elm_config_scroll_thumbscroll_enabled_set() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_enabled_set"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_enabled_set_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_friction_get.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_friction_get.c deleted file mode 100644 index e18d4160..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_friction_get.c +++ /dev/null @@ -1,68 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_thumbscroll_friction_get elm_config_scroll_thumbscroll_friction_get() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_thumbscroll_friction_get - * @{ - * @objective Positive test checks if get thumbscroll friction works properly and doesn't cause segmentation fault - * @n Input Data: no parameters passed to function - * - * @procedure - * @step 1 Set Thumbscroll Friction to 0.75 - * @step 2 Get Thumbscroll Friction - * - * @passcondition Return value is 0.75 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_thumbscroll_friction_get_p) -{ - double res = -1.0; - - elm_config_scroll_thumbscroll_friction_set(0.75); - res = elm_config_scroll_thumbscroll_friction_get(); - if (fabs(res - 0.75) > 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_config_scroll_thumbscroll_friction_get() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_friction_get"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_friction_get_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_friction_get_set.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_friction_get_set.c new file mode 100644 index 00000000..709fea3f --- /dev/null +++ b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_friction_get_set.c @@ -0,0 +1,102 @@ +#include +#include +#include "../utc_elm_common.h" +#include +#include "../../utc_negative_unitest.h" + +/** + * @addtogroup elm_scroll + * @{ + * @defgroup elm_config_scroll_thumbscroll_friction_set elm_config_scroll_thumbscroll_friction_set() + * + * @precondition + * @step 1 Initialize Elementary + */ +static void +setup(void) +{ + printf(" ============ Startup ============ \n"); + UTC_ELM_INIT(); +} + +static void +teardown(void) +{ + elm_shutdown(); + printf(" ============ Cleanup ============ \n"); +} + +/** + * @addtogroup elm_config_scroll_thumbscroll_friction_set + * @{ + * @objective Positive test checks if set thumbscroll friction works properly and doesn't cause segmentation fault + * @n Input Data: 0.75 + * + * @procedure + * @step 1 Set Thumbscroll Friction to 0.75 + * @step 2 Get Thumbscroll Friction + * + * @passcondition Return value is 0.75 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +START_TEST(utc_elm_config_scroll_thumbscroll_friction_set_p) +{ + double res = -1.0; + + elm_config_scroll_thumbscroll_friction_set(0.75); + res = elm_config_scroll_thumbscroll_friction_get(); + if (fabs(res - 0.75) > 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_config_scroll_thumbscroll_friction_set + * @{ + * @objective Negative test checks if set thumbscroll friction works properly and doesn't cause segmentation fault if set value is negative + * @n Input Data: -10.0 + * + * @procedure + * @step 1 Set Thumbscroll Friction to -10 + * @step 2 Get Thumbscroll Friction + * + * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +#ifdef NOT_APPROVED_FOR_BUILD +START_TEST(utc_elm_config_scroll_thumbscroll_friction_set_n) +{ + double res = -1.0; + + elm_config_scroll_thumbscroll_friction_set(-10.0); + res = elm_config_scroll_thumbscroll_friction_get(); + if (fabs(res) > 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 +#endif + +/** + *@} + */ + +TCase * _utc_elm_config_scroll_thumbscroll_friction_get_set() +{ + TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_friction_get_set"); + tcase_set_timeout(tcase, 30); + tcase_add_checked_fixture(tcase, setup, teardown); +#ifdef NOT_APPROVED_FOR_BUILD +#endif + tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_friction_set_p); +#ifdef NOT_APPROVED_FOR_BUILD + tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_friction_set_n); +#endif + return tcase; +} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_friction_set.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_friction_set.c deleted file mode 100644 index 3b8b4234..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_friction_set.c +++ /dev/null @@ -1,103 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_thumbscroll_friction_set elm_config_scroll_thumbscroll_friction_set() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_thumbscroll_friction_set - * @{ - * @objective Positive test checks if set thumbscroll friction works properly and doesn't cause segmentation fault - * @n Input Data: 0.75 - * - * @procedure - * @step 1 Set Thumbscroll Friction to 0.75 - * @step 2 Get Thumbscroll Friction - * - * @passcondition Return value is 0.75 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_thumbscroll_friction_set_p) -{ - double res = -1.0; - - elm_config_scroll_thumbscroll_friction_set(0.75); - res = elm_config_scroll_thumbscroll_friction_get(); - if (fabs(res - 0.75) > 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_config_scroll_thumbscroll_friction_set - * @{ - * @objective Negative test checks if set thumbscroll friction works properly and doesn't cause segmentation fault if set value is negative - * @n Input Data: -10.0 - * - * @procedure - * @step 1 Set Thumbscroll Friction to -10 - * @step 2 Get Thumbscroll Friction - * - * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -#ifdef NOT_APPROVED_FOR_BUILD -START_TEST(utc_elm_config_scroll_thumbscroll_friction_set_n) -{ - double res = -1.0; - - elm_config_scroll_thumbscroll_friction_set(-10.0); - res = elm_config_scroll_thumbscroll_friction_get(); - if (fabs(res) > 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 -#endif - -/** - *@} - */ - -TCase * _utc_elm_config_scroll_thumbscroll_friction_set() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_friction_set"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); -#ifdef NOT_APPROVED_FOR_BUILD -#endif - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_friction_set_p); -#ifdef NOT_APPROVED_FOR_BUILD - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_friction_set_n); -#endif - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_momentum_threshold_get.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_momentum_threshold_get.c deleted file mode 100644 index b8fa8aad..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_momentum_threshold_get.c +++ /dev/null @@ -1,68 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_thumbscroll_momentum_threshold_get elm_config_scroll_thumbscroll_momentum_threshold_get() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_thumbscroll_momentum_threshold_get - * @{ - * @objective Positive test checks if get thumbscroll momentum threshold works properly and doesn't cause segmentation fault - * @n Input Data: no parameters passed to function - * - * @procedure - * @step 1 Set Thumbscroll Momentum Threshold to 0.25 - * @step 2 Get Thumbscroll Momentum Threshold - * - * @passcondition Return value is 0.25 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_thumbscroll_momentum_threshold_get_p) -{ - double res = -1.0; - - elm_config_scroll_thumbscroll_momentum_threshold_set(0.25); - res = elm_config_scroll_thumbscroll_momentum_threshold_get(); - if (fabs(res - 0.25) > 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_config_scroll_thumbscroll_momentum_threshold_get() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_momentum_threshold_get"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_momentum_threshold_get_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_momentum_threshold_get_set.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_momentum_threshold_get_set.c new file mode 100644 index 00000000..9ab0fc7c --- /dev/null +++ b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_momentum_threshold_get_set.c @@ -0,0 +1,102 @@ +#include +#include +#include "../utc_elm_common.h" +#include +#include "../../utc_negative_unitest.h" + +/** + * @addtogroup elm_scroll + * @{ + * @defgroup elm_config_scroll_thumbscroll_momentum_threshold_set elm_config_scroll_thumbscroll_momentum_threshold_set() + * + * @precondition + * @step 1 Initialize Elementary + */ +static void +setup(void) +{ + printf(" ============ Startup ============ \n"); + UTC_ELM_INIT(); +} + +static void +teardown(void) +{ + elm_shutdown(); + printf(" ============ Cleanup ============ \n"); +} + +/** + * @addtogroup elm_config_scroll_thumbscroll_momentum_threshold_set + * @{ + * @objective Positive test checks if set thumbscroll momentum threshold works properly and doesn't cause segmentation fault + * @n Input Data: 0.25 + * + * @procedure + * @step 1 Set Thumbscroll Momentum Threshold to 0.25 + * @step 2 Get Thumbscroll Momentum Threshold + * + * @passcondition Return value is 0.25 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +START_TEST(utc_elm_config_scroll_thumbscroll_momentum_threshold_set_p) +{ + double res = -1.0; + + elm_config_scroll_thumbscroll_momentum_threshold_set(0.25); + res = elm_config_scroll_thumbscroll_momentum_threshold_get(); + if (fabs(res - 0.25) > 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_config_scroll_thumbscroll_momentum_threshold_set + * @{ + * @objective Negative test checks if set thumbscroll momentum threshold works properly and doesn't cause segmentation fault if set value is negative + * @n Input Data: -10.0 + * + * @procedure + * @step 1 Set Thumbscroll Momentum Threshold to -10.0 + * @step 2 Get Thumbscroll Momentum Threshold + * + * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +#ifdef NOT_APPROVED_FOR_BUILD +START_TEST(utc_elm_config_scroll_thumbscroll_momentum_threshold_set_n) +{ + double res = -1.0; + + elm_config_scroll_thumbscroll_momentum_threshold_set(-10.0); + res = elm_config_scroll_thumbscroll_momentum_threshold_get(); + if (fabs(res) > 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 +#endif + +/** + *@} + */ + +TCase * _utc_elm_config_scroll_thumbscroll_momentum_threshold_get_set() +{ + TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_momentum_threshold_get_set"); + tcase_set_timeout(tcase, 30); + tcase_add_checked_fixture(tcase, setup, teardown); +#ifdef NOT_APPROVED_FOR_BUILD +#endif + tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_momentum_threshold_set_p); +#ifdef NOT_APPROVED_FOR_BUILD + tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_momentum_threshold_set_n); +#endif + return tcase; +} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_momentum_threshold_set.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_momentum_threshold_set.c deleted file mode 100644 index a2d0b165..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_momentum_threshold_set.c +++ /dev/null @@ -1,103 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_thumbscroll_momentum_threshold_set elm_config_scroll_thumbscroll_momentum_threshold_set() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_thumbscroll_momentum_threshold_set - * @{ - * @objective Positive test checks if set thumbscroll momentum threshold works properly and doesn't cause segmentation fault - * @n Input Data: 0.25 - * - * @procedure - * @step 1 Set Thumbscroll Momentum Threshold to 0.25 - * @step 2 Get Thumbscroll Momentum Threshold - * - * @passcondition Return value is 0.25 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_thumbscroll_momentum_threshold_set_p) -{ - double res = -1.0; - - elm_config_scroll_thumbscroll_momentum_threshold_set(0.25); - res = elm_config_scroll_thumbscroll_momentum_threshold_get(); - if (fabs(res - 0.25) > 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_config_scroll_thumbscroll_momentum_threshold_set - * @{ - * @objective Negative test checks if set thumbscroll momentum threshold works properly and doesn't cause segmentation fault if set value is negative - * @n Input Data: -10.0 - * - * @procedure - * @step 1 Set Thumbscroll Momentum Threshold to -10.0 - * @step 2 Get Thumbscroll Momentum Threshold - * - * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -#ifdef NOT_APPROVED_FOR_BUILD -START_TEST(utc_elm_config_scroll_thumbscroll_momentum_threshold_set_n) -{ - double res = -1.0; - - elm_config_scroll_thumbscroll_momentum_threshold_set(-10.0); - res = elm_config_scroll_thumbscroll_momentum_threshold_get(); - if (fabs(res) > 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 -#endif - -/** - *@} - */ - -TCase * _utc_elm_config_scroll_thumbscroll_momentum_threshold_set() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_momentum_threshold_set"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); -#ifdef NOT_APPROVED_FOR_BUILD -#endif - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_momentum_threshold_set_p); -#ifdef NOT_APPROVED_FOR_BUILD - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_momentum_threshold_set_n); -#endif - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_sensitivity_friction_get.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_sensitivity_friction_get.c deleted file mode 100644 index c1a769e6..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_sensitivity_friction_get.c +++ /dev/null @@ -1,68 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_thumbscroll_sensitivity_friction_get elm_config_scroll_thumbscroll_sensitivity_friction_get() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_thumbscroll_sensitivity_friction_get - * @{ - * @objective Positive test checks if get thumbscroll sensitivity friction works properly and doesn't cause segmentation fault - * @n Input Data: no parameters passed to function - * - * @procedure - * @step 1 Set Thumbscroll Sensitivity Friction to 0.25 - * @step 2 Get Thumbscroll Sensitivity Friction - * - * @passcondition Return value is 0.25 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_thumbscroll_sensitivity_friction_get_p) -{ - double res = -1.0; - - elm_config_scroll_thumbscroll_sensitivity_friction_set(0.25); - res = elm_config_scroll_thumbscroll_sensitivity_friction_get(); - if (fabs(res - 0.25) > 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_config_scroll_thumbscroll_sensitivity_friction_get() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_sensitivity_friction_get"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_sensitivity_friction_get_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_sensitivity_friction_get_set.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_sensitivity_friction_get_set.c new file mode 100644 index 00000000..90c4ac27 --- /dev/null +++ b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_sensitivity_friction_get_set.c @@ -0,0 +1,123 @@ +#include +#include +#include "../utc_elm_common.h" +#include +#include "../../utc_negative_unitest.h" + +/** + * @addtogroup elm_scroll + * @{ + * @defgroup elm_config_scroll_thumbscroll_sensitivity_friction_set elm_config_scroll_thumbscroll_sensitivity_friction_set() + * + * @precondition + * @step 1 Initialize Elementary + */ +static void +setup(void) +{ + printf(" ============ Startup ============ \n"); + UTC_ELM_INIT(); +} + +static void +teardown(void) +{ + elm_shutdown(); + printf(" ============ Cleanup ============ \n"); +} + +/** + * @addtogroup elm_config_scroll_thumbscroll_sensitivity_friction_set + * @{ + * @objective Positive test checks if set thumbscroll sensitivity friction works properly and doesn't cause segmentation fault + * @n Input Data: 0.25 + * + * @procedure + * @step 1 Set Thumbscroll Sensitivity Friction to 0.25 + * @step 2 Get Thumbscroll Sensitivity Friction + * + * @passcondition Return value is 0.25 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +START_TEST(utc_elm_config_scroll_thumbscroll_sensitivity_friction_set_p) +{ + double res = -1.0; + + elm_config_scroll_thumbscroll_sensitivity_friction_set(0.25); + res = elm_config_scroll_thumbscroll_sensitivity_friction_get(); + if (fabs(res - 0.25) > 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_config_scroll_thumbscroll_sensitivity_friction_set + * @{ + * @objective Negative test No.1 checks if set thumbscroll sensitivity friction works properly and doesn't cause segmentation fault in case if set value is out of range + * @n Input Data: -10.0 + * + * @procedure + * @step 1 Set Thumbscroll Sensitivity Friction to -10 + * @step 2 Get Thumbscroll Sensitivity Friction + * + * @passcondition Return value is 0.1 and there is no segmentation fault + * @} + */ +START_TEST(utc_elm_config_scroll_thumbscroll_sensitivity_friction_set_n1) +{ + double res = -1.0; + + elm_config_scroll_thumbscroll_sensitivity_friction_set(-10.0); + res = elm_config_scroll_thumbscroll_sensitivity_friction_get(); + if (fabs(res - 0.1) > 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_config_scroll_thumbscroll_sensitivity_friction_set + * @{ + * @objective Negative test No.2 checks if set thumbscroll sensitivity friction works properly and doesn't cause segmentation fault in case if set value is out of range + * @n Input Data: 10 + * + * @procedure + * @step 1 Set Thumbscroll Sensitivity Friction to 10 + * @step 2 Get Thumbscroll Sensitivity Friction + * + * @passcondition Return value is 1.0 and there is no segmentation fault + * @} + */ +START_TEST(utc_elm_config_scroll_thumbscroll_sensitivity_friction_set_n2) +{ + double res = -1.0; + + elm_config_scroll_thumbscroll_sensitivity_friction_set(10.0); + res = elm_config_scroll_thumbscroll_sensitivity_friction_get(); + if (fabs(res - 1) > 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 + +/** + *@} + */ + +TCase * _utc_elm_config_scroll_thumbscroll_sensitivity_friction_get_set() +{ + TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_sensitivity_friction_get_set"); + tcase_set_timeout(tcase, 30); + tcase_add_checked_fixture(tcase, setup, teardown); + tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_sensitivity_friction_set_p); + tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_sensitivity_friction_set_n1); + tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_sensitivity_friction_set_n2); + return tcase; +} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_sensitivity_friction_set.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_sensitivity_friction_set.c deleted file mode 100644 index c0311c7a..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_sensitivity_friction_set.c +++ /dev/null @@ -1,126 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_thumbscroll_sensitivity_friction_set elm_config_scroll_thumbscroll_sensitivity_friction_set() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_thumbscroll_sensitivity_friction_set - * @{ - * @objective Positive test checks if set thumbscroll sensitivity friction works properly and doesn't cause segmentation fault - * @n Input Data: 0.25 - * - * @procedure - * @step 1 Set Thumbscroll Sensitivity Friction to 0.25 - * @step 2 Get Thumbscroll Sensitivity Friction - * - * @passcondition Return value is 0.25 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_thumbscroll_sensitivity_friction_set_p) -{ - double res = -1.0; - - elm_config_scroll_thumbscroll_sensitivity_friction_set(0.25); - res = elm_config_scroll_thumbscroll_sensitivity_friction_get(); - if (fabs(res - 0.25) > 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_config_scroll_thumbscroll_sensitivity_friction_set - * @{ - * @objective Negative test No.1 checks if set thumbscroll sensitivity friction works properly and doesn't cause segmentation fault in case if set value is out of range - * @n Input Data: -10.0 - * - * @procedure - * @step 1 Set Thumbscroll Sensitivity Friction to -10 - * @step 2 Get Thumbscroll Sensitivity Friction - * - * @passcondition Return value is 0.1 and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_thumbscroll_sensitivity_friction_set_n1) -{ - double res = -1.0; - - elm_config_scroll_thumbscroll_sensitivity_friction_set(-10.0); - res = elm_config_scroll_thumbscroll_sensitivity_friction_get(); - if (fabs(res - 0.1) > 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_config_scroll_thumbscroll_sensitivity_friction_set - * @{ - * @objective Negative test No.2 checks if set thumbscroll sensitivity friction works properly and doesn't cause segmentation fault in case if set value is out of range - * @n Input Data: 10 - * - * @procedure - * @step 1 Set Thumbscroll Sensitivity Friction to 10 - * @step 2 Get Thumbscroll Sensitivity Friction - * - * @passcondition Return value is 1.0 and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_thumbscroll_sensitivity_friction_set_n2) -{ - double res = -1.0; - - elm_config_scroll_thumbscroll_sensitivity_friction_set(10.0); - res = elm_config_scroll_thumbscroll_sensitivity_friction_get(); - if (fabs(res - 1) > 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_config_scroll_thumbscroll_sensitivity_friction_set() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_sensitivity_friction_set"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_sensitivity_friction_set_p); - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_sensitivity_friction_set_n1); - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_sensitivity_friction_set_n2); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_threshold_get.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_threshold_get.c deleted file mode 100644 index d3dc786f..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_threshold_get.c +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_thumbscroll_threshold_get elm_config_scroll_thumbscroll_threshold_get() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_thumbscroll_threshold_get - * @{ - * @objective Positive test checks if get thumbscroll threshold works properly and doesn't cause segmentation fault - * @n Input Data: no parameters passed to function - * - * @procedure - * @step 1 Set Thumbscroll Threshold to 20 - * @step 2 Get Thumbscroll Threshold - * - * @passcondition Return value is 20 and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_thumbscroll_threshold_get_p) -{ - int res = -1; - - elm_config_scroll_thumbscroll_threshold_set(20); - res = elm_config_scroll_thumbscroll_threshold_get(); - if (res != 20) - { - 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_config_scroll_thumbscroll_threshold_get() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_threshold_get"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_threshold_get_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_threshold_get_set.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_threshold_get_set.c new file mode 100644 index 00000000..3229d71d --- /dev/null +++ b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_threshold_get_set.c @@ -0,0 +1,94 @@ +#include +#include +#include "../utc_elm_common.h" +#include "../../utc_negative_unitest.h" + +/** + * @addtogroup elm_scroll + * @{ + * @defgroup elm_config_scroll_thumbscroll_threshold_set elm_config_scroll_thumbscroll_threshold_set() + * + * @precondition + * @step 1 Initialize Elementary + */ +static void +setup(void) +{ + printf(" ============ Startup ============ \n"); + UTC_ELM_INIT(); +} + +static void +teardown(void) +{ + elm_shutdown(); + printf(" ============ Cleanup ============ \n"); +} + +/** + * @addtogroup elm_config_scroll_thumbscroll_threshold_set + * @{ + * @objective Positive test checks if set thumbscroll threshold works properly and doesn't cause segmentation fault + * @n Input Data: 20 + * + * @procedure + * @step 1 Set Thumbscroll Threshold to 20 + * @step 2 Get Thumbscroll Threshold + * + * @passcondition Return value is 20 and there is no segmentation fault + * @} + */ +START_TEST(utc_elm_config_scroll_thumbscroll_threshold_set_p) +{ + int res = -1; + + elm_config_scroll_thumbscroll_threshold_set(20); + res = elm_config_scroll_thumbscroll_threshold_get(); + if (res != 20) + { + 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_config_scroll_thumbscroll_threshold_set + * @{ + * @objective Negative test checks if set thumbscroll threshold works properly and doesn't cause segmentation fault if set value is negative + * @n Input Data: -10.0 + * + * @procedure + * @step 1 Set Thumbscroll Threshold to -10.0 + * @step 2 Get Thumbscroll Threshold + * + * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +START_TEST(utc_elm_config_scroll_thumbscroll_threshold_set_n) +{ + int res = -1; + + elm_config_scroll_thumbscroll_threshold_set(-10.0); + res = elm_config_scroll_thumbscroll_threshold_get(); + if (fabs(res) > 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 + +/** + *@} + */ + +TCase * _utc_elm_config_scroll_thumbscroll_threshold_get_set() +{ + TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_threshold_get_set"); + tcase_set_timeout(tcase, 30); + tcase_add_checked_fixture(tcase, setup, teardown); + tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_threshold_set_p); + tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_threshold_set_n); + return tcase; +} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_threshold_set.c b/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_threshold_set.c deleted file mode 100644 index 71a6a677..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_thumbscroll_threshold_set.c +++ /dev/null @@ -1,96 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_thumbscroll_threshold_set elm_config_scroll_thumbscroll_threshold_set() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_thumbscroll_threshold_set - * @{ - * @objective Positive test checks if set thumbscroll threshold works properly and doesn't cause segmentation fault - * @n Input Data: 20 - * - * @procedure - * @step 1 Set Thumbscroll Threshold to 20 - * @step 2 Get Thumbscroll Threshold - * - * @passcondition Return value is 20 and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_thumbscroll_threshold_set_p) -{ - int res = -1; - - elm_config_scroll_thumbscroll_threshold_set(20); - res = elm_config_scroll_thumbscroll_threshold_get(); - if (res != 20) - { - 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_config_scroll_thumbscroll_threshold_set - * @{ - * @objective Negative test checks if set thumbscroll threshold works properly and doesn't cause segmentation fault if set value is negative - * @n Input Data: -10.0 - * - * @procedure - * @step 1 Set Thumbscroll Threshold to -10.0 - * @step 2 Get Thumbscroll Threshold - * - * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_thumbscroll_threshold_set_n) -{ - int res = -1; - - elm_config_scroll_thumbscroll_threshold_set(-10.0); - res = elm_config_scroll_thumbscroll_threshold_get(); - if (fabs(res) > 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_config_scroll_thumbscroll_threshold_set() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_thumbscroll_threshold_set"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_threshold_set_p); - tcase_add_test(tcase, utc_elm_config_scroll_thumbscroll_threshold_set_n); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_zoom_friction_get.c b/TC/elementary/scroll/utc_elm_config_scroll_zoom_friction_get.c deleted file mode 100644 index c6643343..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_zoom_friction_get.c +++ /dev/null @@ -1,68 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_zoom_friction_get elm_config_scroll_zoom_friction_get() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_zoom_friction_get - * @{ - * @objective Positive test checks if get zoom friction works properly and doesn't cause segmentation fault - * @n Input Data: no parameters passed to function - * - * @procedure - * @step 1 Set Zoom Friction to 0.75 - * @step 2 Get Zoom Friction - * - * @passcondition Returned value is equal to 0.75 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_zoom_friction_get_p) -{ - double res = -1.0; - - elm_config_scroll_zoom_friction_set(0.75); - res = elm_config_scroll_zoom_friction_get(); - if (fabs(res - 0.75) > 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_config_scroll_zoom_friction_get() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_zoom_friction_get"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); - tcase_add_test(tcase, utc_elm_config_scroll_zoom_friction_get_p); - return tcase; -} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_zoom_friction_get_set.c b/TC/elementary/scroll/utc_elm_config_scroll_zoom_friction_get_set.c new file mode 100644 index 00000000..46b6aa9b --- /dev/null +++ b/TC/elementary/scroll/utc_elm_config_scroll_zoom_friction_get_set.c @@ -0,0 +1,102 @@ +#include +#include +#include "../utc_elm_common.h" +#include +#include "../../utc_negative_unitest.h" + +/** + * @addtogroup elm_scroll + * @{ + * @defgroup elm_config_scroll_zoom_friction_set elm_config_scroll_zoom_friction_set() + * + * @precondition + * @step 1 Initialize Elementary + */ +static void +setup(void) +{ + printf(" ============ Startup ============ \n"); + UTC_ELM_INIT(); +} + +static void +teardown(void) +{ + elm_shutdown(); + printf(" ============ Cleanup ============ \n"); +} + +/** + * @addtogroup elm_config_scroll_zoom_friction_set + * @{ + * @objective Positive test checks if set zoom friction works properly and doesn't cause segmentation fault + * @n Input Data: 0.75 + * + * @procedure + * @step 1 Set Zoom Friction to 0.75 + * @step 2 Get Zoom Friction + * + * @passcondition Returned value is equal to 0.75 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +START_TEST(utc_elm_config_scroll_zoom_friction_set_p) +{ + double res = -1.0; + + elm_config_scroll_zoom_friction_set(0.75); + res = elm_config_scroll_zoom_friction_get(); + if (fabs(res - 0.75) > 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_config_scroll_zoom_friction_set + * @{ + * @objective Negative test checks if set zoom friction works properly and doesn't cause segmentation fault if set value is negative + * @n Input Data: -10.0 + * + * @procedure + * @step 1 Set Zoom Friction to -10.0 + * @step 2 Get Zoom Friction + * + * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault + * @} + */ +#ifdef NOT_APPROVED_FOR_BUILD +START_TEST(utc_elm_config_scroll_zoom_friction_set_n) +{ + double res = -1.0; + + elm_config_scroll_zoom_friction_set(-10.0); + res = elm_config_scroll_zoom_friction_get(); + if (fabs(res) > 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 +#endif + +/** + *@} + */ + +TCase * _utc_elm_config_scroll_zoom_friction_get_set() +{ + TCase *tcase = tcase_create("utc_elm_config_scroll_zoom_friction_get_set"); + tcase_set_timeout(tcase, 30); + tcase_add_checked_fixture(tcase, setup, teardown); +#ifdef NOT_APPROVED_FOR_BUILD +#endif + tcase_add_test(tcase, utc_elm_config_scroll_zoom_friction_set_p); +#ifdef NOT_APPROVED_FOR_BUILD + tcase_add_test(tcase, utc_elm_config_scroll_zoom_friction_set_n); +#endif + return tcase; +} diff --git a/TC/elementary/scroll/utc_elm_config_scroll_zoom_friction_set.c b/TC/elementary/scroll/utc_elm_config_scroll_zoom_friction_set.c deleted file mode 100644 index e42e177c..00000000 --- a/TC/elementary/scroll/utc_elm_config_scroll_zoom_friction_set.c +++ /dev/null @@ -1,103 +0,0 @@ -#include -#include -#include "../utc_elm_common.h" -#include -#include "../../utc_negative_unitest.h" - -/** - * @addtogroup elm_scroll - * @{ - * @defgroup elm_config_scroll_zoom_friction_set elm_config_scroll_zoom_friction_set() - * - * @precondition - * @step 1 Initialize Elementary - */ -static void -setup(void) -{ - printf(" ============ Startup ============ \n"); - UTC_ELM_INIT(); -} - -static void -teardown(void) -{ - elm_shutdown(); - printf(" ============ Cleanup ============ \n"); -} - -/** - * @addtogroup elm_config_scroll_zoom_friction_set - * @{ - * @objective Positive test checks if set zoom friction works properly and doesn't cause segmentation fault - * @n Input Data: 0.75 - * - * @procedure - * @step 1 Set Zoom Friction to 0.75 - * @step 2 Get Zoom Friction - * - * @passcondition Returned value is equal to 0.75 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -START_TEST(utc_elm_config_scroll_zoom_friction_set_p) -{ - double res = -1.0; - - elm_config_scroll_zoom_friction_set(0.75); - res = elm_config_scroll_zoom_friction_get(); - if (fabs(res - 0.75) > 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_config_scroll_zoom_friction_set - * @{ - * @objective Negative test checks if set zoom friction works properly and doesn't cause segmentation fault if set value is negative - * @n Input Data: -10.0 - * - * @procedure - * @step 1 Set Zoom Friction to -10.0 - * @step 2 Get Zoom Friction - * - * @passcondition Returned value is equal to 0.0 in DBL_EPSILON range and there is no segmentation fault - * @} - */ -#ifdef NOT_APPROVED_FOR_BUILD -START_TEST(utc_elm_config_scroll_zoom_friction_set_n) -{ - double res = -1.0; - - elm_config_scroll_zoom_friction_set(-10.0); - res = elm_config_scroll_zoom_friction_get(); - if (fabs(res) > 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 -#endif - -/** - *@} - */ - -TCase * _utc_elm_config_scroll_zoom_friction_set() -{ - TCase *tcase = tcase_create("utc_elm_config_scroll_zoom_friction_set"); - tcase_set_timeout(tcase, 30); - tcase_add_checked_fixture(tcase, setup, teardown); -#ifdef NOT_APPROVED_FOR_BUILD -#endif - tcase_add_test(tcase, utc_elm_config_scroll_zoom_friction_set_p); -#ifdef NOT_APPROVED_FOR_BUILD - tcase_add_test(tcase, utc_elm_config_scroll_zoom_friction_set_n); -#endif - return tcase; -}