qt5base-lts/tests/auto/widgets
Axel Spoerl b1054d45e9 Fix flakiness in tst_QDoubleSpinBox / editingFinished
setFocus() was called on a double spinbox without calling show()
first. That causes flakiness on XCB when checking focus afterwards.
The test can still fail, when focus is acquired by e.g. a system
popup.

This patch adds a show() call before setFocus() to stabilize normal
behavior. In case the double spin box is shown, but cannot acquire
focus, the test is skipped.

Fixes: QTBUG-70088
Change-Id: If02e88800a31b09a1da63dcc074eb8bb1b0df391
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2022-10-18 11:31:25 +00:00
..
dialogs tests: skip tst_QDialog::showAsTool() on Wayland 2022-10-07 13:20:13 +02:00
effects Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
graphicsview Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
itemviews Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
kernel tests: skip tst_QWidget::touchEventSynthesizedMouseEvent() on Wayland 2022-10-14 17:18:53 +02:00
styles Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
util tests: skip tst_QCompleter::showPopupInGraphicsView() on Wayland 2022-10-14 17:18:53 +02:00
widgets Fix flakiness in tst_QDoubleSpinBox / editingFinished 2022-10-18 11:31:25 +00:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00