From b2b626a936d778b89f8fbf33ac914d99876ec4b3 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 29 Jul 2009 17:59:03 +0200 Subject: Autotest: fix the regressions in the DOM test caused by one whitespace being removed. Reviewed-by: Volker Hilsheimer --- tests/auto/qdom/tst_qdom.cpp | 8 ++++---- 1 file 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("\n"); + const QByteArray expected("\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("\n\n\n")); + const QString expected(QLatin1String("\n\n\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("\n\n\n") || - doc.toString(0) == QString::fromLatin1("\n\n\n")); + QVERIFY(doc.toString(0) == QString::fromLatin1("\n\n\n") || + doc.toString(0) == QString::fromLatin1("\n\n\n")); } void tst_QDom::setContentQXmlReaderOverload() const -- cgit v0.12