summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEl Mehdi Fekari <mfekari@blackberry.com>2013-10-28 16:00:41 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-29 11:16:44 (GMT)
commit41621a2915e43a1b2defd8b8b767af8783e8ef7c (patch)
tree973a94ced2e658034c23f92548f4bc97ad346c10 /tests
parenta53312dad1fbb454f32f1481b8c79351fe6ea512 (diff)
downloadQt-41621a2915e43a1b2defd8b8b767af8783e8ef7c.zip
Qt-41621a2915e43a1b2defd8b8b767af8783e8ef7c.tar.gz
Qt-41621a2915e43a1b2defd8b8b767af8783e8ef7c.tar.bz2
QLocale: Update Portuguese and Greek locales data
* Update timeFormat for Portuguese/Brazil locale. * Update abbreviated day names for Greek locale. Note: Those locales are already fixed in the recent CLDR v23.1 data used in Qt 5.2. Change-Id: I351e3a9ae65dcff4ab6b4787242141c3c9d86e24 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qlocale/tst_qlocale.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qlocale/tst_qlocale.cpp b/tests/auto/qlocale/tst_qlocale.cpp
index 9cac40f..1d56e88 100644
--- a/tests/auto/qlocale/tst_qlocale.cpp
+++ b/tests/auto/qlocale/tst_qlocale.cpp
@@ -1463,6 +1463,11 @@ void tst_QLocale::dayName()
QLocale ir("ga_IE");
QCOMPARE(ir.dayName(1, QLocale::ShortFormat), QLatin1String("Luan"));
QCOMPARE(ir.dayName(7, QLocale::ShortFormat), QLatin1String("Domh"));
+
+ QLocale gr("el_GR");
+ QCOMPARE(gr.dayName(2, QLocale::ShortFormat), QString::fromUtf8("\316\244\317\201\316\257"));
+ QCOMPARE(gr.dayName(4, QLocale::ShortFormat), QString::fromUtf8("\316\240\316\255\316\274"));
+ QCOMPARE(gr.dayName(6, QLocale::ShortFormat), QString::fromUtf8("\316\243\316\254\316\262"));
}
void tst_QLocale::standaloneDayName_data()
@@ -1869,6 +1874,10 @@ void tst_QLocale::timeFormat()
const QLocale cat("ca_ES");
QCOMPARE(cat.timeFormat(QLocale::ShortFormat), QLatin1String("H.mm"));
QCOMPARE(cat.timeFormat(QLocale::LongFormat), QLatin1String("H.mm.ss t"));
+
+ const QLocale bra("pt_BR");
+ QCOMPARE(bra.timeFormat(QLocale::ShortFormat), QLatin1String("HH:mm"));
+ QCOMPARE(bra.timeFormat(QLocale::LongFormat), QLatin1String("HH:mm:ss t"));
}
void tst_QLocale::dateTimeFormat()