summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2010-03-24 12:52:57 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2010-03-24 12:52:57 (GMT)
commit96bd304a62f88dc097d5ac4f16d60fd8751227fd (patch)
tree7e70ae068acabb052f9aa37bf2025b417174996c /tests
parenta29e6b6d95ddebf7a7e632936360fc5e4f809a37 (diff)
downloadQt-96bd304a62f88dc097d5ac4f16d60fd8751227fd.zip
Qt-96bd304a62f88dc097d5ac4f16d60fd8751227fd.tar.gz
Qt-96bd304a62f88dc097d5ac4f16d60fd8751227fd.tar.bz2
Stabilize QGraphicsEffect test on X11
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp b/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp
index 02899ae..49b840f 100644
--- a/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp
+++ b/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp
@@ -512,6 +512,7 @@ void tst_QGraphicsEffect::drawPixmapItem()
QGraphicsView view(&scene);
view.show();
QTest::qWaitForWindowShown(&view);
+ QTRY_VERIFY(effect->repaints >= 1);
item->rotate(180);
QTest::qWait(50);
@@ -642,7 +643,7 @@ void tst_QGraphicsEffect::childrenVisibilityShouldInvalidateCache()
view.show();
QApplication::setActiveWindow(&view);
QTest::qWaitForWindowShown(&view);
- QCOMPARE(parent.nbPaint, 1);
+ QTRY_COMPARE(parent.nbPaint, 1);
//we set an effect on the parent
parent.setGraphicsEffect(new QGraphicsDropShadowEffect(&parent));
//flush the events