diff options
author | Bjoern Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-04-27 16:07:00 (GMT) |
---|---|---|
committer | Bjoern Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-04-27 16:07:00 (GMT) |
commit | 572d3b04aacfd211ea930ac5460562d8b3f6232b (patch) | |
tree | 9fa55dfffc1adf635806f401770d278010e0e42b /tests | |
parent | 8ebe882b077fffedc3ff80fb80d2e181d5e56ab8 (diff) | |
download | Qt-572d3b04aacfd211ea930ac5460562d8b3f6232b.zip Qt-572d3b04aacfd211ea930ac5460562d8b3f6232b.tar.gz Qt-572d3b04aacfd211ea930ac5460562d8b3f6232b.tar.bz2 |
Stabilize auto test added in 8ebe882b077fffedc3ff80fb80d2e181d5e56ab8
QWidget::repaint() is not immediate on the Mac; it has to go through
the event loop.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qgl/tst_qgl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qgl/tst_qgl.cpp b/tests/auto/qgl/tst_qgl.cpp index f982e6d..69141f3 100644 --- a/tests/auto/qgl/tst_qgl.cpp +++ b/tests/auto/qgl/tst_qgl.cpp @@ -458,6 +458,10 @@ void tst_QGL::partialGLWidgetUpdates() widget.paintEventRegion = QRegion(); widget.repaint(50, 50, 50, 50); +#ifdef Q_WS_MAC + // repaint() is not immediate on the Mac; it has to go through the event loop. + QTest::qWait(200); +#endif if (supportsPartialUpdates) QCOMPARE(widget.paintEventRegion, QRegion(50, 50, 50, 50)); else |