Skip to content

Commit

Permalink
Remove warning about missing file from parserstress test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Miikka Heikkinen authored and Qt by Nokia committed Mar 14, 2012
1 parent dfe32be commit 8f077f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/auto/qml/parserstress/tst_parserstress.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 8f077f2

Please sign in to comment.