qt5base-lts/tests/auto/qitemmodel
Jason McDonald fa42ba9b62 Remove Q_ASSERT from QItemModel autotest
If populateTestData() would return an invalid model index, 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: I96820429a25ce5c4eb375d50e7e1f672851e26e6
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 984a72a8bbf853059f0eb7e1054538b48d5f3bc8)
2011-05-18 10:46:47 +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:47 +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.