test_ui_slder: remove meaningless printf when reaching the limit

Summary:
Without new internal min/max properties, this may be the only way
to not give redundant printing of the meaningless value.

@ref T8188

Test Plan:
1. elementary_test
2. EFl.Ui.Slider
3. On the limit slider, move the knob above the limit

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T8188

Differential Revision: https://phab.enlightenment.org/D9793
This commit is contained in:
WooHyun Jung 2019-08-30 08:42:41 -04:00 committed by Mike Blumenkrantz
parent d6156d23d8
commit 3b3889bdb5
1 changed files with 3 additions and 2 deletions

View File

@ -11,8 +11,9 @@ _slider_changed_cb(void *data EINA_UNUSED, const Efl_Event *ev)
val = efl_ui_range_value_get(ev->object);
printf("val = %f\n", val);
if (val > 100)
if (val <= 100)
printf("val = %f\n", val);
else
efl_ui_range_value_set(ev->object, 100);
}