diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-29 15:59:03 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-29 16:02:34 (GMT) |
commit | b2b626a936d778b89f8fbf33ac914d99876ec4b3 (patch) | |
tree | 4ea4e2f2e405da658a1fc4d43d4fd1fe3fd7325f /tests/auto/qdom | |
parent | 13a76f28e11d85353f799f31d2e0b75ffe2f7956 (diff) | |
download | Qt-b2b626a936d778b89f8fbf33ac914d99876ec4b3.zip Qt-b2b626a936d778b89f8fbf33ac914d99876ec4b3.tar.gz Qt-b2b626a936d778b89f8fbf33ac914d99876ec4b3.tar.bz2 |
Autotest: fix the regressions in the DOM test caused by one whitespace
being removed.
Reviewed-by: Volker Hilsheimer
Diffstat (limited to 'tests/auto/qdom')
-rw-r--r-- | tests/auto/qdom/tst_qdom.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qdom/tst_qdom.cpp b/tests/auto/qdom/tst_qdom.cpp index ea3b64e..5b4787f 100644 --- a/tests/auto/qdom/tst_qdom.cpp +++ b/tests/auto/qdom/tst_qdom.cpp @@ -1386,7 +1386,7 @@ void tst_QDom::roundTripAttributes() const doc.save(stream, 0); stream.flush(); - const QByteArray expected("<localName xmlns=\"\" attr=\" 
	 \" />\n"); + const QByteArray expected("<localName xmlns=\"\" attr=\" 
	 \"/>\n"); QCOMPARE(QString::fromLatin1(serialized.constData()), QString::fromLatin1(expected.constData())); } @@ -1671,7 +1671,7 @@ void tst_QDom::appendDocumentNode() const doc.appendChild(elem); Q_ASSERT(!xml.isNull()); - const QString expected(QLatin1String("<document>\n<test_elem name=\"value\" />\n</document>\n")); + const QString expected(QLatin1String("<document>\n<test_elem name=\"value\"/>\n</document>\n")); elem.appendChild(xml); QCOMPARE(doc.childNodes().count(), 1); @@ -1788,8 +1788,8 @@ void tst_QDom::doubleNamespaceDeclarations() const QXmlInputSource source(&file); QVERIFY(doc.setContent(&source, &reader)); - QVERIFY(doc.toString(0) == QString::fromLatin1("<a>\n<b p:c=\"\" xmlns:p=\"NS\" p:d=\"\" />\n</a>\n") || - doc.toString(0) == QString::fromLatin1("<a>\n<b p:c=\"\" p:d=\"\" xmlns:p=\"NS\" />\n</a>\n")); + QVERIFY(doc.toString(0) == QString::fromLatin1("<a>\n<b p:c=\"\" xmlns:p=\"NS\" p:d=\"\"/>\n</a>\n") || + doc.toString(0) == QString::fromLatin1("<a>\n<b p:c=\"\" p:d=\"\" xmlns:p=\"NS\"/>\n</a>\n")); } void tst_QDom::setContentQXmlReaderOverload() const |