diff options
Diffstat (limited to 'tests/auto/qml/qmllint/tst_qmllint.cpp')
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index 20819b30e6..31faaacc07 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -812,6 +812,30 @@ void TestQmllint::dirtyQmlCode_data() << QStringLiteral("badCppPropertyChangeHandlers4.qml") << QStringLiteral("no matching signal found for handler \"onWannabeSignal\"") << QString() << QString() << false; + QTest::newRow("shadowedSignal") + << QStringLiteral("shadowedSignal.qml") + << QStringLiteral("Signal \"pressed\" is shadowed by a property.") << QString() + << QString() << false; + QTest::newRow("shadowedSignalWithId") + << QStringLiteral("shadowedSignalWithId.qml") + << QStringLiteral("Signal \"pressed\" is shadowed by a property") << QString() + << QString() << false; + QTest::newRow("shadowedSlot") << QStringLiteral("shadowedSlot.qml") + << QStringLiteral("Slot \"move\" is shadowed by a property") + << QString() << QString() << false; + QTest::newRow("shadowedMethod") << QStringLiteral("shadowedMethod.qml") + << QStringLiteral("Method \"foo\" is shadowed by a property.") + << QString() << QString() << false; + QTest::newRow("callVarProp") + << QStringLiteral("callVarProp.qml") + << QStringLiteral("Property \"foo\" is a variant property. It may or may not be a " + "method. Use a regular function instead.") + << QString() << QString() << false; + QTest::newRow("callJSValue") + << QStringLiteral("callJSValueProp.qml") + << QStringLiteral("Property \"callLater\" is a QJSValue property. It may or may not be " + "a method. Use a regular Q_INVOKABLE instead.") + << QString() << QString() << false; } void TestQmllint::dirtyQmlCode() |