summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshish Kulkarni <kulkarni.ashish@gmail.com>2014-04-17 10:57:35 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-17 11:13:55 (GMT)
commit04c780dcf681074623c11abb4786d75a018ac40d (patch)
tree297a5b0f9e05fe115483b66ab75c2b664cc523d0
parent20ff5ac1014d82c1200b3ab0c9e23e149903dc74 (diff)
downloadQt-04c780dcf681074623c11abb4786d75a018ac40d.zip
Qt-04c780dcf681074623c11abb4786d75a018ac40d.tar.gz
Qt-04c780dcf681074623c11abb4786d75a018ac40d.tar.bz2
increase timeouts to make tst_macgui autotest more stable
Task-number: QTBUG-20984 Task-number: QTBUG-26372 Change-Id: I03e31e0e8c6428767cca91a8be6778ed08a2d783 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
-rw-r--r--tests/auto/macgui/tst_macgui.cpp6
1 files 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.