aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-09-25 16:14:53 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-09-28 13:26:52 +0200
commit4cd06638c198c7ed48680c63e9df943e3680e89e (patch)
tree1c4213b905d02646dbbd0c4ec006791b30aeac20 /tests
parent9e2f4e112776149be550dbea6003a192cd931538 (diff)
qmllint: Make imports local
Imports are not transitive. qmllint gets this wrong so far. Fixing it reveals two tests where we use types we haven't imported. Import the relevant modules. Change-Id: I45f3229468d54137f97d6b699f3a98a1349bc412 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qmllint/data/AttachedType.qml1
-rw-r--r--tests/auto/qml/qmllint/data/importing_js.qml1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/AttachedType.qml b/tests/auto/qml/qmllint/data/AttachedType.qml
index 02fa514e83..f852a39a22 100644
--- a/tests/auto/qml/qmllint/data/AttachedType.qml
+++ b/tests/auto/qml/qmllint/data/AttachedType.qml
@@ -1,4 +1,5 @@
import Things 1.0
+import QtQuick
Item {
property real test: Screen.pixelDensity * 0.5
diff --git a/tests/auto/qml/qmllint/data/importing_js.qml b/tests/auto/qml/qmllint/data/importing_js.qml
index fa6cf797db..b2d7a34fe6 100644
--- a/tests/auto/qml/qmllint/data/importing_js.qml
+++ b/tests/auto/qml/qmllint/data/importing_js.qml
@@ -1,4 +1,5 @@
import "QTBUG-45916.js" as JSTest
+import QtQuick
Item {
id: root