qt5base-lts/tests/auto/widgets/dialogs
Tor Arne Vestbø 68511d41d5 qWaitFor: Prevent being stuck in QCoreApplication::processEvents
When using the overload of QCoreApplication::processEvents that takes a
maxtime argument, the function will keep processing events until there
are no more events, or until it times out.

The problem is that the function doesn't distinguish between events that
were on the event queue when the function was called, and events generated
by processing events as part of its own execution. If for example a widget
calls update() in its paintEvent, the function will spin for the entire
duration of maxtime.

That doesn't work for qWaitFor, where we need to check the predicate
between each pass, so we use the overload of processEvents that doesn't
take a maxtime. That's fine, as we have our own timeout logic.

Change-Id: I9738d7d0187c36d4a5ddfcd3fd075b0bd84583c4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2019-01-09 18:10:54 +00:00
..
qcolordialog Remove insignificant flag from qcolordialog.pro 2018-09-24 21:12:38 +00:00
qdialog tests: blacklist tst_QDialog::showFullScreen() on macOS 10.13 in CI 2018-08-22 14:32:38 +00:00
qerrormessage Updated license headers 2016-01-21 18:55:18 +00:00
qfiledialog Refactor tst_QFiledialog::clearLineEdit() 2018-08-24 12:00:31 +00:00
qfiledialog2 qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
qfilesystemmodel tst_qfilesystemmodel: Do not use nested calls of auto test functions 2018-10-25 11:24:08 +00:00
qfontdialog qtbase: Remove BLACKLIST files which are no longer active 2018-02-12 17:40:12 +00:00
qinputdialog Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qmessagebox Remove dead code 2019-01-04 09:42:14 +00:00
qprogressdialog tests/auto/widgets/dialogs: Avoid unconditional qWait()s 2018-05-14 10:39:00 +00:00
qsidebar winrt: make dialog auto tests pass 2018-06-22 05:02:43 +00:00
qwizard winrt: make dialog auto tests pass 2018-06-22 05:02:43 +00:00
dialogs.pro winrt: Remove qfiledialog and qmessagebox auto tests for now 2018-05-28 06:50:45 +00:00