diff options
Diffstat (limited to 'tests/auto/qml/qmllint/tst_qmllint.cpp')
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index d5912def6b..6d472842ca 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -183,6 +183,10 @@ void TestQmllint::dirtyQmlCode_data() << QStringLiteral("Cycle1.qml") << QString("Warning: Cycle2 is part of an inheritance cycle: Cycle2 -> Cycle3 -> Cycle1 -> Cycle2") << QString(); + QTest::newRow("badQmldirImportAndDepend") + << QStringLiteral("qmldirImportAndDepend/bad.qml") + << QString("warning: Item was not found. Did you add all import paths?") + << QString(); } void TestQmllint::dirtyQmlCode() @@ -224,6 +228,7 @@ void TestQmllint::cleanQmlCode_data() QTest::newRow("EnumAccess2") << QStringLiteral("EnumAccess2.qml"); QTest::newRow("ListProperty") << QStringLiteral("ListProperty.qml"); QTest::newRow("AttachedType") << QStringLiteral("AttachedType.qml"); + QTest::newRow("qmldirImportAndDepend") << QStringLiteral("qmldirImportAndDepend/good.qml"); } void TestQmllint::cleanQmlCode() |