summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlparser/tst_qmlparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qmlparser/tst_qmlparser.cpp')
-rw-r--r--tests/auto/declarative/qmlparser/tst_qmlparser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/declarative/qmlparser/tst_qmlparser.cpp b/tests/auto/declarative/qmlparser/tst_qmlparser.cpp
index c2f1e1a..7f51639 100644
--- a/tests/auto/declarative/qmlparser/tst_qmlparser.cpp
+++ b/tests/auto/declarative/qmlparser/tst_qmlparser.cpp
@@ -14,7 +14,7 @@ public:
tst_qmlparser() {
QmlMetaType::registerCustomStringConverter(qMetaTypeId<MyCustomVariantType>(), myCustomVariantTypeConverter);
QFileInfo fileInfo(__FILE__);
- engine.addImportPath(fileInfo.absoluteDir().filePath(QLatin1String("lib")));
+ engine.addImportPath(fileInfo.absoluteDir().filePath(QLatin1String("data/lib")));
}
private slots:
@@ -74,7 +74,7 @@ private:
QVERIFY(!component.isError()); \
QVERIFY(component.errors().isEmpty()); \
} else { \
- QFile file(errorfile); \
+ QFile file(QLatin1String("data/") + QLatin1String(errorfile)); \
QVERIFY(file.open(QIODevice::ReadOnly)); \
QByteArray data = file.readAll(); \
QList<QByteArray> expected = data.split('\n'); \
@@ -96,7 +96,7 @@ private:
inline QUrl TEST_FILE(const QString &filename)
{
QFileInfo fileInfo(__FILE__);
- return QUrl::fromLocalFile(fileInfo.absoluteDir().filePath(filename));
+ return QUrl::fromLocalFile(fileInfo.absoluteDir().filePath(QLatin1String("data/") + filename));
}
inline QUrl TEST_FILE(const char *filename)