diff options
Diffstat (limited to 'tests/auto/qml/qmllint')
-rw-r--r-- | tests/auto/qml/qmllint/data/OldQmltypes/plugins.qmltypes | 2 | ||||
-rw-r--r-- | tests/auto/qml/qmllint/data/oldQmltypes.qml | 1 | ||||
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/OldQmltypes/plugins.qmltypes b/tests/auto/qml/qmllint/data/OldQmltypes/plugins.qmltypes index eab91f6723..71a515d8c5 100644 --- a/tests/auto/qml/qmllint/data/OldQmltypes/plugins.qmltypes +++ b/tests/auto/qml/qmllint/data/OldQmltypes/plugins.qmltypes @@ -1,7 +1,9 @@ import QtQuick.tooling 1.2 Module { + dependencies: [ "QtQuick 2.15" ] Component { name: "Frame" + prototype: "QQuickItem" exports: ["OldQmltypes/Frame 1.0"] exportMetaObjectRevisions: [0] } diff --git a/tests/auto/qml/qmllint/data/oldQmltypes.qml b/tests/auto/qml/qmllint/data/oldQmltypes.qml index f33d4d90fe..80980be451 100644 --- a/tests/auto/qml/qmllint/data/oldQmltypes.qml +++ b/tests/auto/qml/qmllint/data/oldQmltypes.qml @@ -1,4 +1,5 @@ import OldQmltypes 1.0 Frame { + x: 15 } diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index 1b77e941ab..0b78285c23 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -138,6 +138,8 @@ void TestQmllint::oldQmltypes() { const QString errors = runQmllint("oldQmltypes.qml", true); QVERIFY(errors.contains(QStringLiteral("Warning: typeinfo not declared in qmldir file"))); + QVERIFY(!errors.contains(QStringLiteral("Warning: QQuickItem was not found. Did you add all import paths?"))); + QVERIFY(errors.contains(QStringLiteral("Warning: Found deprecated dependency specifications"))); } void TestQmllint::dirtyQmlCode_data() |