summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2010-01-22 17:36:05 +0100
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2010-01-27 16:30:26 +0100
commit9098631b8a3927ebdf945ccdbaf20b9a7616636d (patch)
tree30ad52cb826a477fb8afdde0502f50dfc1310af0 /tests
parent3ec5241a21d233cac879e535719fb546f391add3 (diff)
downloadqt4-tools-9098631b8a3927ebdf945ccdbaf20b9a7616636d.tar.gz
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.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qtableview/tst_qtableview.cpp b/tests/auto/qtableview/tst_qtableview.cpp
index 7a5e68fbe1..430712c716 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()