diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-11-18 05:53:08 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-11-18 05:53:08 (GMT) |
commit | f93cc8dda10c7f6a7a408d818ecafda23150e20c (patch) | |
tree | b4adb77d857f8c4f61ae86ff55599b737f68a526 /tests/auto | |
parent | eaa5d6d945b5bcab2cbdce01a0780ccdadbd2719 (diff) | |
download | Qt-f93cc8dda10c7f6a7a408d818ecafda23150e20c.zip Qt-f93cc8dda10c7f6a7a408d818ecafda23150e20c.tar.gz Qt-f93cc8dda10c7f6a7a408d818ecafda23150e20c.tar.bz2 |
ListView tests and fixes.
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/declarative/qmlgraphicslistview/tst_qmlgraphicslistview.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlgraphicslistview/tst_qmlgraphicslistview.cpp b/tests/auto/declarative/qmlgraphicslistview/tst_qmlgraphicslistview.cpp index 36f4dc5..e9f785b 100644 --- a/tests/auto/declarative/qmlgraphicslistview/tst_qmlgraphicslistview.cpp +++ b/tests/auto/declarative/qmlgraphicslistview/tst_qmlgraphicslistview.cpp @@ -318,13 +318,22 @@ void tst_QmlGraphicsListView::items() testObject->setAnimate(true); QMetaObject::invokeMethod(canvas->root(), "checkProperties"); QVERIFY(testObject->error() == false); + QVERIFY(listview->currentItem()); // set invalid highlight testObject->setInvalidHighlight(true); QMetaObject::invokeMethod(canvas->root(), "checkProperties"); QVERIFY(testObject->error() == false); + QVERIFY(listview->currentItem()); QVERIFY(listview->highlightItem() == 0); + // back to normal highlight + testObject->setInvalidHighlight(false); + QMetaObject::invokeMethod(canvas->root(), "checkProperties"); + QVERIFY(testObject->error() == false); + QVERIFY(listview->currentItem()); + QVERIFY(listview->highlightItem() != 0); + // set an empty model and confirm that items are destroyed T model2; ctxt->setContextProperty("testModel", &model2); |