diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-01-26 09:14:05 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-01-26 13:53:41 +0100 |
commit | c87b4abdc09f3ef522941d4f2908792165e2cb4c (patch) | |
tree | aa1908383f87e08aac8c5c2f409bb940fe99dc2a /tests/auto/qml/qmllint/tst_qmllint.cpp | |
parent | ed59dfeb706242d314aa21889ad0f5a7e028069f (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/tst_qmllint.cpp')
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index 994bb2cea0..895953c2f7 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -336,6 +336,7 @@ void TestQmllint::cleanQmlCode_data() QTest::newRow("optionalImport") << QStringLiteral("optionalImport.qml"); QTest::newRow("goodAliasObject") << QStringLiteral("goodAliasObject.qml"); QTest::newRow("jsmoduleimport") << QStringLiteral("jsmoduleimport.qml"); + QTest::newRow("overridescript") << QStringLiteral("overridescript.qml"); } void TestQmllint::cleanQmlCode() |