aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/overridescript.qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-01-26 09:14:05 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-01-26 13:53:41 +0100
commitc87b4abdc09f3ef522941d4f2908792165e2cb4c (patch)
treeaa1908383f87e08aac8c5c2f409bb940fe99dc2a /tests/auto/qml/qmllint/data/overridescript.qml
parented59dfeb706242d314aa21889ad0f5a7e028069f (diff)
QmlCompiler: Return after importing a script
If we don't return there, the newly imported script is promptly overwritten by an invalid module. Change-Id: I788a7275e2c190a20c176da35f5c76ac9f6ad02b Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmllint/data/overridescript.qml')
-rw-r--r--tests/auto/qml/qmllint/data/overridescript.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/overridescript.qml b/tests/auto/qml/qmllint/data/overridescript.qml
new file mode 100644
index 0000000000..b85333b95f
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/overridescript.qml
@@ -0,0 +1,7 @@
+import QtQml
+import QtTest
+import "testlogger.js" as TestLogger
+
+QtObject {
+ objectName: TestLogger.log_start_test()
+}