aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-12-18 12:07:38 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-10 19:13:18 +0100
commitf0ba75d407f72de60306e4505e9ebd259e5e287c (patch)
tree2a40f8259d2c70e117c51bcaa12321b6ceee7c0b /tests/auto/quick/qquickpathview/tst_qquickpathview.cpp
parent0a74dc69b4c57a15da90be29b598371dfa63f7ee (diff)
tst_qquickpathview: Use QCOMPARE instead of QVERIFY.
Attempting to get some diagnostic output for the failues. Task-number: QTBUG-35705 Change-Id: Iffebae89743c31e88125c0b1e21be172d3373b05 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'tests/auto/quick/qquickpathview/tst_qquickpathview.cpp')
-rw-r--r--tests/auto/quick/qquickpathview/tst_qquickpathview.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp b/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp
index 81d1bbd01d..2c868231c8 100644
--- a/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp
+++ b/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp
@@ -793,7 +793,7 @@ void tst_QQuickPathView::dataModel()
QCOMPARE(window->rootObject()->property("viewCount").toInt(), model.count());
QTRY_COMPARE(findItems<QQuickItem>(pathview, "wrapper").count(), 14);
- QVERIFY(pathview->currentIndex() == 0);
+ QCOMPARE(pathview->currentIndex(), 0);
QCOMPARE(pathview->currentItem(), findItem<QQuickItem>(pathview, "wrapper", 0));
QQuickText *text = findItem<QQuickText>(pathview, "myText", 4);
@@ -826,7 +826,7 @@ void tst_QQuickPathView::dataModel()
QTest::qWait(100);
QTRY_COMPARE(findItems<QQuickItem>(pathview, "wrapper").count(), 5);
- QVERIFY(pathview->currentIndex() == 1);
+ QCOMPARE(pathview->currentIndex(), 1);
QCOMPARE(pathview->currentItem(), findItem<QQuickItem>(pathview, "wrapper", 1));
text = findItem<QQuickText>(pathview, "myText", 2);
@@ -1876,7 +1876,7 @@ void tst_QQuickPathView::snapToItem()
if (enforceRange)
QVERIFY(pathview->currentIndex() != currentIndex);
else
- QVERIFY(pathview->currentIndex() == currentIndex);
+ QCOMPARE(pathview->currentIndex(), currentIndex);
}
@@ -1908,7 +1908,7 @@ void tst_QQuickPathView::snapOneItem()
QSignalSpy snapModeSpy(pathview, SIGNAL(snapModeChanged()));
window->rootObject()->setProperty("snapOne", true);
- QVERIFY(snapModeSpy.count() == 1);
+ QCOMPARE(snapModeSpy.count(), 1);
QTRY_VERIFY(!pathview->isMoving()); // ensure stable
int currentIndex = pathview->currentIndex();
@@ -1923,9 +1923,9 @@ void tst_QQuickPathView::snapOneItem()
QCOMPARE(pathview->offset(), fmodf(3.0 + startOffset - 1.0, 3.0));
if (enforceRange)
- QVERIFY(pathview->currentIndex() == currentIndex+1);
+ QCOMPARE(pathview->currentIndex(), currentIndex + 1);
else
- QVERIFY(pathview->currentIndex() == currentIndex);
+ QCOMPARE(pathview->currentIndex(), currentIndex);
}
@@ -2061,7 +2061,7 @@ void tst_QQuickPathView::cacheItemCount()
pathview->setOffset(0);
pathview->setCacheItemCount(3);
- QVERIFY(pathview->cacheItemCount() == 3);
+ QCOMPARE(pathview->cacheItemCount(), 3);
QQmlIncubationController controller;
window->engine()->setIncubationController(&controller);