diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-28 20:20:30 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-29 12:31:54 -0800 |
commit | d82840b468318c7689e8da4235eb7798bdf6b832 (patch) | |
tree | 0dc5cfdc6d866ce1d7d8f9c063c896c0936bb41c /tests | |
parent | 9be028659edb24d188c9b8996dfb597009c2a34b (diff) | |
download | subsurface-d82840b468318c7689e8da4235eb7798bdf6b832.tar.gz |
tests: fix testqPrefDisplay
Font size are never stored on disk for the mobile version,
so testing load/save does not make sense.
add #ifndef SUBSURFACE_MOBILE
Signed-off-by: Jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testqPrefDisplay.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/testqPrefDisplay.cpp b/tests/testqPrefDisplay.cpp index 5992b1bf2..6e7b31e18 100644 --- a/tests/testqPrefDisplay.cpp +++ b/tests/testqPrefDisplay.cpp @@ -106,10 +106,13 @@ void TestQPrefDisplay::test_set_load_struct() prefs.show_developer = false; display->load(); +#ifndef SUBSURFACE_MOBILE + // Font size is never stored on disk, but qPref grabs the system default + QCOMPARE(prefs.font_size, 15.0); +#endif QCOMPARE(prefs.animation_speed, 33); QCOMPARE(prefs.display_invalid_dives, true); QCOMPARE(prefs.divelist_font, "doNotCareString"); - QCOMPARE(prefs.font_size, 15.0); QCOMPARE(prefs.show_developer, true); QCOMPARE(display->theme(), QString("myTheme2")); QCOMPARE(display->lastDir(), QString("test2")); @@ -147,7 +150,10 @@ void TestQPrefDisplay::test_struct_disk() QCOMPARE(prefs.animation_speed, 27); QCOMPARE(prefs.display_invalid_dives, true); QCOMPARE(prefs.divelist_font, "doNotCareAtAll"); +#ifndef SUBSURFACE_MOBILE + // Font size is never stored on disk, but qPref grabs the system default QCOMPARE(prefs.font_size, 17.0); +#endif QCOMPARE(prefs.show_developer, false); } |