diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-08 11:52:15 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-08 14:12:14 (GMT) |
commit | e38529caa8e188b83c529e3eaca4eab8b8ab393d (patch) | |
tree | bfe8af60e76627fb3954dfe73bd35b043a358dfa /tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp | |
parent | 712bdb01662a5724fa593937cfbb447f936998d4 (diff) | |
download | Qt-e38529caa8e188b83c529e3eaca4eab8b8ab393d.zip Qt-e38529caa8e188b83c529e3eaca4eab8b8ab393d.tar.gz Qt-e38529caa8e188b83c529e3eaca4eab8b8ab393d.tar.bz2 |
Stabilize Tests
Diffstat (limited to 'tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp')
-rw-r--r-- | tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp b/tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp index 8459331..f5e9acb 100644 --- a/tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp +++ b/tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp @@ -2819,17 +2819,15 @@ void tst_QGraphicsScene::update2() CustomView view; view.setScene(&scene); view.show(); -#ifdef Q_WS_X11 - qt_x11_wait_for_window_manager(&view); -#endif - QTest::qWait(250); + QTest::qWaitForWindowShown(&view); + QTRY_VERIFY(view.repaints >= 1); view.repaints = 0; // Make sure QGraphicsScene::update only requires one event-loop iteration // before the view is updated. scene.update(); qApp->processEvents(); - QCOMPARE(view.repaints, 1); + QTRY_COMPARE(view.repaints, 1); view.repaints = 0; // The same for partial scene updates. |