mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:43:24 +00:00
Testcases for display settings
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4ce0146e6e
commit
cca09612d1
1 changed files with 18 additions and 0 deletions
|
@ -485,6 +485,24 @@ void TestPreferences::testPreferences()
|
|||
TEST(general->pscrRatio(), 1);
|
||||
TEST(general->useDefaultFile(), false);
|
||||
|
||||
auto display = pref->display_settings;
|
||||
display->setDivelistFont("comic");
|
||||
display->setFontSize(10.0);
|
||||
display->setDisplayInvalidDives(true);
|
||||
|
||||
TEST(display->divelistFont(),QStringLiteral("comic"));
|
||||
TEST(display->fontSize(), 10.0);
|
||||
TEST(display->displayInvalidDives(),(short) true); //TODO: this is true / false.
|
||||
|
||||
display->setDivelistFont("helvetica");
|
||||
display->setFontSize(14.0);
|
||||
display->setDisplayInvalidDives(false);
|
||||
|
||||
TEST(display->divelistFont(),QStringLiteral("helvetica"));
|
||||
TEST(display->fontSize(), 14.0);
|
||||
TEST(display->displayInvalidDives(),(short) false);
|
||||
|
||||
|
||||
}
|
||||
|
||||
QTEST_MAIN(TestPreferences)
|
||||
|
|
Loading…
Add table
Reference in a new issue