mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
22c6568b46
commit
7f60951e75
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue