aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlformat
diff options
context:
space:
mode:
authorSami Shalayel <sami.shalayel@qt.io>2023-12-14 11:45:51 +0100
committerSami Shalayel <sami.shalayel@qt.io>2023-12-20 08:38:27 +0100
commit720bfe108a60785b0ac4b35f4856a796a14e507e (patch)
tree0f1962dfe68f9ace1e0d6ddc35900ece6611bd41 /tests/auto/qml/qmlformat
parentdabae9cf725f187a406671da882909eb9969b237 (diff)
qmlls: fix completion on attached and grouped properties
Clean up the way in which qualified names (like attached properties) are being completed in bindings and whereever any JSStatement is expected. Qualified types are not being supported yet, this is being tracked into QTBUG-120111. Also add some QEXPECT_FAIL for the completions that fail because of the parser. Currently, we can do: ``` Component.on<request completion here> : {} ``` but we cannot do ``` Component.on<request completion here> ``` as the parser fails because of the missing `: {}`. Pick-to: 6.7 Task-number: QTBUG-120111 Fixes: QTBUG-120102 Fixes: QTBUG-117442 Change-Id: I6c9ccddcc881aa5253530746286e677407a4326d Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlformat')
-rw-r--r--tests/auto/qml/qmlformat/tst_qmlformat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlformat/tst_qmlformat.cpp b/tests/auto/qml/qmlformat/tst_qmlformat.cpp
index 53e83344a2..7aa0a74efc 100644
--- a/tests/auto/qml/qmlformat/tst_qmlformat.cpp
+++ b/tests/auto/qml/qmlformat/tst_qmlformat.cpp
@@ -137,6 +137,8 @@ void TestQmlformat::initTestCase()
m_invalidFiles << "tests/auto/qmlls/utils/data/emptyFile.qml";
m_invalidFiles << "tests/auto/qmlls/utils/data/completions/missingRHS.qml";
m_invalidFiles << "tests/auto/qmlls/utils/data/completions/missingRHS.parserfail.qml";
+ m_invalidFiles << "tests/auto/qmlls/utils/data/completions/attachedPropertyMissingRHS.qml";
+ m_invalidFiles << "tests/auto/qmlls/utils/data/completions/groupedPropertyMissingRHS.qml";
// Files that get changed:
// rewrite of import "bla/bla/.." to import "bla"