summaryrefslogtreecommitdiff
path: root/tests/auto/qxmlquery/tst_qxmlquery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qxmlquery/tst_qxmlquery.cpp')
-rw-r--r--tests/auto/qxmlquery/tst_qxmlquery.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/tests/auto/qxmlquery/tst_qxmlquery.cpp b/tests/auto/qxmlquery/tst_qxmlquery.cpp
index c3d1e03..a7f3e8b 100644
--- a/tests/auto/qxmlquery/tst_qxmlquery.cpp
+++ b/tests/auto/qxmlquery/tst_qxmlquery.cpp
@@ -977,8 +977,8 @@ void tst_QXmlQuery::evaluateToReceiver_data() const
{
QTest::addColumn<QString>("inputQuery");
- foreach (QString const& query, queries())
- {
+ const auto queries_ = queries();
+ for (QString const& query : queries_) {
/* This outputs a URI specific to the environment, so we can't use it for this
* particular test. */
if (query != QLatin1String("staticBaseURI.xq"))
@@ -1984,13 +1984,6 @@ void tst_QXmlQuery::fnDocNetworkAccessSuccess() const
|| QTest::currentDataTag() == QByteArray("ftp scheme"))
QVERIFY(QtNetworkSettings::verifyTestNetworkSettings());
-#if defined(Q_OS_WINCE) && !defined(_X86_)
- QStringList testsToSkip;
- testsToSkip << "http scheme" << "ftp scheme";
- if (testsToSkip.contains(QTest::currentDataTag()))
- QSKIP("Network tests are currently unsupported on Windows CE.");
-#endif
-
QFETCH(QUrl, uriToOpen);
QFETCH(QByteArray, expectedOutput);
@@ -2524,13 +2517,6 @@ void tst_QXmlQuery::setQueryQUrlSuccess() const
|| QTest::currentDataTag() == QByteArray("A valid query via the http scheme"))
QVERIFY(QtNetworkSettings::verifyTestNetworkSettings());
-#if defined(Q_OS_WINCE) && !defined(_X86_)
- QStringList testsToSkip;
- testsToSkip << "A valid query via the ftp scheme" << "A valid query via the http scheme";
- if (testsToSkip.contains(QTest::currentDataTag()))
- QSKIP("Network tests are currently unsupported on Windows CE.");
-#endif
-
QFETCH(QUrl, queryURI);
QFETCH(QByteArray, expectedOutput);