aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmllint')
-rw-r--r--tests/auto/qml/qmllint/data/brokenNamespace.qml5
-rw-r--r--tests/auto/qml/qmllint/tst_qmllint.cpp4
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/brokenNamespace.qml b/tests/auto/qml/qmllint/data/brokenNamespace.qml
new file mode 100644
index 0000000000..45f20b941c
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/brokenNamespace.qml
@@ -0,0 +1,5 @@
+import QtQuick as T
+
+T.Item {
+ objectName: T.some.bs
+}
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp
index c1ccae7235..994bb2cea0 100644
--- a/tests/auto/qml/qmllint/tst_qmllint.cpp
+++ b/tests/auto/qml/qmllint/tst_qmllint.cpp
@@ -273,6 +273,10 @@ void TestQmllint::dirtyQmlCode_data()
<< QStringLiteral("badScript.qml")
<< QString("Warning: Property \"stuff\" not found on type \"Empty\"")
<< QString();
+ QTest::newRow("brokenNamespace")
+ << QStringLiteral("brokenNamespace.qml")
+ << QString("Warning: type not found in namespace at %1:4:17")
+ << QString();
}
void TestQmllint::dirtyQmlCode()