summaryrefslogtreecommitdiff
path: root/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-10-05 21:44:05 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-10-05 21:44:55 +0200
commitc7b091351d6fdf5fda5f38a94af24a395252249f (patch)
treed6be6ee3261dd3e899094e54faddbfdcbc73baf7 /tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
parent8cac1e7fe5bfda7e876d03d1407f616f89bd74f8 (diff)
downloadqt4-tools-c7b091351d6fdf5fda5f38a94af24a395252249f.tar.gz
Stabilize tests on X11
Diffstat (limited to 'tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp')
-rw-r--r--tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
index e2e8c5f0f6..edea6b8fbe 100644
--- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
+++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
@@ -6444,14 +6444,12 @@ void tst_QGraphicsItem::nestedClipping()
QGraphicsView view(&scene);
view.setOptimizationFlag(QGraphicsView::IndirectPainting);
view.show();
-#ifdef Q_WS_X11
- qt_x11_wait_for_window_manager(&view);
-#endif
- QTest::qWait(250);
+ QTest::qWaitForWindowShown(&view);
+ QTest::qWait(25);
QList<QGraphicsItem *> expected;
expected << root << l1 << l2 << l3;
- QCOMPARE(scene.drawnItems, expected);
+ QTRY_COMPARE(scene.drawnItems, expected);
QImage image(200, 200, QImage::Format_ARGB32_Premultiplied);
image.fill(0);