qt5base-lts/tests/auto/corelib
Edward Welbourne b44df9937e Clean-up in QDateTime's parsing of ISODate{,WithMs}
Actually check that there's a T where ISO 8601 wants it (instead of
just skipping over whatever's there), with something after it; move
some declarations later; add some comments; and use the QStringRef API
more cleanly (so that it's easier to see what's going on).  Simplify a
loop condition to avoid the need for a post-loop fix-up.

This incidentally prevents an assertion failure (which brought the
mess to my attention) parsing a short string as an ISO date-time; if
there's a T with nothing after it, we won't try to read at index -1 in
the following text.  (The actual fail seen had a Z where the T should
have been, with nothing after it.)

Add tests for invalid ISOdate cases that triggered the assertion.

Task-number: QTBUG-66076
Change-Id: Ided9adf62a56d98f144bdf91b40f918e22bd82cd
Reviewed-by: Israel Lins Albuquerque <israelins85@yahoo.com.br>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit a9c111ed8c)
2018-02-01 15:57:23 +00:00
..
animation Use a custom QAnimationDriver to take control over time 2017-12-02 19:58:30 +00:00
codecs tst_utf8: Fix one of the overlong sequences to be what we meant 2017-03-01 12:27:17 +00:00
global qfloat16: NaN is not infinite 2017-12-27 11:50:09 +00:00
io Support for Q_OS_ANDROID_EMBEDDED and android-embedded build flags 2018-01-20 18:16:59 +00:00
itemmodels QAbstractItemModel::supportedDragActions: fix regression 2017-05-31 18:54:00 +00:00
json Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-27 10:42:08 +02:00
kernel Support for Q_OS_ANDROID_EMBEDDED and android-embedded build flags 2018-01-20 18:16:59 +00:00
mimetypes QMimeDatabase: update freedesktop.org.xml to shared-mime-info 1.8 2017-05-08 18:04:24 +00:00
plugin QVariant: implement QByteArray ↔ QUuid conversion 2017-04-14 12:54:21 +00:00
statemachine Fix assert when emitting a signal from a different thread 2017-12-14 16:30:38 +00:00
thread Merge remote-tracking branch 'origin/5.9.3' into 5.9 2017-11-23 09:47:49 +01:00
tools Clean-up in QDateTime's parsing of ISODate{,WithMs} 2018-02-01 15:57:23 +00:00
xml Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00
corelib.pro Add support for Apple tvOS 2016-05-17 16:11:23 +00:00