diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testpreferences.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp index ba8e6feaf..e8e3f0995 100644 --- a/tests/testpreferences.cpp +++ b/tests/testpreferences.cpp @@ -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) |