summaryrefslogtreecommitdiffstats
path: root/tests/auto/qabstractitemview
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-10 08:17:26 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-10 09:05:13 (GMT)
commitb8d44332bbbca1d065a07cba79ad179bd9c0197c (patch)
tree03bfe563238dc13cba07efb67f4f83594cdfe86d /tests/auto/qabstractitemview
parent53b4b458982fd9520ac710843fd5b68780adf159 (diff)
downloadQt-b8d44332bbbca1d065a07cba79ad179bd9c0197c.zip
Qt-b8d44332bbbca1d065a07cba79ad179bd9c0197c.tar.gz
Qt-b8d44332bbbca1d065a07cba79ad179bd9c0197c.tar.bz2
Stabilize some tests.
For the QFontMetrics test, the different way of computing the with of a text returs different value (1 to 2 pixel difference). So we need to make sure to use the same way to compute the with that the one used to ellide.
Diffstat (limited to 'tests/auto/qabstractitemview')
-rw-r--r--tests/auto/qabstractitemview/tst_qabstractitemview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qabstractitemview/tst_qabstractitemview.cpp b/tests/auto/qabstractitemview/tst_qabstractitemview.cpp
index 022778b..be2d882 100644
--- a/tests/auto/qabstractitemview/tst_qabstractitemview.cpp
+++ b/tests/auto/qabstractitemview/tst_qabstractitemview.cpp
@@ -1200,13 +1200,13 @@ void tst_QAbstractItemView::task250754_fontChange()
tree.setFont(font);
QTest::qWait(30);
- QVERIFY(!tree.verticalScrollBar()->isVisible());
+ QTRY_VERIFY(!tree.verticalScrollBar()->isVisible());
font.setPointSize(45);
tree.setFont(font);
QTest::qWait(30);
//now with the huge items, the scrollbar must be visible
- QVERIFY(tree.verticalScrollBar()->isVisible());
+ QTRY_VERIFY(tree.verticalScrollBar()->isVisible());
qApp->setStyleSheet(app_css);
}