Enable checks for tst_QHeaderView::sectionSizeHint()
tst_QHeaderView::sectionSizeHint() did set some values but did not check the return values. Change-Id: Id606d7a06935a3d6783bc9a8c10bf05d953adec6 Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
parent
e0a6409ba7
commit
d2573f4dbd
@ -817,11 +817,9 @@ void tst_QHeaderView::offset()
|
||||
|
||||
void tst_QHeaderView::sectionSizeHint()
|
||||
{
|
||||
// Test bad arguments
|
||||
view->sectionSizeHint(-1);
|
||||
view->sectionSizeHint(99999);
|
||||
|
||||
// TODO how to test the return value?
|
||||
QCOMPARE(view->sectionSizeHint(-1), -1);
|
||||
QCOMPARE(view->sectionSizeHint(99999), -1);
|
||||
QVERIFY(view->sectionSizeHint(0) >= 0);
|
||||
}
|
||||
|
||||
void tst_QHeaderView::logicalIndex()
|
||||
|
Loading…
Reference in New Issue
Block a user