qt5base-lts/tests/auto/corelib/kernel/qitemmodel
Jason McDonald ea415e2060 Cleanup corelib autotests.
When using QSignalSpy, always verify that the signal spy is valid.  This
will cause the test to give a meaningful failure when spying on a
non-existant signal.  Without this change, tests that spy on a signal to
ensure that it is not emitted (i.e. by comparing the spy count to zero)
could pass erroneously if something went wrong when creating the signal
spy, as an invalid QSignalSpy will always return a count of zero.

Change-Id: I41f4a63d9f0de9190a86de237662dc96be802446
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2011-12-28 04:48:11 +01:00
..
.gitignore Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
modelstotest.cpp Fix autotest gui/widgets dependencies 2011-09-19 10:24:25 +02:00
qitemmodel.pro Fixed installation of corelib tests 2011-12-01 09:12:52 +01:00
README Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
tst_qitemmodel.cpp Cleanup corelib autotests. 2011-12-28 04:48:11 +01: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.