diff options
| author | Frank Reininghaus <[email protected]> | 2013-01-27 15:19:39 +0100 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2013-01-27 15:19:39 +0100 |
| commit | f76f3a165419b048f9f8bcdfcb40042397b9af9b (patch) | |
| tree | 9bddd01912d2b954550b12923474d1ee7a4ba7ac /src/tests/kfileitemmodelbenchmark.cpp | |
| parent | d1b75d1d64d803d2b1099fb26f114342092249e3 (diff) | |
Move the consistency check for KFileItemModel from the test to the class
This makes it possible to check the model's consistency also in other
places, e.g., in KFileItemModel's benchmark.
Diffstat (limited to 'src/tests/kfileitemmodelbenchmark.cpp')
| -rw-r--r-- | src/tests/kfileitemmodelbenchmark.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/kfileitemmodelbenchmark.cpp b/src/tests/kfileitemmodelbenchmark.cpp index f1be69da3..7017863ab 100644 --- a/src/tests/kfileitemmodelbenchmark.cpp +++ b/src/tests/kfileitemmodelbenchmark.cpp @@ -183,6 +183,8 @@ void KFileItemModelBenchmark::insertAndRemoveManyItems() QCOMPARE(model.count(), initialItems.count() + newItems.count() - removedItems.count()); } + QVERIFY(model.isConsistent()); + for (int i = 0; i < model.count(); ++i) { QCOMPARE(model.fileItem(i), expectedFinalItems.at(i)); } |
