From 7ff47c7bfa5d58a509bb40e1f62777b8d52409ff Mon Sep 17 00:00:00 2001 From: Mehdi Fekari Date: Mon, 7 Jan 2013 17:09:08 -0500 Subject: Add an autotest for Canadian locale(dateFormat) Change-Id: I68a91a418c418e113ecfe66769a7b3bc46de380c Reviewed-by: Konstantin Ritt --- tests/auto/corelib/tools/qlocale/tst_qlocale.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp b/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp index 62d6c4f462..f0d2e46b9f 100644 --- a/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp +++ b/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp @@ -1665,6 +1665,10 @@ void tst_QLocale::dateFormat() QCOMPARE(no.dateFormat(QLocale::NarrowFormat), QLatin1String("dd.MM.yy")); QCOMPARE(no.dateFormat(QLocale::ShortFormat), QLatin1String("dd.MM.yy")); QCOMPARE(no.dateFormat(QLocale::LongFormat), QLatin1String("dddd d. MMMM yyyy")); + + const QLocale ca("en_CA"); + QCOMPARE(ca.dateFormat(QLocale::ShortFormat), QLatin1String("M/d/yy")); + QCOMPARE(ca.dateFormat(QLocale::LongFormat), QLatin1String("dddd, MMMM d, yyyy")); } void tst_QLocale::timeFormat() -- cgit v1.2.3