summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMehdi Fekari <mfekari@rim.com>2013-01-07 17:09:08 -0500
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-10 15:52:55 +0100
commit7ff47c7bfa5d58a509bb40e1f62777b8d52409ff (patch)
tree37f0f02dffebf76f4e95c28c6957cb190bb37429 /tests
parentaeefa4897faba85ad1c26cd44de18957d078fdef (diff)
Add an autotest for Canadian locale(dateFormat)
Change-Id: I68a91a418c418e113ecfe66769a7b3bc46de380c Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/tools/qlocale/tst_qlocale.cpp4
1 files changed, 4 insertions, 0 deletions
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()