aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlformat/tst_qmlformat.cpp
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2020-10-07 11:23:33 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2020-10-07 13:08:19 +0200
commit26fa3d2cef8ec55dfb276e999d41e01e9a846093 (patch)
tree25156d4c3cccc770399fb2dddea82ff376b788d3 /tests/auto/qml/qmlformat/tst_qmlformat.cpp
parent6857ad3e686a5e2b45d28a7f47dca3210608da50 (diff)
qmlformat: Make empty objects one liners
Fixes: QTBUG-87181 Change-Id: Ic8b7f69b4f9faf907ec75f27b689ba3686eb013f Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlformat/tst_qmlformat.cpp')
-rw-r--r--tests/auto/qml/qmlformat/tst_qmlformat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlformat/tst_qmlformat.cpp b/tests/auto/qml/qmlformat/tst_qmlformat.cpp
index 6f2410854a..45a51dec21 100644
--- a/tests/auto/qml/qmlformat/tst_qmlformat.cpp
+++ b/tests/auto/qml/qmlformat/tst_qmlformat.cpp
@@ -235,6 +235,8 @@ void TestQmlformat::testFormat_data()
<< "forOf.formatted.qml" << false << true;
QTest::newRow("property names") << "propertyNames.qml"
<< "propertyNames.formatted.qml" << false << true;
+ QTest::newRow("empty object") << "emptyObject.qml"
+ << "emptyObject.formatted.qml" << false << true;
}
void TestQmlformat::testFormat()