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.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlformat/tst_qmlformat.cpp b/tests/auto/qml/qmlformat/tst_qmlformat.cpp
index ecb53b295f..a1bcada5b4 100644
--- a/tests/auto/qml/qmlformat/tst_qmlformat.cpp
+++ b/tests/auto/qml/qmlformat/tst_qmlformat.cpp
@@ -57,6 +57,8 @@ private Q_SLOTS:
void testQtbug85003();
+ void testNestedIf();
+
#if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled
void testExample();
void testExample_data();
@@ -240,6 +242,12 @@ void TestQmlformat::testLargeBindings()
readTestFile("largeBindings.formatted.qml"));
}
+void TestQmlformat::testNestedIf()
+{
+ QCOMPARE(runQmlformat(testFile("nestedIf.qml"), false, true),
+ readTestFile("nestedIf.formatted.qml"));
+}
+
void TestQmlformat::testLineEndings()
{
// macos