summaryrefslogtreecommitdiffstats
path: root/tests/tst_qPrefLanguage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tst_qPrefLanguage.qml')
-rw-r--r--tests/tst_qPrefLanguage.qml58
1 files changed, 24 insertions, 34 deletions
diff --git a/tests/tst_qPrefLanguage.qml b/tests/tst_qPrefLanguage.qml
index efcc35534..023f6c5cd 100644
--- a/tests/tst_qPrefLanguage.qml
+++ b/tests/tst_qPrefLanguage.qml
@@ -1,50 +1,40 @@
// SPDX-License-Identifier: GPL-2.0
import QtQuick 2.6
import QtTest 1.2
-import org.subsurfacedivelog.mobile 1.0
-
TestCase {
name: "qPrefLanguage"
- SsrfLanguagePrefs {
- id: tst
- }
-
- SsrfPrefs {
- id: prefs
- }
-
function test_variables() {
- var x1 = tst.date_format
- tst.date_format = "new date format"
- compare(tst.date_format, "new date format")
+ var x1 = PrefLanguage.date_format
+ PrefLanguage.date_format = "new date format"
+ compare(PrefLanguage.date_format, "new date format")
- var x2 = tst.date_format_override
- tst.date_format_override = true
- compare(tst.date_format_override, true)
+ var x2 = PrefLanguage.date_format_override
+ PrefLanguage.date_format_override = true
+ compare(PrefLanguage.date_format_override, true)
- var x3 = tst.date_format_short
- tst.date_format_short = "new short format"
- compare(tst.date_format_short, "new short format")
+ var x3 = PrefLanguage.date_format_short
+ PrefLanguage.date_format_short = "new short format"
+ compare(PrefLanguage.date_format_short, "new short format")
- var x4 = tst.language
- tst.language = "new lang format"
- compare(tst.language, "new lang format")
+ var x4 = PrefLanguage.language
+ PrefLanguage.language = "new lang format"
+ compare(PrefLanguage.language, "new lang format")
- var x5 = tst.lang_locale
- tst.lang_locale = "new loc lang format"
- compare(tst.lang_locale, "new loc lang format")
+ var x5 = PrefLanguage.lang_locale
+ PrefLanguage.lang_locale = "new loc lang format"
+ compare(PrefLanguage.lang_locale, "new loc lang format")
- var x6 = tst.time_format
- tst.time_format = "new time format"
- compare(tst.time_format, "new time format")
+ var x6 = PrefLanguage.time_format
+ PrefLanguage.time_format = "new time format"
+ compare(PrefLanguage.time_format, "new time format")
- var x7 = tst.time_format_override
- tst.time_format_override = true
- compare(tst.time_format_override, true)
+ var x7 = PrefLanguage.time_format_override
+ PrefLanguage.time_format_override = true
+ compare(PrefLanguage.time_format_override, true)
- var x8 = tst.use_system_language
- tst.use_system_language = true
- compare(tst.use_system_language, true)
+ var x8 = PrefLanguage.use_system_language
+ PrefLanguage.use_system_language = true
+ compare(PrefLanguage.use_system_language, true)
}
}