qt5base-lts/tests/auto/corelib
Edward Welbourne 0ad4f86729 Purge QRegExp use in QDateTime's rfcDateImpl()
Replace with a parser which actually does the job right, fixing
various infelicities in the parsing in the process.
Make the parser strict about formatting.

Adjusted tests to match. Fixed some QTime invalidity tests to each
test only one invalidity at a time (the invalid year and day tests
also used an invalid month).

[ChangeLog][QtCore][QDateTime] The parser for the Qt::RFC2822Date
format is now stricter, requiring the text to exactly match the form
of one of the relevant formats. A valid date or time will still be
parsed, even if the other part of the content is invalid, as long as
it (and any offset, if present) has the right form. In particular, the
parser now rejects texts with trailing cruft (other than space).

Fixes: QTBUG-80038
Change-Id: Id25675afd75f82f6351f20e79f0154f3ceda35ac
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-02-27 10:48:25 +01:00
..
animation Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
codecs Regenerate tests/auto/corelib/codecs 2019-11-12 17:26:41 +00:00
global Remove QLinkedList 2020-02-19 21:01:07 +01:00
io Add QDebug::toString() 2020-02-22 14:16:59 +01:00
itemmodels Merge remote-tracking branch 'origin/dev' into merge-dev 2020-01-24 13:17:33 +01:00
kernel MetaObject: store the QMetaType of the properties 2020-02-25 15:43:15 +01:00
mimetypes Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
plugin CMake: Fix tst_plugin 2020-02-20 15:11:01 +00:00
serialization Remove QLinkedList 2020-02-19 21:01:07 +01:00
statemachine Merge remote-tracking branch 'origin/5.15' into dev 2020-02-13 18:31:40 +01:00
text Merge remote-tracking branch 'origin/5.15' into dev 2020-02-26 18:39:21 +01:00
thread Merge remote-tracking branch 'origin/wip/cmake' into dev 2020-02-13 23:29:51 +01:00
time Purge QRegExp use in QDateTime's rfcDateImpl() 2020-02-27 10:48:25 +01:00
tools Remove QLinkedList 2020-02-19 21:01:07 +01:00
.prev_CMakeLists.txt Merge branch 'wip/qt6' into wip/cmake 2019-08-15 16:53:19 +02:00
CMakeLists.txt Convert corelib plugin tests 2019-10-21 11:17:20 +00:00
corelib.pro Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00