diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2010-01-22 16:36:05 (GMT) |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2010-01-25 09:06:22 (GMT) |
commit | 517631a6021a480e4098e39e7d6f65d91c35559d (patch) | |
tree | c6165b4d1fadcfc87fbeebceebb5af1ac839503c /tests | |
parent | 533188de9886af3556ac277f8dc226119ebce16c (diff) | |
download | Qt-517631a6021a480e4098e39e7d6f65d91c35559d.zip Qt-517631a6021a480e4098e39e7d6f65d91c35559d.tar.gz Qt-517631a6021a480e4098e39e7d6f65d91c35559d.tar.bz2 |
Another ASSERT while deleting spans
That rare case when we are deleting the last span was not being taken care
of. Unbelievable but true. Auto-test included.
Reviewed-by: Thierry
Reviewed-by: leo
Task-number: QTBUG-6004
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qtableview/tst_qtableview.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qtableview/tst_qtableview.cpp b/tests/auto/qtableview/tst_qtableview.cpp index 7a5e68f..430712c 100644 --- a/tests/auto/qtableview/tst_qtableview.cpp +++ b/tests/auto/qtableview/tst_qtableview.cpp @@ -3024,6 +3024,14 @@ void tst_QTableView::spans_data() << QPoint(0, 0) << 1 << 1; + + QTest::newRow("QTBUG-6004 (follow-up): No failing Q_ASSERT, then it passes.") + << 10 << 10 + << (SpanList() << QRect(2, 2, 1, 3) << QRect(2, 2, 1, 1)) + << false + << QPoint(0, 0) + << 1 + << 1; } void tst_QTableView::spans() |