diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2012-02-14 13:13:05 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-16 02:00:52 +0100 |
commit | eb64bb89cf6b7aa892c44723e3d14b845cc178bd (patch) | |
tree | 638512cf08a38e407c6afc93d8e26704e3b147c3 /tests/auto/xml/dom/qdom/tst_qdom.cpp | |
parent | 6dfb1de099158bb640f830647d09499934209b53 (diff) |
Eliminate duplicate data row names in dbus, tools and xml autotests.
Change-Id: Ic734435f57bb4f2160ecb3bc645e642207931a99
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/xml/dom/qdom/tst_qdom.cpp')
-rw-r--r-- | tests/auto/xml/dom/qdom/tst_qdom.cpp | 53 |
1 files changed, 26 insertions, 27 deletions
diff --git a/tests/auto/xml/dom/qdom/tst_qdom.cpp b/tests/auto/xml/dom/qdom/tst_qdom.cpp index f9570f7631..d79044157a 100644 --- a/tests/auto/xml/dom/qdom/tst_qdom.cpp +++ b/tests/auto/xml/dom/qdom/tst_qdom.cpp @@ -555,7 +555,6 @@ void tst_QDom::saveWithSerialization_data() const if (prefix.isEmpty()) QFAIL("Cannot find testdata!"); QTest::newRow("doc01.xml") << QString(prefix + "/doc01.xml"); - QTest::newRow("doc01.xml") << QString(prefix + "/doc01.xml"); QTest::newRow("doc02.xml") << QString(prefix + "/doc02.xml"); QTest::newRow("doc03.xml") << QString(prefix + "/doc03.xml"); QTest::newRow("doc04.xml") << QString(prefix + "/doc04.xml"); @@ -1868,34 +1867,34 @@ void tst_QDom::setContentWhitespace_data() const QTest::addColumn<QString>("doc"); QTest::addColumn<bool>("expectedValidity"); - QTest::newRow("") << QString::fromLatin1(" <e/>") << true; - QTest::newRow("") << QString::fromLatin1(" <e/>") << true; - QTest::newRow("") << QString::fromLatin1(" <e/>") << true; - QTest::newRow("") << QString::fromLatin1(" <e/>") << true; - QTest::newRow("") << QString::fromLatin1("\n<e/>") << true; - QTest::newRow("") << QString::fromLatin1("\n\n<e/>") << true; - QTest::newRow("") << QString::fromLatin1("\n\n\n<e/>") << true; - QTest::newRow("") << QString::fromLatin1("\n\n\n\n<e/>") << true; - QTest::newRow("") << QString::fromLatin1("\t<e/>") << true; - QTest::newRow("") << QString::fromLatin1("\t\t<e/>") << true; - QTest::newRow("") << QString::fromLatin1("\t\t\t<e/>") << true; - QTest::newRow("") << QString::fromLatin1("\t\t\t\t<e/>") << true; + QTest::newRow("data1") << QString::fromLatin1(" <e/>") << true; + QTest::newRow("data2") << QString::fromLatin1(" <e/>") << true; + QTest::newRow("data3") << QString::fromLatin1(" <e/>") << true; + QTest::newRow("data4") << QString::fromLatin1(" <e/>") << true; + QTest::newRow("data5") << QString::fromLatin1("\n<e/>") << true; + QTest::newRow("data6") << QString::fromLatin1("\n\n<e/>") << true; + QTest::newRow("data7") << QString::fromLatin1("\n\n\n<e/>") << true; + QTest::newRow("data8") << QString::fromLatin1("\n\n\n\n<e/>") << true; + QTest::newRow("data9") << QString::fromLatin1("\t<e/>") << true; + QTest::newRow("data10") << QString::fromLatin1("\t\t<e/>") << true; + QTest::newRow("data11") << QString::fromLatin1("\t\t\t<e/>") << true; + QTest::newRow("data12") << QString::fromLatin1("\t\t\t\t<e/>") << true; /* With XML prolog. */ - QTest::newRow("") << QString::fromLatin1("<?xml version='1.0' ?><e/>") << true; - - QTest::newRow("") << QString::fromLatin1(" <?xml version='1.0' ?><e/>") << false; - QTest::newRow("") << QString::fromLatin1(" <?xml version='1.0' ?><e/>") << false; - QTest::newRow("") << QString::fromLatin1(" <?xml version='1.0' ?><e/>") << false; - QTest::newRow("") << QString::fromLatin1(" <?xml version='1.0' ?><e/>") << false; - QTest::newRow("") << QString::fromLatin1("\n<?xml version='1.0' ?><e/>") << false; - QTest::newRow("") << QString::fromLatin1("\n\n<?xml version='1.0' ?><e/>") << false; - QTest::newRow("") << QString::fromLatin1("\n\n\n<?xml version='1.0' ?><e/>") << false; - QTest::newRow("") << QString::fromLatin1("\n\n\n\n<?xml version='1.0' ?><e/>") << false; - QTest::newRow("") << QString::fromLatin1("\t<?xml version='1.0' ?><e/>") << false; - QTest::newRow("") << QString::fromLatin1("\t\t<?xml version='1.0' ?><e/>") << false; - QTest::newRow("") << QString::fromLatin1("\t\t\t<?xml version='1.0' ?><e/>") << false; - QTest::newRow("") << QString::fromLatin1("\t\t\t\t<?xml version='1.0' ?><e/>") << false; + QTest::newRow("data13") << QString::fromLatin1("<?xml version='1.0' ?><e/>") << true; + + QTest::newRow("data14") << QString::fromLatin1(" <?xml version='1.0' ?><e/>") << false; + QTest::newRow("data15") << QString::fromLatin1(" <?xml version='1.0' ?><e/>") << false; + QTest::newRow("data16") << QString::fromLatin1(" <?xml version='1.0' ?><e/>") << false; + QTest::newRow("data17") << QString::fromLatin1(" <?xml version='1.0' ?><e/>") << false; + QTest::newRow("data18") << QString::fromLatin1("\n<?xml version='1.0' ?><e/>") << false; + QTest::newRow("data19") << QString::fromLatin1("\n\n<?xml version='1.0' ?><e/>") << false; + QTest::newRow("data20") << QString::fromLatin1("\n\n\n<?xml version='1.0' ?><e/>") << false; + QTest::newRow("data21") << QString::fromLatin1("\n\n\n\n<?xml version='1.0' ?><e/>") << false; + QTest::newRow("data22") << QString::fromLatin1("\t<?xml version='1.0' ?><e/>") << false; + QTest::newRow("data23") << QString::fromLatin1("\t\t<?xml version='1.0' ?><e/>") << false; + QTest::newRow("data24") << QString::fromLatin1("\t\t\t<?xml version='1.0' ?><e/>") << false; + QTest::newRow("data25") << QString::fromLatin1("\t\t\t\t<?xml version='1.0' ?><e/>") << false; } void tst_QDom::taskQTBUG4595_dontAssertWhenDocumentSpecifiesUnknownEncoding() const |