aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/modeltest
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-06-02 10:43:26 +0200
committerhjk <hjk121@nokiamail.com>2014-06-03 16:50:14 +0200
commit99271c23438ce5ef277abfba211447d0c9ee8c73 (patch)
treeed5ddefa535f72cd3e12f232e83ef3057ad90c90 /src/shared/modeltest
parentc3cb944eecf61ad9d42ab62fc1932ed6438097f5 (diff)
Debugger: Some infrastructure for stricter watch model testing
Targeting re-use for tooltips, and potentially sorting. Change-Id: I1ce8f4da73ab5ca13cd70d7c651bc76c67f91a39 Reviewed-by: hjk <hjk121@nokiamail.com>
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 6c90bf7819..9f53a0b784 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;