diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2016-11-01 11:28:08 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-11-01 09:34:47 -0700 |
commit | 3966f3e7dd1421da72c8920c2fd6b246f0ee063a (patch) | |
tree | cf87bddfa57fab376f33d423b1061b679f82d38c /tests/testpreferences.cpp | |
parent | 7f60951e75b89016102ff27b9c0196a1040bbb39 (diff) | |
download | subsurface-3966f3e7dd1421da72c8920c2fd6b246f0ee063a.tar.gz |
Preferences tests: location updates & bug fix
Fixed loading the location preferences.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests/testpreferences.cpp')
-rw-r--r-- | tests/testpreferences.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp index 9ad3ee079..c1ef2a8e2 100644 --- a/tests/testpreferences.cpp +++ b/tests/testpreferences.cpp @@ -537,6 +537,19 @@ void TestPreferences::testPreferences() TEST(pref->animation_settings->animationSpeed(), 20); pref->animation_settings->setAnimationSpeed(30); TEST(pref->animation_settings->animationSpeed(), 30); + + auto location = pref->location_settings; + location->setTimeThreshold(10); + location->setDistanceThreshold(20); + + TEST(location->timeThreshold(), 10); + TEST(location->distanceThreshold(), 20); + + location->setTimeThreshold(30); + location->setDistanceThreshold(40); + + TEST(location->timeThreshold(), 30); + TEST(location->distanceThreshold(), 40); } QTEST_MAIN(TestPreferences) |