summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsitem
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-22 16:56:24 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-22 16:57:11 (GMT)
commitf5d6022f4ca4af32de2b683dfb9f41173e7c8934 (patch)
treef573bdfe72a6bee62372d46e624b118fa26c6558 /tests/auto/qgraphicsitem
parent0691350e14632dea6c12a2d37e605dc0628b4ceb (diff)
downloadQt-f5d6022f4ca4af32de2b683dfb9f41173e7c8934.zip
Qt-f5d6022f4ca4af32de2b683dfb9f41173e7c8934.tar.gz
Qt-f5d6022f4ca4af32de2b683dfb9f41173e7c8934.tar.bz2
Stabilize more test
Diffstat (limited to 'tests/auto/qgraphicsitem')
-rw-r--r--tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
index 6f37b70..b0e4b9d 100644
--- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
+++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
@@ -6736,10 +6736,10 @@ void tst_QGraphicsItem::updateCachedItemAfterMove()
scene.addItem(tester);
QGraphicsView view(&scene);
view.show();
-#ifdef Q_WS_X11
- qt_x11_wait_for_window_manager(&view);
-#endif
+ QTest::qWaitForWindowShown(&view);
+
QTest::qWait(125);
+ QTRY_VERIFY(tester->repaints > 0);
tester->repaints = 0;
// Move the item, should not cause repaints