diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2010-03-24 13:52:57 +0100 |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2010-03-24 13:52:57 +0100 |
commit | 96bd304a62f88dc097d5ac4f16d60fd8751227fd (patch) | |
tree | 7e70ae068acabb052f9aa37bf2025b417174996c | |
parent | a29e6b6d95ddebf7a7e632936360fc5e4f809a37 (diff) | |
download | qt4-tools-96bd304a62f88dc097d5ac4f16d60fd8751227fd.tar.gz |
Stabilize QGraphicsEffect test on X11
-rw-r--r-- | tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp | 3 |
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 |