diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2019-09-03 13:20:29 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2019-09-06 09:16:27 +0200 |
commit | 1e99cb6e809ff0c8647c5017c11ead68ae1a591d (patch) | |
tree | 4734d76d1e7e77b9306aac13cdad91938e34fcd4 /tests/auto/qquickpopup | |
parent | 7c1b29575db0f1e892d68fb2bd0cf894f18fafd5 (diff) |
Fix flakiness in tst_qquickdrawer tests
Although it's not ideal to add arbitrary delays to tests, it does
reflect a more realistic testing environment, and more importantly,
seems to fix the flakiness on OpenSUSE.
(cherry picked from commit 97fc102cd079f32cc1a4f00a764ceea981699fc0)
Fixes: QTBUG-77946
Change-Id: I2998611759106386091d7375b31e56523c95371f
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'tests/auto/qquickpopup')
-rw-r--r-- | tests/auto/qquickpopup/tst_qquickpopup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qquickpopup/tst_qquickpopup.cpp b/tests/auto/qquickpopup/tst_qquickpopup.cpp index 81b2d583..4046bd3d 100644 --- a/tests/auto/qquickpopup/tst_qquickpopup.cpp +++ b/tests/auto/qquickpopup/tst_qquickpopup.cpp @@ -493,7 +493,7 @@ void tst_QQuickPopup::closePolicy() QTRY_VERIFY(popup->isOpened()); // press outside popup and its parent - QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1)); + QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1), 50); if (closePolicy.testFlag(QQuickPopup::CloseOnPressOutside) || closePolicy.testFlag(QQuickPopup::CloseOnPressOutsideParent)) QTRY_VERIFY(!popup->isVisible()); else |