aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlimport/tst_qqmlimport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlimport/tst_qqmlimport.cpp')
-rw-r--r--tests/auto/qml/qqmlimport/tst_qqmlimport.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/auto/qml/qqmlimport/tst_qqmlimport.cpp b/tests/auto/qml/qqmlimport/tst_qqmlimport.cpp
index 94da02f80f..df3d2ba625 100644
--- a/tests/auto/qml/qqmlimport/tst_qqmlimport.cpp
+++ b/tests/auto/qml/qqmlimport/tst_qqmlimport.cpp
@@ -181,17 +181,18 @@ void tst_QQmlImport::importPathOrder()
<< QLatin1String("qrc:/qt-project.org/imports")
<< qml2Imports;
QQmlEngine engine;
- QCOMPARE(expectedImportPaths, engine.importPathList());
+ QCOMPARE(engine.importPathList(), expectedImportPaths);
// Add an import path
engine.addImportPath(QT_QMLTEST_DATADIR);
- expectedImportPaths.prepend(QT_QMLTEST_DATADIR);
- QCOMPARE(expectedImportPaths, engine.importPathList());
+ QFileInfo fi(QT_QMLTEST_DATADIR);
+ expectedImportPaths.prepend(fi.absoluteFilePath());
+ QCOMPARE(engine.importPathList(), expectedImportPaths);
// Add qml2Imports again to make it the first of the list
engine.addImportPath(qml2Imports);
expectedImportPaths.move(expectedImportPaths.indexOf(qml2Imports), 0);
- QCOMPARE(expectedImportPaths, engine.importPathList());
+ QCOMPARE(engine.importPathList(), expectedImportPaths);
}
Q_DECLARE_METATYPE(QQmlImports::ImportVersion)