aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/parserstress
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2012-03-14 16:56:22 +0200
committerQt by Nokia <qt-info@nokia.com>2012-03-14 17:58:22 +0100
commit8f077f28c51c24e71d95c4e99d322734578d9c9c (patch)
treebcc58a9bc5ebaa76ff7135cd5ba1e91bf43b117c /tests/auto/qml/parserstress
parentdfe32bec2d2397b8f52f5ec54bf3c69f086eadea (diff)
Remove warning about missing file from parserstress test
There is no dummy.qml, so trying to find it will cause a warning and return an empty string. Since the url is optional anyway and apparently not relevant to this test, just use empty QUrl directly. Change-Id: I11ba742dedccd6bdea226f680aa57c957afc7dc7 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'tests/auto/qml/parserstress')
-rw-r--r--tests/auto/qml/parserstress/tst_parserstress.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/qml/parserstress/tst_parserstress.cpp b/tests/auto/qml/parserstress/tst_parserstress.cpp
index a179a24f5f..eb477af521 100644
--- a/tests/auto/qml/parserstress/tst_parserstress.cpp
+++ b/tests/auto/qml/parserstress/tst_parserstress.cpp
@@ -128,8 +128,7 @@ void tst_parserstress::ecmascript()
QQmlComponent component(&engine);
- QString dummyFile = QFINDTESTDATA("dummy.qml");
- component.setData(qmlData, QUrl::fromLocalFile(dummyFile));
+ component.setData(qmlData, QUrl());
QFileInfo info(file);