diff options
Diffstat (limited to 'tests/auto/qml/qmlformat/tst_qmlformat.cpp')
-rw-r--r-- | tests/auto/qml/qmlformat/tst_qmlformat.cpp | 7 |
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 03b320c5c8..413dc5f8a5 100644 --- a/tests/auto/qml/qmlformat/tst_qmlformat.cpp +++ b/tests/auto/qml/qmlformat/tst_qmlformat.cpp @@ -62,6 +62,7 @@ private Q_SLOTS: void testNestedFunctions(); void testForOf(); + void testPropertyNames(); #if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled void testExample(); @@ -293,6 +294,12 @@ void TestQmlformat::testForOf() readTestFile("forOf.formatted.qml")); } +void TestQmlformat::testPropertyNames() +{ + QCOMPARE(runQmlformat(testFile("propertyNames.qml"), false, true), + readTestFile("propertyNames.formatted.qml")); +} + #if !defined(QTEST_CROSS_COMPILED) // sources not available when cross compiled void TestQmlformat::testExample_data() { |