qt5base-lts/tests/auto/corelib
Kari Oikarinen 1049d3f9db 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>
2018-06-26 05:51:15 +00:00
..
animation qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
codecs Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
global Make tests compile for Android 2018-06-25 08:01:19 +00:00
io Make tests compile for Android 2018-06-25 08:01:19 +00:00
itemmodels QSortFilterProxyModel: don't assert when old model gets destroyed 2018-05-26 11:24:53 +00:00
kernel tst_QTimer: Replace unconditional qWait()s with QSignalSpy 2018-06-26 05:51:15 +00:00
mimetypes QMimeDatabase: fix assert when fetching data for invalid mimetype 2018-04-06 07:19:01 +00:00
plugin tst_QLibrary: Ensure installation order of testdata libs 2018-03-02 07:20:04 +00:00
serialization QJsonDocument: Avoid overflow of string lengths 2018-05-14 10:52:47 +00:00
statemachine tst_QStateMachine: Don't use unconditional waits 2018-04-04 07:07:40 +00:00
thread Make tests compile for Android 2018-06-25 08:01:19 +00:00
tools Make tests compile for Android 2018-06-25 08:01:19 +00:00
corelib.pro Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00