aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/tst_qmllint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmllint/tst_qmllint.cpp')
-rw-r--r--tests/auto/qml/qmllint/tst_qmllint.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp
index 75938161b5..1b77e941ab 100644
--- a/tests/auto/qml/qmllint/tst_qmllint.cpp
+++ b/tests/auto/qml/qmllint/tst_qmllint.cpp
@@ -51,6 +51,7 @@ private Q_SLOTS:
void testUnknownCausesFail();
void directoryPassedAsQmlTypesFile();
+ void oldQmltypes();
private:
QString runQmllint(const QString &fileToLint,
@@ -133,6 +134,12 @@ void TestQmllint::directoryPassedAsQmlTypesFile()
"Expected error to contain \"%1\", but it didn't: %2").arg(expectedError, errorMessages)));
}
+void TestQmllint::oldQmltypes()
+{
+ const QString errors = runQmllint("oldQmltypes.qml", true);
+ QVERIFY(errors.contains(QStringLiteral("Warning: typeinfo not declared in qmldir file")));
+}
+
void TestQmllint::dirtyQmlCode_data()
{
QTest::addColumn<QString>("filename");