aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllocale
Commit message (Collapse)AuthorAgeFilesLines
* Allow assignment of a QML Locale object to a C++ QLocale property.Mitch Curtis2014-01-141-0/+36
| | | | | | | Task-number: QTBUG-36125 Change-Id: I58454db0c47684aed3e95c52a8135fd5fd6bf2f9 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Fix qqmllocale testAlan Alpert2013-10-301-5/+1
| | | | | | | | | | Test was only passing the time to the format function, thinking it was the only part under test, but the date is also relevant due to DST being part of the formatted output. Task-number: QTBUG-34406 Change-Id: I1f542b58907281632ee3c96b9b5b38426936953e Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Disable DST related locale test temporarilySimon Hausmann2013-10-291-0/+4
| | | | | | | | We prioritize getting other fixes into QtQml right now, so skip these tests. According bug is filed. Change-Id: I9b824e41d2164906b22282e75aa80a69a4ce5652 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Fix qqmllocale test to use correct spec and time zoneJohn Layt2013-09-051-6/+6
| | | | | | | | | | | | | | | | | By including the +10:00 offset in the date strings the test is actually creating Qt::OffsetFromUTC datetimes, not QT::LocalTime datetimes. The only reason the test currently passes is due to a bug in the QLocale datetime formatter which uses the current system daylight time abbreviation in all cases regardless of the datetime spec or if daylight or standard time. Change 61774 fixes this bug but cannot be merged as this test now fails. This change fixes the bug by removing the offset, causing Qt:LocalTime datetimes to be created which pass the test both before and after change 61774. See https://codereview.qt-project.org/#change,61774 Change-Id: I1642ab7c8aa516b703216f3791e2fc60866d1895 Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* Skip some tests that are failing because of our date time parserLars Knoll2013-06-211-16/+19
| | | | | | | | The parser needs to be fixed to better parse localized dates, times and timezone fields Change-Id: I6542ee459e7135b6f845fb5fc89685cb8c2d67c5 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-101-1/+1
| | | | | | Change-Id: I6c3bd7bebe3d62d1cfd0fa6334544c9db8398c76 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-231-24/+24
| | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: Ie7f5d49ed8235d7a7845ab68f99ad1c220e64d5c Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Wrap tst_qqmllocale::timeZoneUpdated() within Q_OS_UNIX to remove QSKIPJ-P Nurmi2012-09-071-19/+20
| | | | | | Change-Id: I9cb0da7dbca6401069f572aef15d5375aadce30d Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com> Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* Set the Qt API level to compatibility mode in all tests.Thiago Macieira2012-08-011-0/+1
| | | | | | | | | | Qt 5.0 beta requires changing the default to the 5.0 API, disabling the deprecated code. However, tests should test (and often do) the compatibility API too, so turn it back on. Task-number: QTBUG-25053 Change-Id: I6988c2360e9d88916311374a0c910bfc5b607439 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Add gui-private to testsGirish Ramakrishnan2012-06-221-1/+1
| | | | | | | QWindowSystemInterface will be marked as QPA API. Change-Id: Id174a24f8432219adf1425efe1eb59cf67d48bb9 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Fix locale test on Linux and skip it on Windows.Glenn Watson2012-06-222-7/+38
| | | | | | | | | | | The timezone that V8 internally uses was not being updated at the end of one test, causing failures in subsequent tests. This was only showing up on Windows because the test was being skipped on Linux due to a typo. Skip the test on Windows due to complexity of changing the timezone (added comments in code with details). Change-Id: I47c8542111e8ddfbdeff39815c50d98570b0c6c2 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Allow the global JS UTC offset to be invalidatedMatthew Vogt2012-06-052-0/+92
| | | | | | | | | | | If the system timezone is changed, it is necessary to inform V8 so that the global offset-from-UTC value can be recalculated. This changes adds the 'timeZoneUpdated' function to the JS 'Date' class exported by QML, which allows QML applications to inform V8 when the timezone has been updated. Change-Id: Ic5898ca7bc640002a4a6fd5a52b8623d87ee8085 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Mark all Latin 1 strings with QString::fromLatin1 or QLatin1StringThiago Macieira2012-04-241-8/+8
| | | | | | | | | This is in preparation of QString's constructor using UTF-8 by default Change-Id: Ibd0a585342af572e3f74636deb97c1b6b3afeb9a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Changed qml tests to work from install directoryKurt Korbatits2012-03-071-3/+1
| | | | | | | | | | - Changed tests to use TESTDATA - moved qqmlcontext to private test as it contains private header - added check for cross_compile option to skip when sources not available Change-Id: I0f68f58ffcb1b41b8e40a9851e3e003fe72ee2f9 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Merge master <-> api_changesMatthew Vogt2012-03-051-1/+37
| | | | Change-Id: Iad2f07b989b25349fd2d4fff010e24dcd5a1688f
* Rename QDeclarative symbols to QQuick and QQmlMatthew Vogt2012-02-247-0/+1372
Symbols beginning with QDeclarative are already exported by the quick1 module. Users can apply the bin/rename-qtdeclarative-symbols.sh script to modify client code using the previous names of the renamed symbols. Task-number: QTBUG-23737 Change-Id: Ifaa482663767634931e8711a8e9bf6e404859e66 Reviewed-by: Martin Jones <martin.jones@nokia.com>