qWaitForWindow* default timeouts are 5 seconds

A widget window can be expected to show up faster, but on a busy CI
machine, OpenGL windows can take longer than 1 second.

Change-Id: I572cc86bf4d8beebcc565db8d6f2ff78e55c2ac0
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Reviewed-by: David Faure (KDE) <faure@kde.org>
This commit is contained in:
Shawn Rutledge 2013-03-22 10:33:42 +01:00 committed by The Qt Project
parent 52cd53a03e
commit f217172d6d

View File

@ -70,7 +70,7 @@ namespace QTest
}
#ifdef QT_GUI_LIB
inline static bool qWaitForWindowActive(QWindow *window, int timeout = 1000)
inline static bool qWaitForWindowActive(QWindow *window, int timeout = 5000)
{
QElapsedTimer timer;
timer.start();
@ -99,7 +99,7 @@ namespace QTest
return window->isActive();
}
inline static bool qWaitForWindowExposed(QWindow *window, int timeout = 1000)
inline static bool qWaitForWindowExposed(QWindow *window, int timeout = 5000)
{
QElapsedTimer timer;
timer.start();