From 1d40ed9d22d0d1bd525932bd41875cbaf1d577d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Arve=20S=C3=A6ther?= Date: Fri, 19 Jul 2019 14:10:06 +0200 Subject: Fix qqmlexpression failures for Android Should load from resource on Android... Task-number: QTBUG-73512 Change-Id: I29f74e896000aeb2b42e27dd739c505d7838b605 Reviewed-by: Simon Hausmann --- tests/auto/qml/qqmlexpression/tst_qqmlexpression.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/auto/qml/qqmlexpression/tst_qqmlexpression.cpp') diff --git a/tests/auto/qml/qqmlexpression/tst_qqmlexpression.cpp b/tests/auto/qml/qqmlexpression/tst_qqmlexpression.cpp index 1decc04ad2..0ba29d6b6a 100644 --- a/tests/auto/qml/qqmlexpression/tst_qqmlexpression.cpp +++ b/tests/auto/qml/qqmlexpression/tst_qqmlexpression.cpp @@ -28,6 +28,7 @@ #include #include +#include #include #include #include @@ -125,10 +126,12 @@ void tst_qqmlexpression::expressionFromDataComponent() QQmlEngine engine; QQmlComponent c(&engine); - QUrl url = testFileUrl("expressionFromDataComponent.qml"); + const QString fn(QLatin1String("expressionFromDataComponent.qml")); + QUrl url = testFileUrl(fn); + QString path = testFile(fn); { - QFile f(url.toLocalFile()); + QFile f(path); QVERIFY(f.open(QIODevice::ReadOnly)); c.setData(f.readAll(), url); } -- cgit v1.2.3