diff options
Diffstat (limited to 'tests/auto/widgets/itemviews/qlistview/tst_qlistview.cpp')
-rw-r--r-- | tests/auto/widgets/itemviews/qlistview/tst_qlistview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/widgets/itemviews/qlistview/tst_qlistview.cpp b/tests/auto/widgets/itemviews/qlistview/tst_qlistview.cpp index 507a41f3c6..fc671fdc9f 100644 --- a/tests/auto/widgets/itemviews/qlistview/tst_qlistview.cpp +++ b/tests/auto/widgets/itemviews/qlistview/tst_qlistview.cpp @@ -2456,10 +2456,10 @@ void tst_QListView::horizontalScrollingByVerticalWheelEvents() QVERIFY(lv.horizontalScrollBar()->value() > hValue); QApplication::sendEvent(lv.viewport(), &wheelUpEvent); - QVERIFY(lv.horizontalScrollBar()->value() == hValue); + QCOMPARE(lv.horizontalScrollBar()->value(), hValue); QApplication::sendEvent(lv.viewport(), &wheelLeftDownEvent); - QVERIFY(lv.horizontalScrollBar()->value() == hValue); + QCOMPARE(lv.horizontalScrollBar()->value(), hValue); // ensure that vertical wheel events are not converted when vertical // scroll bar is not visible but vertical scrolling is possible |