diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-05 19:44:05 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-05 19:44:55 (GMT) |
commit | c7b091351d6fdf5fda5f38a94af24a395252249f (patch) | |
tree | d6be6ee3261dd3e899094e54faddbfdcbc73baf7 /tests/auto/qgraphicsview | |
parent | 8cac1e7fe5bfda7e876d03d1407f616f89bd74f8 (diff) | |
download | Qt-c7b091351d6fdf5fda5f38a94af24a395252249f.zip Qt-c7b091351d6fdf5fda5f38a94af24a395252249f.tar.gz Qt-c7b091351d6fdf5fda5f38a94af24a395252249f.tar.bz2 |
Stabilize tests on X11
Diffstat (limited to 'tests/auto/qgraphicsview')
-rw-r--r-- | tests/auto/qgraphicsview/tst_qgraphicsview.cpp | 12 |
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; } |