Skip to content

Commit

Permalink
Add test for size hint in FilterStrings.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Dec 24, 2024
1 parent d3a9391 commit 278a035
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/FilterStringsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ void FilterStringsTest::testListItemChecking()
QCOMPARE(spy.count(), SIGNAL_RECEIVED);
QCOMPARE(spy.takeFirst(), {QVariant(QStringList{})});
}

void FilterStringsTest::testSizeHint()
{
const FilterStrings filter(QLatin1String(""), testEntriesList_);
QCOMPARE(filter.sizeHint(), QSize(266, 231));
}
2 changes: 2 additions & 0 deletions tests/FilterStringsTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ private Q_SLOTS:

void testListItemChecking();

void testSizeHint();

private:
QStringList testEntriesList_;

Expand Down

0 comments on commit 278a035

Please sign in to comment.