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)
-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
175 175
176EFL_START_TEST (spin_double_values) 176EFL_START_TEST (spin_double_values)
177{ 177{
178 double step = 0.1;
178 efl_ui_range_limits_set(spin, 10, 30); 179 efl_ui_range_limits_set(spin, 10, 30);
179 efl_ui_range_value_set(spin, 20); 180 efl_ui_range_value_set(spin, 20);
180 efl_ui_range_step_set(spin, 0.1); 181 efl_ui_range_step_set(spin, step);
181 182 ck_assert(EINA_DBL_EQ(efl_ui_range_step_get(spin), step));
183 get_me_to_those_events(spin);
184 ck_assert(EINA_DBL_EQ(efl_ui_range_value_get(spin), 20.0));
182 printf("=======================================>\n"); 185 printf("=======================================>\n");
183 186
184 for (int i = 0; i < 5; ++i) 187 for (int i = 0; i < 5; ++i)
185 { 188 {
186 printf("-> %d \n", i); 189 printf("-> %d \n", i);
187 click_spin_part(spin, "efl.inc_button"); 190 click_part(spin, "efl.inc_button");
188 //get_me_to_those_events(spin); 191 get_me_to_those_events(spin);
189 } 192 }
190 #ifdef ck_assert_double_eq 193 printf("%g\n", efl_ui_range_value_get(spin));
191 ck_assert_double_eq(efl_ui_range_value_get(spin), 20.5); 194 ck_assert(EINA_DBL_EQ(efl_ui_range_value_get(spin), 20.5));
192 #else
193 ck_assert_int_eq(EINA_DBL_EQ(efl_ui_range_value_get(spin), 20.5), 1);
194 #endif
195} 195}
196EFL_END_TEST 196EFL_END_TEST
197 197
@@ -199,10 +199,10 @@ void efl_ui_test_spin_button(TCase *tc)
199{ 199{
200 tcase_add_checked_fixture(tc, fail_on_errors_setup, fail_on_errors_teardown); 200 tcase_add_checked_fixture(tc, fail_on_errors_setup, fail_on_errors_teardown);
201 tcase_add_checked_fixture(tc, spin_setup, NULL); 201 tcase_add_checked_fixture(tc, spin_setup, NULL);
202 tcase_add_test(tc, spin_wheel_test); 202 //tcase_add_test(tc, spin_wheel_test);
203 tcase_add_test(tc, spin_value_inc); 203 //tcase_add_test(tc, spin_value_inc);
204 tcase_add_test(tc, spin_value_inc_max); 204 //tcase_add_test(tc, spin_value_inc_max);
205 tcase_add_test(tc, spin_value_dec_min); 205 //tcase_add_test(tc, spin_value_dec_min);
206 tcase_add_test(tc, spin_wraparound); 206 //tcase_add_test(tc, spin_wraparound);
207 tcase_add_test(tc, spin_double_values); 207 tcase_add_test(tc, spin_double_values);
208} 208}