summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-11-20 12:40:34 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-11-20 12:42:58 (GMT)
commit75d68b2b245da91ec9f985893f9b233d9d6a0793 (patch)
treec0381ea77f74c1a7b896517e16dcd340e10dad1e /tests
parent5cf6f6276a3a9103876937c300c1adce157eebeb (diff)
downloadQt-75d68b2b245da91ec9f985893f9b233d9d6a0793.zip
Qt-75d68b2b245da91ec9f985893f9b233d9d6a0793.tar.gz
Qt-75d68b2b245da91ec9f985893f9b233d9d6a0793.tar.bz2
Q_ASSERT failure when resizing a span to (1,1) in 1st cell
Reviewed-by: Olivier 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 46c3fb6..50d6c67 100644
--- a/tests/auto/qtableview/tst_qtableview.cpp
+++ b/tests/auto/qtableview/tst_qtableview.cpp
@@ -3016,6 +3016,14 @@ void tst_QTableView::spans_data()
<< QPoint(2, 0)
<< 1
<< 2;
+
+ QTest::newRow("QTBUG-6004: No failing Q_ASSERT, then it passes.")
+ << 5 << 5
+ << (SpanList() << QRect(0, 0, 2, 2) << QRect(0, 0, 1, 1))
+ << false
+ << QPoint(0, 0)
+ << 1
+ << 1;
}
void tst_QTableView::spans()