summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsproxywidget
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-15 15:23:07 +0200
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-15 15:24:51 +0200
commitf42f5c457b3368adb4c92e521dc56969f138bdd3 (patch)
treeb4dccbbdb44cb5fa78dba4b63935cf6248131f6d /tests/auto/qgraphicsproxywidget
parent4c779ca7cd74b77ec5f7e480b9762acccce3c4ad (diff)
Make the scrollUpdate test function work.
We could sometimes have more than two paint events even before reaching QTRY_COMPARE, thus it would fail. The test failed on Windows.
Diffstat (limited to 'tests/auto/qgraphicsproxywidget')
-rw-r--r--tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp b/tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp
index 626a69109d..c86d9e33b3 100644
--- a/tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp
+++ b/tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp
@@ -1507,7 +1507,7 @@ void tst_QGraphicsProxyWidget::scrollUpdate()
#ifdef Q_WS_X11
qt_x11_wait_for_window_manager(&view);
#endif
- QTRY_COMPARE(view.npaints, 1);
+ QTRY_VERIFY(view.npaints >= 1);
QTest::qWait(20);
widget->paintEventRegion = QRegion();
widget->npaints = 0;