diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-30 12:46:40 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-30 13:26:02 (GMT) |
commit | cf8dcda1316198f2e54195cf7b7137c7ae05f91b (patch) | |
tree | 30e68f76066b260165e858c84ba082195d54604c /tests | |
parent | c5c58c2368f71c5d0067c9389c8ad04c41b66db5 (diff) | |
download | Qt-cf8dcda1316198f2e54195cf7b7137c7ae05f91b.zip Qt-cf8dcda1316198f2e54195cf7b7137c7ae05f91b.tar.gz Qt-cf8dcda1316198f2e54195cf7b7137c7ae05f91b.tar.bz2 |
Stabilize graphicsview test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qgraphicsview/tst_qgraphicsview.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp index 0c27079..78fb4f3 100644 --- a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp +++ b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp @@ -3160,11 +3160,12 @@ void tst_QGraphicsView::moveItemWhileScrolling() if (!adjustForAntialiasing) view.setOptimizationFlag(QGraphicsView::DontAdjustForAntialiasing); view.resize(200, 200); + view.painted = false; view.show(); QTest::qWaitForWindowShown(&view); + QApplication::processEvents(); QTRY_VERIFY(view.painted); view.painted = false; - view.lastPaintedRegion = QRegion(); view.horizontalScrollBar()->setValue(view.horizontalScrollBar()->value() + 10); view.rect->moveBy(0, 10); @@ -3366,6 +3367,7 @@ void tst_QGraphicsView::render() view.painted = false; view.show(); QTest::qWaitForWindowShown(&view); + QApplication::processEvents(); QTRY_VERIFY(view.painted > 0); RenderTester *r1 = new RenderTester(QRectF(0, 0, 50, 50)); |