summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-15 13:23:07 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-15 13:24:51 (GMT)
commitf42f5c457b3368adb4c92e521dc56969f138bdd3 (patch)
treeb4dccbbdb44cb5fa78dba4b63935cf6248131f6d /tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp
parent4c779ca7cd74b77ec5f7e480b9762acccce3c4ad (diff)
downloadQt-f42f5c457b3368adb4c92e521dc56969f138bdd3.zip
Qt-f42f5c457b3368adb4c92e521dc56969f138bdd3.tar.gz
Qt-f42f5c457b3368adb4c92e521dc56969f138bdd3.tar.bz2
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/tst_qgraphicsproxywidget.cpp')
-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 626a691..c86d9e3 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;