summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2010-03-24 13:52:57 +0100
committerOlivier Goffart <ogoffart@trolltech.com>2010-03-24 13:52:57 +0100
commit96bd304a62f88dc097d5ac4f16d60fd8751227fd (patch)
tree7e70ae068acabb052f9aa37bf2025b417174996c
parenta29e6b6d95ddebf7a7e632936360fc5e4f809a37 (diff)
downloadqt4-tools-96bd304a62f88dc097d5ac4f16d60fd8751227fd.tar.gz
Stabilize QGraphicsEffect test on X11
-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 02899ae786..49b840f959 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