diff options
Diffstat (limited to 'tests/auto/quick/qquicklistview/tst_qquicklistview.cpp')
-rw-r--r-- | tests/auto/quick/qquicklistview/tst_qquicklistview.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp index 9c11957894..1ca341fe66 100644 --- a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp +++ b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp @@ -267,6 +267,8 @@ private slots: void QTBUG_34576_velocityZero(); void QTBUG_61537_modelChangesAsync(); + void useDelegateChooserWithoutDefault(); + void addOnCompleted(); private: @@ -8858,6 +8860,15 @@ void tst_QQuickListView::addOnCompleted() } } +void tst_QQuickListView::useDelegateChooserWithoutDefault() +{ + // Check that the application doesn't crash + // if the delegate chooser doesn't cover all cells + QScopedPointer<QQuickView> window(createView()); + window->setSource(testFileUrl("usechooserwithoutdefault.qml")); + window->show(); +}; + QTEST_MAIN(tst_QQuickListView) #include "tst_qquicklistview.moc" |