summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSemih Yavuz <semih.yavuz@qt.io>2023-05-05 19:44:56 +0200
committerSemih Yavuz <semih.yavuz@qt.io>2023-05-08 07:39:26 +0000
commitcd73f8c6b8dd6e62b3cdff972d7194f4ff34a105 (patch)
treeeb1f9dde2949aedd2aed3e45d6ed823a2eff5f7f /tests
parenta65637be5ca94c10fb053e301463af2f7313a358 (diff)
downloadqt-creator-cd73f8c6b8dd6e62b3cdff972d7194f4ff34a105.tar.gz
qmljsreformatter: don't default foreach type to "in"
Fixes: QTCREATORBUG-29123 Change-Id: I4d3a611c359946c4483388cbf18a0b6f16d0a8d6 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/reformatter/forEachType.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/reformatter/forEachType.qml b/tests/auto/qml/reformatter/forEachType.qml
new file mode 100644
index 0000000000..6fdabbde1b
--- /dev/null
+++ b/tests/auto/qml/reformatter/forEachType.qml
@@ -0,0 +1,9 @@
+import QtQml
+
+QtObject {
+ Component.onCompleted: {
+ for (var i of ["one", "two", "free"]) {
+ console.debug(i)
+ }
+ }
+}