summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsview
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qgraphicsview')
-rw-r--r--tests/auto/qgraphicsview/tst_qgraphicsview.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
index 78fb4f3..921f7f8 100644
--- a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
+++ b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
@@ -2932,18 +2932,16 @@ void tst_QGraphicsView::task239729_noViewUpdate()
view = new QGraphicsView(&scene);
}
- view->show();
- QTest::qWaitForWindowShown(view);
- QTest::qWait(150);
-
EventSpy spy(view->viewport(), QEvent::Paint);
QCOMPARE(spy.count(), 0);
- QTest::qWait(100);
- QCOMPARE(spy.count(), 0);
+ view->show();
+ QTest::qWaitForWindowShown(view);
+
+ QTRY_COMPARE(spy.count(), 1);
scene.update();
QApplication::processEvents();
- QTRY_COMPARE(spy.count(), 1);
+ QTRY_COMPARE(spy.count(), 2);
delete view;
}