aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/modeltest
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/modeltest')
-rw-r--r--src/shared/modeltest/modeltest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/modeltest/modeltest.cpp b/src/shared/modeltest/modeltest.cpp
index 6c90bf7819e..9f53a0b784d 100644
--- a/src/shared/modeltest/modeltest.cpp
+++ b/src/shared/modeltest/modeltest.cpp
@@ -119,6 +119,9 @@ void ModelTest::nonDestructiveBasicTest()
QVariant cache;
model->match(QModelIndex(), -1, cache);
model->mimeTypes();
+ QModelIndex m1 = model->parent(QModelIndex());
+ QModelIndex m2 = QModelIndex();
+ Q_ASSERT(m1 == m2);
Q_ASSERT(model->parent(QModelIndex()) == QModelIndex());
Q_ASSERT(model->rowCount() >= 0);
QVariant variant;