qt5base-lts/tests/auto/corelib
Marc Mutz 7d0f08094a tst_qxmlstream: swap WHEN and THEN in readBack()
WHEN writing an invalid character, THEN we expect the writer to report
an error.

The old code had it the wrong way around. It checked that WHEN the
writer reports an error, THEN the character was invalid.

The formulations are equivalent, but the latter is mixing up cause and
effect, making it less clear what's being checked (QXmlStreamWriter,
not isValidSingleTextChar()), so swap.

Pick-to: 6.5 6.4 6.2
Change-Id: I703de9ddde98d9913977a913f671472930735900
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Mate Barany <mate.barany@qt.io>
2022-12-16 18:21:57 +01:00
..
animation Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
global Use qtversion.h instead of qlibraryinfo.h 2022-12-09 07:21:22 +01:00
io Skip QProcess tests when run under ASan 2022-12-16 19:21:56 +02:00
itemmodels Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
kernel CMake: Remove direct qt_android_generate_deployment_settings call 2022-12-15 20:23:28 +01:00
mimetypes Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
platform CMake: Remove direct qt_android_generate_deployment_settings call 2022-12-15 20:23:28 +01:00
plugin Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
serialization tst_qxmlstream: swap WHEN and THEN in readBack() 2022-12-16 18:21:57 +01:00
text QByteArrayApiSymmetry: silence two clang warnings 2022-12-13 14:41:29 +02:00
thread tests: fix build with -no-feature-concurrent 2022-11-09 20:33:49 +01:00
time Deprecate QDateTime methods using plain Qt::TimeSpec 2022-12-10 06:39:33 +01:00
tools QOffsetStringArray: add contains() method 2022-12-09 06:22:06 +00:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00