aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorUladzislau Paulovich <selatnick@gmail.com>2019-06-09 02:46:14 +0300
committerselatnick <selatnick@gmail.com>2019-06-11 15:22:36 +0000
commit8dc16d55c26af46101365434f0f29847c3959cc7 (patch)
tree7f5a8d24fa1fde405dd699e2b648b2a1504f949f /tests/auto
parentbe967e1cd96fb7a03ce266967ffc7e3b262b8d09 (diff)
qml | Fix empty objects formatting
Change-Id: I760f3420fef9ca83c2a28586575a72d580658d0f Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qml/reformatter/objectliteral.js2
-rw-r--r--tests/auto/qml/reformatter/qmlsingleton.qml3
-rw-r--r--tests/auto/qml/reformatter/qmlsyntax.qml2
3 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/qml/reformatter/objectliteral.js b/tests/auto/qml/reformatter/objectliteral.js
index 37f6863374..d260712166 100644
--- a/tests/auto/qml/reformatter/objectliteral.js
+++ b/tests/auto/qml/reformatter/objectliteral.js
@@ -10,3 +10,5 @@ var x = {
},
"z": 12
}
+
+var empty_object = {}
diff --git a/tests/auto/qml/reformatter/qmlsingleton.qml b/tests/auto/qml/reformatter/qmlsingleton.qml
index d64f554097..05a08e7de4 100644
--- a/tests/auto/qml/reformatter/qmlsingleton.qml
+++ b/tests/auto/qml/reformatter/qmlsingleton.qml
@@ -2,5 +2,4 @@ pragma Singleton
import QtQuick 2.0
-Item {
-}
+Item {}
diff --git a/tests/auto/qml/reformatter/qmlsyntax.qml b/tests/auto/qml/reformatter/qmlsyntax.qml
index ded863106a..8717aba35d 100644
--- a/tests/auto/qml/reformatter/qmlsyntax.qml
+++ b/tests/auto/qml/reformatter/qmlsyntax.qml
@@ -45,4 +45,6 @@ Text {
function foo(a, b) {
x = a + 12 * b
}
+
+ value: Rectangle {}
}