tst_QSizeGrip::hideAndShowOnWindowStateChange is flaky on Ubuntu
tst_QSizeGrip::hideAndShowOnWindowStateChange is flaky on Ubuntu where the widget is not set to fullscreen when it should. Wait for the the widget to be exposed when shown the first time. Fix flakiness on Ubuntu 24.04 Pick-to: 6.5 Change-Id: I9f5ea9ebb58c7505f841e5420dd2c15e5f0f2799 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit 5ced648febe51b8788bbc38d7a578d4f43b720aa) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit a40fdae4e7fa3c1734c92771bc5cf65e31ad8809)
This commit is contained in:
parent
485f1aa118
commit
dbb9888a45
@ -85,6 +85,7 @@ void tst_QSizeGrip::hideAndShowOnWindowStateChange()
|
||||
else
|
||||
widget->show();
|
||||
QTRY_VERIFY(sizeGrip->isVisible());
|
||||
QVERIFY(QTest::qWaitForWindowExposed(widget.data()));
|
||||
|
||||
widget->showFullScreen();
|
||||
QTRY_VERIFY(!sizeGrip->isVisible());
|
||||
|
Loading…
x
Reference in New Issue
Block a user