diff options
author | Casper van Donderen <casper.vandonderen@nokia.com> | 2011-10-31 10:52:37 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-01 17:39:32 +0100 |
commit | 51bee2babfedbef31fb174c75ab47500a7ec6aed (patch) | |
tree | 6e3c37f1008e38a2329307f701f026c1a912dd2c /tests | |
parent | 735457a40b9a266fd4b317f0eee5a1111946e91d (diff) |
Remove test that hasn't been enabled since 2007.
Task-number: QTBUG-22444
Change-Id: Id7569cf60cb314511a7d4f38833913c442f3fbba
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp b/tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp index 7c167745ac..d946130ef9 100644 --- a/tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp +++ b/tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp @@ -545,7 +545,6 @@ private slots: void testReader_data() const; void reportSuccess() const; void reportSuccess_data() const; - void parseXSLTTestSuite() const; void writerHangs() const; void writerAutoFormattingWithComments() const; void writerAutoFormattingWithTabs() const; @@ -817,74 +816,6 @@ void tst_QXmlStream::testReader_data() const } } -void tst_QXmlStream::parseXSLTTestSuite() const -{ - /* We disable this test for now, so it doesn't show up as an XFAIL. */ -#if 0 - QEXPECT_FAIL("", "Two problems needs to be solved in order to enable this test: \n" - "* The XSLT suite is 69 MB large, which is quite a lot compared to the existing XML suite on 2 mb.\n" - "* We need a c14n-like implementation in order to compare the outputs.", Abort); - QVERIFY(false); - - /* We don't yet know this. TODO */ - int xsltExpectedRunCount = -1; - - QStringList nameFilters; - nameFilters.append("*.xsl"); - nameFilters.append("*.xml"); - - QDirIterator dirIterator("XSLT-Test-Suite/", nameFilters, - QDir::AllEntries, QDirIterator::Subdirectories); - - int filesParsed = 0; - - while(dirIterator.hasNext()) - { - dirIterator.next(); - - const QString fp(dirIterator.filePath()); - qDebug() << "Found" << fp; - - QFile inputFile(fp); - QVERIFY(inputFile.open(QIODevice::ReadOnly)); - - /* Read in and write out to the QByteArray. */ - QByteArray outputArray; - { - QXmlStreamReader reader(&inputFile); - - QXmlStreamWriter writer(&outputArray); - - while(!reader.atEnd()) - { - writer.writeCurrentToken(reader); - reader.readNext(); - - QVERIFY2(!reader.hasError(), qPrintable(reader.errorString())); - } - /* Might be we got an error here, but we don't care. */ - } - - /* Read in the two files, and compare them. */ - { - QBuffer outputBuffer(&outputArray); - outputBuffer.open(QIODevice::ReadOnly); - inputFile.close(); - inputFile.open(QIODevice::ReadOnly); - - QString message; - const bool isEqual = QC14N::isEqual(&inputFile, &outputBuffer, &message); - - QVERIFY2(isEqual, message.toLatin1().constData()); - - ++filesParsed; - } - } - - QCOMPARE(xsltExpectedRunCount, filesParsed); -#endif -} - void tst_QXmlStream::addExtraNamespaceDeclarations() { const char *data = "<bla><undeclared:foo/><undeclared_too:foo/></bla>"; |