From 04c780dcf681074623c11abb4786d75a018ac40d Mon Sep 17 00:00:00 2001 From: Ashish Kulkarni Date: Thu, 17 Apr 2014 16:27:35 +0530 Subject: increase timeouts to make tst_macgui autotest more stable Task-number: QTBUG-20984 Task-number: QTBUG-26372 Change-Id: I03e31e0e8c6428767cca91a8be6778ed08a2d783 Reviewed-by: Friedemann Kleint --- tests/auto/macgui/tst_macgui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/auto/macgui/tst_macgui.cpp b/tests/auto/macgui/tst_macgui.cpp index 379724d..281c4c9 100644 --- a/tests/auto/macgui/tst_macgui.cpp +++ b/tests/auto/macgui/tst_macgui.cpp @@ -222,7 +222,7 @@ void tst_MacGui::spinBoxArrowButtons() QSpinBox spinBox2(&colorWidget); spinBox2.move(0, 100); colorWidget.show(); - QTest::qWait(100); + QTest::qWait(500); // Grab an unfocused spin box. const QImage noFocus = grabWindowContents(&colorWidget).toImage(); @@ -230,9 +230,9 @@ void tst_MacGui::spinBoxArrowButtons() // Set focus by clicking the less button. InterfaceChildPair lessInterface = wn.find(QAccessible::Name, "Less", &spinBox); QVERIFY(lessInterface.iface); - const int delay = 500; + const int delay = 1000; clickLater(lessInterface, Qt::LeftButton, delay); - const int timeout = 1; + const int timeout = 4; QTestEventLoop::instance().enterLoop(timeout); // Grab a focused spin box. -- cgit v0.12