aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2021-07-07 14:44:20 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2021-07-07 22:36:03 +0200
commitf19ae5c9d7c6c4c321b9149c303c66b4d00c8064 (patch)
tree1272865c8ac3deed15aff6a52282c59b59a23a37 /tests/auto
parent3cdf29334f6dba7c6d50be2524c8c67810c61391 (diff)
Stabilize tst_QQuickPopup::macOS::activeFocusOnClose2
The button starts out zero-size with macOS style. Pick-to: 6.2 Change-Id: Ib960188c8103943c5466812de80785dd90353679 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qquickpopup/tst_qquickpopup.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qquickpopup/tst_qquickpopup.cpp b/tests/auto/qquickpopup/tst_qquickpopup.cpp
index 058a2704..c709c17d 100644
--- a/tests/auto/qquickpopup/tst_qquickpopup.cpp
+++ b/tests/auto/qquickpopup/tst_qquickpopup.cpp
@@ -635,6 +635,7 @@ void tst_QQuickPopup::activeFocusOnClose2()
QVERIFY(popup2->hasActiveFocus());
// Causes popup1.contentItem.forceActiveFocus() to be called, then closes popup2.
+ QTRY_VERIFY(closePopup2Button->width() > 0);
QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier,
closePopup2Button->mapToScene(QPointF(closePopup2Button->width() / 2, closePopup2Button->height() / 2)).toPoint());
QTRY_VERIFY(!popup2->isVisible());