equal
deleted
inserted
replaced
475 QTEST( eRes, "res" ); |
475 QTEST( eRes, "res" ); |
476 } |
476 } |
477 |
477 |
478 void tst_QDom::initTestCase() |
478 void tst_QDom::initTestCase() |
479 { |
479 { |
480 #ifdef Q_CC_MINGW |
|
481 QSKIP("Our current test machine, arsia, is too slow for this auto test.", SkipAll); |
|
482 #endif |
|
483 |
|
484 QFile file(SRCDIR "testdata/excludedCodecs.txt"); |
480 QFile file(SRCDIR "testdata/excludedCodecs.txt"); |
485 QVERIFY(file.open(QIODevice::ReadOnly|QIODevice::Text)); |
481 QVERIFY(file.open(QIODevice::ReadOnly|QIODevice::Text)); |
486 |
482 |
487 QByteArray codecName; |
483 QByteArray codecName; |
488 |
484 |
1675 QDomDocument xml = generateRequest(); |
1671 QDomDocument xml = generateRequest(); |
1676 QDomElement elem = doc.createElement("document"); |
1672 QDomElement elem = doc.createElement("document"); |
1677 |
1673 |
1678 doc.appendChild(elem); |
1674 doc.appendChild(elem); |
1679 |
1675 |
1680 Q_ASSERT(!xml.isNull()); |
1676 QVERIFY(!xml.isNull()); |
1681 const QString expected(QLatin1String("<document>\n<test_elem name=\"value\"/>\n</document>\n")); |
1677 const QString expected(QLatin1String("<document>\n<test_elem name=\"value\"/>\n</document>\n")); |
1682 |
1678 |
1683 elem.appendChild(xml); |
1679 elem.appendChild(xml); |
1684 QCOMPARE(doc.childNodes().count(), 1); |
1680 QCOMPARE(doc.childNodes().count(), 1); |
1685 QCOMPARE(doc.toString(0), expected); |
1681 QCOMPARE(doc.toString(0), expected); |