qt5base-lts/tests/auto
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
..
bic/data Add binary compatibility file generated against 6.4.0 2022-11-09 13:18:42 +03:00
cmake tests: fix configuring with -no-feature-gui 2022-10-29 01:04:09 +02:00
concurrent Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
corelib Add more tests of QLocale and "single character" data that aren't 2022-11-11 16:32:53 +01:00
dbus Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
gui emit QWindow::windowStateChanged only when state has changed 2022-11-11 11:21:32 +01:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Windows: Inform accessibility system about the focused child item 2022-11-11 10:21:32 +00:00
printsupport Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
shared Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sql Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
testlib Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
tools Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
wasm Fix typo in QWasmWindowStack's name 2022-10-20 16:36:23 +02:00
widgets Stabilize flakiness in tst_QWidget::multipleToplevelFocusCheck() 2022-11-11 17:48:51 +01:00
xml Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
network-settings.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00