diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-08-16 16:44:06 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-08-30 10:34:51 +0200 |
commit | c3fa4a2d39dce9e20c6f0ce93465440d408dac8d (patch) | |
tree | 7b5ea6570b7135abaf8efe01a501ac9167792cd8 /tests/auto/qml/qmllint/tst_qmllint.cpp | |
parent | 8f5f363ce8aa0cc9a4abe33bd9e21e59fe1b575a (diff) |
qmllint: Consider methods from the current scope as valid IDs
Change-Id: I71e9e2d5b4623938605d7afbfc79ae5c7d4251fc
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 8233dbebe5..cfcc6bf246 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -46,6 +46,7 @@ private Q_SLOTS: void catchIdentifierNoFalsePositive(); void testUnmatchedSignalHandler(); void uiQml(); + void methodInScope(); private: QString runQmllint(const QString &fileToLint, bool shouldSucceed); @@ -143,6 +144,12 @@ void TestQmllint::uiQml() QVERIFY(output.isEmpty()); } +void TestQmllint::methodInScope() +{ + const QString output = runQmllint("MethodInScope.qml", true); + QVERIFY(output.isEmpty()); +} + void TestQmllint::test() { QFETCH(QString, filename); |