summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2013-06-17 12:40:23 +0200
committerKai Koehne <kai.koehne@digia.com>2013-06-26 11:55:19 +0200
commit5e5c0a10ff9b4cd4f2b1cfdec4f976861b1de160 (patch)
tree756d4870a32bf4dfb75d93ee9b9802e4486b5ba8 /tests
parent61ffbff8ab9fcdf8bbc73ee00fb9db7f40e0182b (diff)
Implement dedicated translation settings support.
Change-Id: I41dd23f01e9b511c217fee7f736d9187b8a8623a Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/installer/settings/data/full_config.xml5
-rw-r--r--tests/auto/installer/settings/tst_settings.cpp2
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/installer/settings/data/full_config.xml b/tests/auto/installer/settings/data/full_config.xml
index 4e1b82c8a..0386f98c1 100644
--- a/tests/auto/installer/settings/data/full_config.xml
+++ b/tests/auto/installer/settings/data/full_config.xml
@@ -46,4 +46,9 @@ File should contain all elements we allow in a config.xml
<Password>password</Password>
</Repository>
</RemoteRepositories>
+
+ <Translations>
+ <Translation>de_de</Translation>
+ <Translation>qt_de</Translation>
+ </Translations>
</Installer>
diff --git a/tests/auto/installer/settings/tst_settings.cpp b/tests/auto/installer/settings/tst_settings.cpp
index e5973ad6a..e6ebc6e6e 100644
--- a/tests/auto/installer/settings/tst_settings.cpp
+++ b/tests/auto/installer/settings/tst_settings.cpp
@@ -76,6 +76,8 @@ void tst_Settings::loadTutorialConfig()
QCOMPARE(settings.proxyType(), Settings::NoProxy);
QCOMPARE(settings.ftpProxy(), QNetworkProxy());
QCOMPARE(settings.httpProxy(), QNetworkProxy());
+
+ QCOMPARE(settings.translations(), QStringList());
}
void tst_Settings::loadFullConfig()