diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-16 09:11:40 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-19 15:59:58 +0200 |
commit | c010364342e3cd749c5ec8e44f1b73e7d8cba99c (patch) | |
tree | 55e3828d67da44460f5c9dec497d3197642744e7 /tests/auto/qml/qmllint/tst_qmllint.cpp | |
parent | cc57bac899b6e13078197da7c40ad27fade7ee0d (diff) |
QmlCompiler: Drop the metaobject revision from exports
Instead, output a warning if the revision doesn't match the version. We
want to get rid of generic version/revision matching. To this end, add a
way to retrieve the version from an export.
Change-Id: Ie887103eba910f14e49faa684ac559cc72cab199
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmllint/tst_qmllint.cpp')
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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() |