diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-02 07:47:16 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-02 07:47:16 (GMT) |
commit | f51b454100b4145350617ab3ff13bbf596deb2dc (patch) | |
tree | c1aa19201f57091c638c28d9ac9173f990c9b02e /tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp | |
parent | ea6d4e94c802f648e296eec0bde1661728d82024 (diff) | |
download | Qt-f51b454100b4145350617ab3ff13bbf596deb2dc.zip Qt-f51b454100b4145350617ab3ff13bbf596deb2dc.tar.gz Qt-f51b454100b4145350617ab3ff13bbf596deb2dc.tar.bz2 |
Stabilize tests on X11
Diffstat (limited to 'tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp')
-rw-r--r-- | tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp index 21f6269..297b6d3 100644 --- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp +++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp @@ -6306,6 +6306,7 @@ void tst_QGraphicsItem::itemStacksBehindParent() QGraphicsView view(&scene); view.show(); QTest::qWaitForWindowShown(&view); + QTRY_VERIFY(!paintedItems.isEmpty()); QTest::qWait(100); paintedItems.clear(); view.viewport()->update(); @@ -6315,7 +6316,7 @@ void tst_QGraphicsItem::itemStacksBehindParent() << grandChild121 << child12 << parent1 << grandChild211 << child21 << grandChild221 << child22 << parent2)); - QCOMPARE(paintedItems, QList<QGraphicsItem *>() + QTRY_COMPARE(paintedItems, QList<QGraphicsItem *>() << parent2 << child22 << grandChild221 << child21 << grandChild211 << parent1 << child12 << grandChild121 |