QLocale: add autotests for Japanese and Czech locales
Change-Id: Id4351ab49bfbdf91b65ccb5153c5d01f53acdf72 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
82eaff97d1
commit
640374d052
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user