summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/animatedimage/tst_animatedimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/animatedimage/tst_animatedimage.cpp')
-rw-r--r--tests/auto/declarative/animatedimage/tst_animatedimage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/declarative/animatedimage/tst_animatedimage.cpp b/tests/auto/declarative/animatedimage/tst_animatedimage.cpp
index 5ba0068..20b344d 100644
--- a/tests/auto/declarative/animatedimage/tst_animatedimage.cpp
+++ b/tests/auto/declarative/animatedimage/tst_animatedimage.cpp
@@ -173,7 +173,8 @@ void tst_animatedimage::remote_data()
void tst_animatedimage::invalidSource()
{
QmlEngine engine;
- QmlComponent component(&engine, "import Qt 4.6\n AnimatedImage { source: \"no-such-file.gif\" }", QUrl("file://"));
+ QmlComponent component(&engine);
+ component.setData("import Qt 4.6\n AnimatedImage { source: \"no-such-file.gif\" }", QUrl("file://"));
QVERIFY(component.isReady());
QTest::ignoreMessage(QtWarningMsg, "Error Reading Animated Image File QUrl( \"file:no-such-file.gif\" ) ");