diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-07-07 14:44:20 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-07-12 11:25:45 +0200 |
commit | 17f89df44c6383cce8d614ff878b44ce7fc62a58 (patch) | |
tree | eabcea052419bc5df1142e792a0a02de17b09151 | |
parent | 5f0eb4a64ae95a5a1ed16834c51a05e27760ff47 (diff) |
Stabilize tst_QQuickPopup::macOS::activeFocusOnClose2
The button starts out zero-size with macOS style.
Change-Id: Ib960188c8103943c5466812de80785dd90353679
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit f19ae5c9d7c6c4c321b9149c303c66b4d00c8064)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tests/auto/qquickpopup/tst_qquickpopup.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qquickpopup/tst_qquickpopup.cpp b/tests/auto/qquickpopup/tst_qquickpopup.cpp index 8ab651a3..f932d18a 100644 --- a/tests/auto/qquickpopup/tst_qquickpopup.cpp +++ b/tests/auto/qquickpopup/tst_qquickpopup.cpp @@ -633,6 +633,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()); |