Remove invalid URIs from testing with QXmlQuery
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 3 Oct 2012 15:45:38 +0000 (08:45 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 8 Oct 2012 00:45:10 +0000 (02:45 +0200)
QXmlQuery requires proper URIs/URLs and these two aren't valid. A scheme
is never empty and a path cannot contain a colon before the first slash.

QUrl has been pointing out that new error condition since
7d62f8ace542e04e3ddf92eec4fdad8d34ac9585

Change-Id: Ic206908345f45b1cce0a3733584a65b02b8c2791
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/qxmlquery/tst_qxmlquery.cpp

index 1bd1b52..928d67b 100644 (file)
@@ -2108,10 +2108,7 @@ void tst_QXmlQuery::fnDocNetworkAccessFailure_data() const
         << QUrl(QLatin1String("qrc:/QXmlQueryTestData/notWellformed.xml"));
 
     QTest::newRow("'qrc:/', non-existing file")
-        << QUrl(QLatin1String(":/QXmlQueryTestData/data/thisFileDoesNotExist.xml"));
-
-    QTest::newRow("':/', this scheme is not supported")
-        << QUrl(QLatin1String(":/QXmlQueryTestData/data/notWellformed.xml"));
+        << QUrl(QLatin1String("qrc:/QXmlQueryTestData/data/thisFileDoesNotExist.xml"));
 
     if(!m_testNetwork)
         return;