diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-08-16 17:03:30 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-08-30 10:34:38 +0200 |
commit | 8f5f363ce8aa0cc9a4abe33bd9e21e59fe1b575a (patch) | |
tree | 90fe2196625a6030c6bcd037d457e55495ec8b10 /tests/auto/qml/qmllint/tst_qmllint.cpp | |
parent | 8b396cb21606c3b384d1bab71851767ea7b24ca5 (diff) |
qmllint: Handle the default import and .ui.qml files
Change-Id: I9d86daa737d30ea0f76af431c59f44d59d4786e4
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qmllint/tst_qmllint.cpp')
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 7 |
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 c1d45ddaf1..8233dbebe5 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -45,6 +45,7 @@ private Q_SLOTS: void testUnqualifiedNoSpuriousParentWarning(); void catchIdentifierNoFalsePositive(); void testUnmatchedSignalHandler(); + void uiQml(); private: QString runQmllint(const QString &fileToLint, bool shouldSucceed); @@ -136,6 +137,12 @@ void TestQmllint::testUnmatchedSignalHandler() QVERIFY(!output.contains(QStringLiteral("onMouseXChanged"))); } +void TestQmllint::uiQml() +{ + const QString output = runQmllint("FormUser.qml", true); + QVERIFY(output.isEmpty()); +} + void TestQmllint::test() { QFETCH(QString, filename); |