diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-09-13 11:34:08 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-09-25 10:03:07 +0200 |
commit | 531cf90305ae50920b2e597dd0758fdb82ad88b0 (patch) | |
tree | 1de7f94a8c4fd2c0b14317d3cd3acfa5f0d8f8ab /tests/auto/qml/qmllint/tst_qmllint.cpp | |
parent | 94a675cc7c2b90374d307fbeb70e590b7c5a733d (diff) |
Make qmllint read qmldir files and qmltypes files in app directory
This makes it possible to resolve components which were either directly
registered in the application or specified as composite types in qmldir
files.
Change-Id: I42482563f31ac780d6b37e62375d09d122c4a308
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qmllint/tst_qmllint.cpp')
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index 9dc0a4dd42..7faa3881d5 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -156,6 +156,7 @@ void TestQmllint::cleanQmlCode_data() QTest::newRow("methodInScope") << QStringLiteral("MethodInScope.qml"); QTest::newRow("importWithPrefix") << QStringLiteral("ImportWithPrefix.qml"); QTest::newRow("catchIdentifier") << QStringLiteral("catchIdentifierNoWarning.qml"); + QTest::newRow("qmldirAndQmltypes") << QStringLiteral("qmldirAndQmltypes.qml"); } void TestQmllint::cleanQmlCode() @@ -171,6 +172,7 @@ QString TestQmllint::runQmllint(const QString &fileToLint, bool shouldSucceed) QStringList args; args << QStringLiteral("-U") << testFile(fileToLint) << QStringLiteral("-I") << qmlImportDir + << QStringLiteral("-I") << dataDirectory() << QStringLiteral("--silent"); QString errors; auto verify = [&](bool isSilent) { |