diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-10-03 08:45:38 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-08 02:45:10 +0200 |
commit | 79893572a1cd2a7a880dbb3b820006187a992921 (patch) | |
tree | b665483b74b2f78a937f6e15ceaf6b70527966e0 /tests | |
parent | 641eb19618986b2857fd2282833d0c11df4e2a1b (diff) | |
download | qtxmlpatterns-79893572a1cd2a7a880dbb3b820006187a992921.tar.gz |
Remove invalid URIs from testing with QXmlQuery
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qxmlquery/tst_qxmlquery.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/auto/qxmlquery/tst_qxmlquery.cpp b/tests/auto/qxmlquery/tst_qxmlquery.cpp index 1bd1b52..928d67b 100644 --- a/tests/auto/qxmlquery/tst_qxmlquery.cpp +++ b/tests/auto/qxmlquery/tst_qxmlquery.cpp @@ -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; |