summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellogles3/qtlogo.png
diff options
context:
space:
mode:
authorKari Oikarinen <kari.oikarinen@qt.io>2018-03-27 16:19:07 +0300
committerKari Oikarinen <kari.oikarinen@qt.io>2018-06-26 05:51:15 +0000
commit1049d3f9db2b9bbdf5438b9f53849b82a2286848 (patch)
tree23d290cfea9d5e020761abfe739e23e2ebef81dc /examples/opengl/hellogles3/qtlogo.png
parentc5307203f5c0b0e588cc93e70764c090dd4c2ce0 (diff)
tst_QTimer: Replace unconditional qWait()s with QSignalSpy
Where possible. Sometimes the replacement is QTRY_COMPARE instead. Also don't use QTestEventLoop directly when it can also be replaced with QSignalSpy use. Remove the TimerHelper class, since its uses can be done with QSignalSpy (and a lambda when remainingTime is checked). Although checking static single-shot timers still needs a target object, so use a stripped down version in those tests. remainingTimeDuringActivation() was not actually testing the repeating case, but single-shot case twice, so fix that. In the repeating case the remaining time is exactly 20 ms on my machine, but QEMU emulation seems to be slow enough for time to advance before the lambda is executed, so relax the conditions. Task-number: QTBUG-63992 Change-Id: Iae92ff7862a13d36e695eec63b54403ec872f2b4 Reviewed-by: Sami Nurmenniemi <sami.nurmenniemi@qt.io> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io> Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'examples/opengl/hellogles3/qtlogo.png')
0 files changed, 0 insertions, 0 deletions