qt5base-lts/tests/auto/qitemmodel
Jason McDonald 6354d890f3 Remove Q_ASSERT from qitemmodel autotest
If populateTestData() is passed an unknown type of model, report a
meaningful fatal error rather than failing silently in a release build
and aborting with an uninformative error message in a debug build.

Change-Id: I7ee8d1262bbced304f9f24c2ec9b40a38704d982
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 6b2e89843a573cd7c143bca17cec8e69209d2fbd)
2011-05-18 10:46:46 +10:00
..
.gitignore Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
modelstotest.cpp Remove Q_ASSERT from qitemmodel autotest 2011-05-18 10:46:46 +10:00
qitemmodel.pro Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
README Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
tst_qitemmodel.cpp Remove Q_ASSERT from qitemmodel autotest 2011-05-18 10:46:42 +10:00

This is a QStandardItemModel test.  It will help catch a lot of simple problems.  You should still create your own test for custom functionality and functions that your model has.

Add your model to the modelstotest.cpp file (qt model's are included as examples) and modify the pro file accordingly.  Fix the errors in order of failure as later tests assume the ones before them have passed.