diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-12 10:59:16 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-12 10:59:16 (GMT) |
commit | 92dab5ea276732944915a9423fc174db6d84e572 (patch) | |
tree | 926705c7afcbc9e7ee37dd35a7d4e69f9435df0c /tests/auto/qgraphicsview | |
parent | acc509a77b6deeed0b3994a933d5cde291e17df6 (diff) | |
download | Qt-92dab5ea276732944915a9423fc174db6d84e572.zip Qt-92dab5ea276732944915a9423fc174db6d84e572.tar.gz Qt-92dab5ea276732944915a9423fc174db6d84e572.tar.bz2 |
GraphicsView tests on mac
When a widget is shown we get two paint avent on Mac
Diffstat (limited to 'tests/auto/qgraphicsview')
-rw-r--r-- | tests/auto/qgraphicsview/tst_qgraphicsview.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp index df3ebef..f7c8d35 100644 --- a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp +++ b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp @@ -115,6 +115,7 @@ public: } int count() const { return _count; } + void reset() { _count = 0; } protected: bool eventFilter(QObject *watched, QEvent *event) @@ -2938,10 +2939,11 @@ void tst_QGraphicsView::task239729_noViewUpdate() view->show(); QTest::qWaitForWindowShown(view); - QTRY_COMPARE(spy.count(), 1); + QTRY_VERIFY(spy.count() > 1); + spy.reset(); scene.update(); QApplication::processEvents(); - QTRY_COMPARE(spy.count(), 2); + QTRY_COMPARE(spy.count(), 1); delete view; } |