diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2011-02-24 17:21:08 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2011-02-24 17:21:08 (GMT) |
commit | c64c722945df4b56d51de4b7d629129ff98f2d9e (patch) | |
tree | eec26de18b3d4f6de46c3e9924be0894b906b57e /tests/auto/qlocale | |
parent | 2cbeb6c08cb7c79d6126f75c2cbc470679d671e1 (diff) | |
parent | 87bffe501cf21cbdc3394435f397cbc0da9c50d6 (diff) | |
download | Qt-c64c722945df4b56d51de4b7d629129ff98f2d9e.zip Qt-c64c722945df4b56d51de4b7d629129ff98f2d9e.tar.gz Qt-c64c722945df4b56d51de4b7d629129ff98f2d9e.tar.bz2 |
Merge branch 'master-i18n' of scm.dev.nokia.troll.no:qt/qt-earth-team into master-i18n
Conflicts:
src/corelib/tools/qlocale.cpp
Diffstat (limited to 'tests/auto/qlocale')
-rw-r--r-- | tests/auto/qlocale/tst_qlocale.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qlocale/tst_qlocale.cpp b/tests/auto/qlocale/tst_qlocale.cpp index afcc69f..d1b7193 100644 --- a/tests/auto/qlocale/tst_qlocale.cpp +++ b/tests/auto/qlocale/tst_qlocale.cpp @@ -143,6 +143,7 @@ private slots: void currency(); void quoteString(); void uiLanguages(); + void weekendDays(); private: QString m_decimal, m_thousand, m_sdate, m_ldate, m_time; @@ -1124,6 +1125,9 @@ void tst_QLocale::macDefaultLocale() QCOMPARE(locale.dayName(7), QString("Sunday")); QCOMPARE(locale.monthName(1), QString("January")); QCOMPARE(locale.monthName(12), QString("December")); + QCOMPARE(locale.firstDayOfWeek(), Qt::Sunday); + QCOMPARE(locale.weekendStart(), Qt::Saturday); + QCOMPARE(locale.weekendEnd(), Qt::Sunday); QCOMPARE(locale.quoteString("string"), QString::fromUtf8("\xe2\x80\x9c" "string" "\xe2\x80\x9d")); QCOMPARE(locale.quoteString("string", QLocale::AlternateQuotation), QString::fromUtf8("\xe2\x80\x98" "string" "\xe2\x80\x99")); @@ -2188,5 +2192,12 @@ void tst_QLocale::uiLanguages() QCOMPARE(ru_RU.uiLanguages().at(0), QLatin1String("ru_RU")); } +void tst_QLocale::weekendDays() +{ + const QLocale c(QLocale::C); + QCOMPARE(c.weekendStart(), Qt::Saturday); + QCOMPARE(c.weekendEnd(), Qt::Sunday); +} + QTEST_APPLESS_MAIN(tst_QLocale) #include "tst_qlocale.moc" |