aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlbasicapp/tst_qmlbasicapp.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-06-24 15:29:02 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-06-30 10:08:03 +0200
commitbae18ecd340f8a952d1b3be2b309d50e84707c69 (patch)
tree9b38410ba1e097e87a75ac4684280cc2305a4eeb /tests/auto/qml/qmlbasicapp/tst_qmlbasicapp.cpp
parent3308e56b2d9802ec8092a348dce44f464617505b (diff)
QtQml: Key plugins by URI where possible
This allows us to associate different qmldir files for the same module with one another. Typically there is one qmldir file in the resource file system and one in the QML import path. We cannot load plugins for the latter, but usually we have already loaded any plugins we need. Now we can detect this. This requires us to construct a proper URI for implicit imports. The easiest way to do this is to just use the URI from the qmldir if available. Modules with versions encoded in their paths and modules with multiple plugins cannot be resolved by URI only. These continue to be keyed by path. However, as we do not generate such modules, we will not automatically get two instances of those, and we won't have to fall back from one to the other. Pick-to: 6.2 Change-Id: Ic79add936d263a8e559fd998fca15a6ae160952e Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlbasicapp/tst_qmlbasicapp.cpp')
-rw-r--r--tests/auto/qml/qmlbasicapp/tst_qmlbasicapp.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/qml/qmlbasicapp/tst_qmlbasicapp.cpp b/tests/auto/qml/qmlbasicapp/tst_qmlbasicapp.cpp
index 08ce2f0fd9..c58cc4a863 100644
--- a/tests/auto/qml/qmlbasicapp/tst_qmlbasicapp.cpp
+++ b/tests/auto/qml/qmlbasicapp/tst_qmlbasicapp.cpp
@@ -45,7 +45,6 @@ void tst_basicapp::loadComponent()
{
QQmlEngine engine;
QQmlComponent c(&engine, QStringLiteral("qrc:/BasicApp/main.qml"));
- QEXPECT_FAIL(nullptr, "Tries to load plugin from qrc", Abort);
QVERIFY2(c.isReady(), qPrintable(c.errorString()));
QScopedPointer o(c.create());
QVERIFY(!o.isNull());