mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
9be028659e
commit
d82840b468
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue