aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml')
-rw-r--r--tests/auto/qml/qmllint/data/Things/plugins.qmltypes4
-rw-r--r--tests/auto/qml/qmllint/tst_qmllint.cpp4
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/qml/qmllint/data/Things/plugins.qmltypes b/tests/auto/qml/qmllint/data/Things/plugins.qmltypes
index c04961c5ae..99e1fdc466 100644
--- a/tests/auto/qml/qmllint/data/Things/plugins.qmltypes
+++ b/tests/auto/qml/qmllint/data/Things/plugins.qmltypes
@@ -19,13 +19,13 @@ Module {
name: "Frame"
prototype: "MyPane"
exports: ["Things.Templates/Frame 1.0"]
- exportMetaObjectRevisions: [0]
+ exportMetaObjectRevisions: [256]
}
Component {
name: "MyPane"
prototype: "QObject"
exports: ["Things.Templates/Pane 1.0"]
- exportMetaObjectRevisions: [0]
+ exportMetaObjectRevisions: [256]
Property { name: "contentWidth"; type: "double" }
Property { name: "contentHeight"; type: "double" }
Property { name: "contentData"; type: "QObject"; isList: true; isReadonly: true }
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp
index 4c18253b0c..0d2ab4c4cc 100644
--- a/tests/auto/qml/qmllint/tst_qmllint.cpp
+++ b/tests/auto/qml/qmllint/tst_qmllint.cpp
@@ -140,6 +140,10 @@ void TestQmllint::oldQmltypes()
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")));
+
+ // Checking for both lines separately so that we don't have to mess with the line endings.b
+ QVERIFY(errors.contains(QStringLiteral("Meta object revision and export version differ, ignoring the revision.")));
+ QVERIFY(errors.contains(QStringLiteral("Revision 0 corresponds to version 0.0; it should be 1.0.")));
}
void TestQmllint::dirtyQmlCode_data()