qt5base-lts/tests/auto/widgets
Axel Spoerl 99aadcad5e Stabilize flakiness in tst_QWidget::multipleToplevelFocusCheck()
multipleToplevelFocusCheck() occasionally failed on XCB because
QApplication::activeWindow() was nullptr immediately after
qWaitForWindowActive() returned true.

This patch replaces QCOMPARE on QGuiApplicaiton::activeWindow() with
QTRY_COMPARE in order to continue spinning the event loop until the
condition has been met. It adds QWidget::activateWindow after show()
to ensure focus is acquired also when another window has received
focus in the meanwhile.

Pick-to: 6.2 6.4
Change-Id: If84eb8b77c5a6b16af271334a1fe5eb92c05644b
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2022-11-11 17:48:51 +01:00
..
dialogs Remove unused tst_qfontdialog_mac_helpers.mm 2022-11-11 17:48:50 +01:00
effects Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
graphicsview tst_QGraphicsEffectSource: Reset effect repaint count after flushing events 2022-11-08 19:44:59 +01:00
itemviews Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
kernel Stabilize flakiness in tst_QWidget::multipleToplevelFocusCheck() 2022-11-11 17:48:51 +01:00
styles Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
util Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
widgets Stabilize flakiness in tst_QOpenGLWidget 2022-11-08 21:51:14 +01:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00