aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlformat/tst_qmlformat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmlformat/tst_qmlformat.cpp')
-rw-r--r--tests/auto/qml/qmlformat/tst_qmlformat.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlformat/tst_qmlformat.cpp b/tests/auto/qml/qmlformat/tst_qmlformat.cpp
index 3b1f232139..03b320c5c8 100644
--- a/tests/auto/qml/qmlformat/tst_qmlformat.cpp
+++ b/tests/auto/qml/qmlformat/tst_qmlformat.cpp
@@ -61,6 +61,7 @@ private Q_SLOTS:
void testNestedIf();
void testNestedFunctions();
+ void testForOf();
#if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled
void testExample();
@@ -286,6 +287,12 @@ void TestQmlformat::testNestedFunctions()
readTestFile("nestedFunctions.formatted.qml"));
}
+void TestQmlformat::testForOf()
+{
+ QCOMPARE(runQmlformat(testFile("forOf.qml"), false, true),
+ readTestFile("forOf.formatted.qml"));
+}
+
#if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled
void TestQmlformat::testExample_data()
{