From 640374d052eb3f49090ce0a7553dd90a4783950a Mon Sep 17 00:00:00 2001 From: El Mehdi Fekari Date: Mon, 11 Feb 2013 12:04:48 +0100 Subject: QLocale: add autotests for Japanese and Czech locales Change-Id: Id4351ab49bfbdf91b65ccb5153c5d01f53acdf72 Reviewed-by: Konstantin Ritt Reviewed-by: Lars Knoll --- tests/auto/corelib/tools/qlocale/tst_qlocale.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp b/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp index 8cdad67966..f28ddec199 100644 --- a/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp +++ b/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp @@ -1673,6 +1673,9 @@ void tst_QLocale::dateFormat() const QLocale ca("en_CA"); QCOMPARE(ca.dateFormat(QLocale::ShortFormat), QLatin1String("M/d/yy")); QCOMPARE(ca.dateFormat(QLocale::LongFormat), QLatin1String("dddd, MMMM d, yyyy")); + + const QLocale ja("ja_JP"); + QCOMPARE(ja.dateFormat(QLocale::ShortFormat), QLatin1String("yyyy/MM/dd")); } void tst_QLocale::timeFormat() @@ -1739,6 +1742,10 @@ void tst_QLocale::monthName() QLocale ir("ga_IE"); QCOMPARE(ir.monthName(1, QLocale::ShortFormat), QLatin1String("Ean")); QCOMPARE(ir.monthName(12, QLocale::ShortFormat), QLatin1String("Noll")); + + QLocale cz("cs_CZ"); + QCOMPARE(cz.monthName(1, QLocale::ShortFormat), QLatin1String("led")); + QCOMPARE(cz.monthName(12, QLocale::ShortFormat), QLatin1String("pro")); } void tst_QLocale::standaloneMonthName() -- cgit v1.2.3