summaryrefslogtreecommitdiffstats
path: root/tests/testpreferences.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2016-11-01 11:16:50 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-11-01 09:34:47 -0700
commit7f60951e75b89016102ff27b9c0196a1040bbb39 (patch)
treec6b6b93c090a248a16f6ee28829d6b8e68fd0c3f /tests/testpreferences.cpp
parent22c6568b4693ada89cd309ed6281d3def48cef48 (diff)
downloadsubsurface-7f60951e75b89016102ff27b9c0196a1040bbb39.tar.gz
Preferences tests: move animation_settings to the bottom of test file
This is made just to make the tests appear in the same order of the SettingsObjectWrapper order of initialization. Since the SettingsObjectWrapper is huge, this helps checking if everything is correct. 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.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp
index 862ba6154..9ad3ee079 100644
--- a/tests/testpreferences.cpp
+++ b/tests/testpreferences.cpp
@@ -16,11 +16,6 @@ void TestPreferences::testPreferences()
auto pref = SettingsObjectWrapper::instance();
pref->load();
- pref->animation_settings->setAnimationSpeed(20);
- TEST(pref->animation_settings->animationSpeed(), 20);
- pref->animation_settings->setAnimationSpeed(30);
- TEST(pref->animation_settings->animationSpeed(), 30);
-
auto cloud = pref->cloud_storage;
cloud->setBackgroundSync(true);
TEST(cloud->backgroundSync(), true);
@@ -537,6 +532,11 @@ void TestPreferences::testPreferences()
TEST(language->timeFormatOverride(),true);
TEST(language->dateFormatOverride(),true);
TEST(language->useSystemLanguage(), true);
+
+ pref->animation_settings->setAnimationSpeed(20);
+ TEST(pref->animation_settings->animationSpeed(), 20);
+ pref->animation_settings->setAnimationSpeed(30);
+ TEST(pref->animation_settings->animationSpeed(), 30);
}
QTEST_MAIN(TestPreferences)