qt5base-lts/tests/auto/corelib/serialization/qxmlstream
Vincent Baijot 366bdcde97 Correct prefix reported for end element in QXmlStreamReader
Before this change, QXmlStreamReader prefix value was always an empty
string for EndElement when the documentation state : "Returns the prefix
of a StartElement or EndElement."

The error was a missing update of the prefix value when parsing
EndElement.

I updated the tests data which were also wrong because no prefix were
reported even for </a:foo>. No new test is necessary, I think, the test
data already cover the cases of EndElement with a prefix and without one
(unchanged here).

Fixes: QTBUG-86847
Pick-to: 5.15 6.0 6.1
Change-Id: I0ad38b9741d760f1ce688a36f969ec14e20a928c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2021-04-20 03:03:51 +02:00
..
data Correct prefix reported for end element in QXmlStreamReader 2021-04-20 03:03:51 +02:00
XML-Test-Suite Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
.gitattributes Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
.gitignore Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
CMakeLists.txt CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qc14n.h Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
setupSuite.sh Remove Perforce commands from setupSuite.sh 2020-05-05 12:24:38 -07:00
tst_qxmlstream.cpp Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
XML-Test-Suite-LICENSE.txt Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00