summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestsystem.h
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2011-08-17 15:40:46 +1000
committerQt by Nokia <qt-info@nokia.com>2011-08-18 05:09:42 +0200
commit508433df15a6c56db914b5c3b49667552867b7a6 (patch)
treebee3c0e923140f5b56b47a0c8d5b4f457d4f5216 /src/testlib/qtestsystem.h
parent4482dcda21bb765ad817384ab44180e9f0dcef3a (diff)
Stabilize autotests using QTest::qWaitForWindowShown on non-X11.
X11 is currently the only platform with a "real" implementation of QTest::qWaitForWindowShown. All others merely process events for some fixed interval, and assume that this is sufficient for the window to be placed. In practice, the current interval is too short for slower machines. Change-Id: I956cd747d0b30577f5072a9a08da88dabc76906c Reviewed-on: http://codereview.qt.nokia.com/3060 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'src/testlib/qtestsystem.h')
-rw-r--r--src/testlib/qtestsystem.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/testlib/qtestsystem.h b/src/testlib/qtestsystem.h
index 6805bb7b6a..de20abeeee 100644
--- a/src/testlib/qtestsystem.h
+++ b/src/testlib/qtestsystem.h
@@ -76,12 +76,9 @@ namespace QTest
#if defined(Q_WS_X11)
qt_x11_wait_for_window_manager(window);
QCoreApplication::processEvents();
-#elif defined(Q_WS_QWS)
- Q_UNUSED(window);
- qWait(100);
#else
Q_UNUSED(window);
- qWait(50);
+ qWait(200);
#endif
return true;
}