summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-01-02 14:01:15 -0500
committerMike Blumenkrantz <zmike@samsung.com>2020-01-02 14:01:15 -0500
commitcf88a77c845b9cdcde8f3338a90ff3ff6b73981a (patch)
treebfcef8b69dd1bcf246b628aa6f53bd40b9fec03c
parent2553005a9606ac642c8db80bff6da1dfc5bb80ca (diff)
downloadefl-devs/bu5hm4n/work_spin.tar.gz
-rw-r--r--src/tests/elementary/efl_ui_test_spin_button.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/tests/elementary/efl_ui_test_spin_button.c b/src/tests/elementary/efl_ui_test_spin_button.c
index 22d919aa4d..29e37c0971 100644
--- a/src/tests/elementary/efl_ui_test_spin_button.c
+++ b/src/tests/elementary/efl_ui_test_spin_button.c
@@ -175,23 +175,23 @@ EFL_END_TEST
EFL_START_TEST (spin_double_values)
{
+ double step = 0.1;
efl_ui_range_limits_set(spin, 10, 30);
efl_ui_range_value_set(spin, 20);
- efl_ui_range_step_set(spin, 0.1);
-
+ efl_ui_range_step_set(spin, step);
+ ck_assert(EINA_DBL_EQ(efl_ui_range_step_get(spin), step));
+ get_me_to_those_events(spin);
+ ck_assert(EINA_DBL_EQ(efl_ui_range_value_get(spin), 20.0));
printf("=======================================>\n");
for (int i = 0; i < 5; ++i)
{
printf("-> %d \n", i);
- click_spin_part(spin, "efl.inc_button");
- //get_me_to_those_events(spin);
+ click_part(spin, "efl.inc_button");
+ get_me_to_those_events(spin);
}
- #ifdef ck_assert_double_eq
- ck_assert_double_eq(efl_ui_range_value_get(spin), 20.5);
- #else
- ck_assert_int_eq(EINA_DBL_EQ(efl_ui_range_value_get(spin), 20.5), 1);
- #endif
+ printf("%g\n", efl_ui_range_value_get(spin));
+ ck_assert(EINA_DBL_EQ(efl_ui_range_value_get(spin), 20.5));
}
EFL_END_TEST
@@ -199,10 +199,10 @@ void efl_ui_test_spin_button(TCase *tc)
{
tcase_add_checked_fixture(tc, fail_on_errors_setup, fail_on_errors_teardown);
tcase_add_checked_fixture(tc, spin_setup, NULL);
- tcase_add_test(tc, spin_wheel_test);
- tcase_add_test(tc, spin_value_inc);
- tcase_add_test(tc, spin_value_inc_max);
- tcase_add_test(tc, spin_value_dec_min);
- tcase_add_test(tc, spin_wraparound);
+ //tcase_add_test(tc, spin_wheel_test);
+ //tcase_add_test(tc, spin_value_inc);
+ //tcase_add_test(tc, spin_value_inc_max);
+ //tcase_add_test(tc, spin_value_dec_min);
+ //tcase_add_test(tc, spin_wraparound);
tcase_add_test(tc, spin_double_values);
}