From 7f60951e75b89016102ff27b9c0196a1040bbb39 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 1 Nov 2016 11:16:50 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- tests/testpreferences.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/testpreferences.cpp') 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) -- cgit v1.2.3-70-g09d2