tests/elm: speed up all main loop timer execution
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 1 Feb 2019 19:42:40 +0000 (19:42 +0000)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 6 Feb 2019 22:20:24 +0000 (07:20 +0900)
commit2f1398f5ab1a2bfd66ba9d16aecc6a448b28649d
tree89871e76c36b1de783e36fe58639efc7cab818e5
parentadb261c2205a7f9a90c1cdaad32af1af3279a106
tests/elm: speed up all main loop timer execution

this spins a second loop which manages a timer to trigger the canvas tick
and increase the loop timer by a fixed interval on every timer call

by increasing the loop time manually, timers such as edje animation timers
which would usually take a very long time (e.g., 0.5s) to run will instead
complete almost instantly, making tests run much faster

the second loop is necessary in this case in order to accurately provide ticks
at a consistent interval without any modifications to timing

Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Differential Revision: https://phab.enlightenment.org/D6791
src/tests/elementary/efl_ui_suite.h
src/tests/elementary/elm_suite.h
src/tests/elementary/suite_helpers.c