summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-09 09:19:29 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-09 09:20:38 (GMT)
commit515828f43d1aeee3ad50f6da55a12afce43f1557 (patch)
treeb72c9cddd7811aa51d736ecc6cfab87e96c3e822 /tests/auto/qgraphicsview/tst_qgraphicsview.cpp
parentbb6aee6989aadfa1bcf4b36f302540440b3acc93 (diff)
downloadQt-515828f43d1aeee3ad50f6da55a12afce43f1557.zip
Qt-515828f43d1aeee3ad50f6da55a12afce43f1557.tar.gz
Qt-515828f43d1aeee3ad50f6da55a12afce43f1557.tar.bz2
More robust graphicsview test
Diffstat (limited to 'tests/auto/qgraphicsview/tst_qgraphicsview.cpp')
-rw-r--r--tests/auto/qgraphicsview/tst_qgraphicsview.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
index b52cb7d..bb0ea70 100644
--- a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
+++ b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
@@ -2173,14 +2173,12 @@ void tst_QGraphicsView::viewportUpdateMode()
qt_x11_wait_for_window_manager(&view);
#endif
QTest::qWait(50);
+ QTRY_VERIFY(!view.lastUpdateRegions.isEmpty());
view.lastUpdateRegions.clear();
// Issue two scene updates.
scene.update(QRectF(0, 0, 10, 10));
scene.update(QRectF(20, 0, 10, 10));
-#ifdef Q_WS_X11
- qt_x11_wait_for_window_manager(&view);
-#endif
QTest::qWait(50);
// The view gets two updates for the update scene updates.