From 8acaae496f9e816c4c1b1126fc6409b6fafe6500 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 15 Feb 2016 13:58:22 +0100 Subject: The top-level fetchMore call happens implicitly --- tests/querytest.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tests') diff --git a/tests/querytest.cpp b/tests/querytest.cpp index 50fc67f..f147c58 100644 --- a/tests/querytest.cpp +++ b/tests/querytest.cpp @@ -69,7 +69,6 @@ private Q_SLOTS: //We fetch before the data is available and rely on the live query mechanism to deliver the actual data auto model = Sink::Store::loadModel(query); - model->fetchMore(QModelIndex()); QTRY_COMPARE(model->rowCount(), 1); } @@ -92,7 +91,6 @@ private Q_SLOTS: //We fetch after the data is available and don't rely on the live query mechanism to deliver the actual data auto model = Sink::Store::loadModel(query); - model->fetchMore(QModelIndex()); QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); QCOMPARE(model->rowCount(), 1); } @@ -114,7 +112,6 @@ private Q_SLOTS: //We fetch before the data is available and rely on the live query mechanism to deliver the actual data auto model = Sink::Store::loadModel(query); - model->fetchMore(QModelIndex()); QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); QVERIFY(model->rowCount() >= 1); id = model->index(0, 0).data(Sink::Store::DomainObjectRole).value()->identifier(); @@ -125,7 +122,6 @@ private Q_SLOTS: query.resources << "org.kde.dummy.instance1"; query.ids << id; auto model = Sink::Store::loadModel(query); - model->fetchMore(QModelIndex()); QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); QCOMPARE(model->rowCount(), 1); } @@ -145,7 +141,6 @@ private Q_SLOTS: //We fetch before the data is available and rely on the live query mechanism to deliver the actual data auto model = Sink::Store::loadModel(query); - model->fetchMore(QModelIndex()); QTRY_COMPARE(model->rowCount(), 1); auto folderEntity = model->index(0, 0).data(Sink::Store::DomainObjectRole).value(); QVERIFY(!folderEntity->identifier().isEmpty()); @@ -186,7 +181,6 @@ private Q_SLOTS: //We fetch after the data is available and don't rely on the live query mechanism to deliver the actual data auto model = Sink::Store::loadModel(query); - model->fetchMore(QModelIndex()); QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); QCOMPARE(model->rowCount(), 1); model->fetchMore(model->index(0, 0)); -- cgit v1.2.3