From 99271c23438ce5ef277abfba211447d0c9ee8c73 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 2 Jun 2014 10:43:26 +0200 Subject: Debugger: Some infrastructure for stricter watch model testing Targeting re-use for tooltips, and potentially sorting. Change-Id: I1ce8f4da73ab5ca13cd70d7c651bc76c67f91a39 Reviewed-by: hjk --- src/shared/modeltest/modeltest.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/shared/modeltest') 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; -- cgit v1.2.3