From 61417ad3525d33c41e7d8423103e876a922d5f8b Mon Sep 17 00:00:00 2001 From: Maximilian Goldstein Date: Wed, 7 Oct 2020 12:46:24 +0200 Subject: qmlformat: Make arrow functions one liners Fixes: QTBUG-87179 Change-Id: Ieb7dffab59923bcb2ce8745c499eff7de44134b1 Reviewed-by: Ulf Hermann --- tests/auto/qml/qmlformat/tst_qmlformat.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/auto/qml/qmlformat/tst_qmlformat.cpp') diff --git a/tests/auto/qml/qmlformat/tst_qmlformat.cpp b/tests/auto/qml/qmlformat/tst_qmlformat.cpp index 45a51dec21..dfe41a77d8 100644 --- a/tests/auto/qml/qmlformat/tst_qmlformat.cpp +++ b/tests/auto/qml/qmlformat/tst_qmlformat.cpp @@ -237,6 +237,8 @@ void TestQmlformat::testFormat_data() << "propertyNames.formatted.qml" << false << true; QTest::newRow("empty object") << "emptyObject.qml" << "emptyObject.formatted.qml" << false << true; + QTest::newRow("arrow functions") << "arrowFunctions.qml" + << "arrowFunctions.formatted.qml" << false << true; } void TestQmlformat::testFormat() -- cgit v1.2.3