diff options
Diffstat (limited to 'tests/auto/qml/qmlformat/tst_qmlformat.cpp')
-rw-r--r-- | tests/auto/qml/qmlformat/tst_qmlformat.cpp | 8 |
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 a1bcada5b4..a3f5cd1a2b 100644 --- a/tests/auto/qml/qmlformat/tst_qmlformat.cpp +++ b/tests/auto/qml/qmlformat/tst_qmlformat.cpp @@ -59,6 +59,8 @@ private Q_SLOTS: void testNestedIf(); + void testNestedFunctions(); + #if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled void testExample(); void testExample_data(); @@ -271,6 +273,12 @@ void TestQmlformat::testQtbug85003() readTestFile("QtBug85003.formatted.qml")); } +void TestQmlformat::testNestedFunctions() +{ + QCOMPARE(runQmlformat(testFile("nestedFunctions.qml"), false, true), + readTestFile("nestedFunctions.formatted.qml")); +} + #if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled void TestQmlformat::testExample_data() { |