diff options
author | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2018-11-05 10:15:28 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2018-11-05 17:23:54 +0000 |
commit | 0fce840dd2a9c4f53c1ee6904b92b3113d088f2a (patch) | |
tree | 00e7a7a048325da3b212575c54e3e6c2227b9e0d /tests/auto/quick/qquicklistview/tst_qquicklistview.cpp | |
parent | 1a0b06bca7e6e23aede9dc624c7e4037cf486105 (diff) |
Fix usage of QTRY_COMPARE in tst_qquicklistview
Comparing two ints with unchanging values will not work on the second
attempt either.
Found by Joni Poikelin in an attempt to fix QTBUG-63477.
Change-Id: I81aba0b8f7f4b3f7236d958e5c519b5f0de23799
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests/auto/quick/qquicklistview/tst_qquicklistview.cpp')
-rw-r--r-- | tests/auto/quick/qquicklistview/tst_qquicklistview.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp index 681088cd6f..03422c5b14 100644 --- a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp +++ b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp @@ -471,8 +471,7 @@ void tst_QQuickListView::items(const QUrl &source) // Force a layout, necessary if ListView is completed before DelegateModel. listview->forceLayout(); - int itemCount = findItems<QQuickItem>(contentItem, "wrapper").count(); - QTRY_COMPARE(itemCount, 0); + QTRY_VERIFY(findItems<QQuickItem>(contentItem, "wrapper").isEmpty()); QTRY_COMPARE(listview->highlightResizeVelocity(), 1000.0); QTRY_COMPARE(listview->highlightMoveVelocity(), 100000.0); |