summaryrefslogtreecommitdiff
path: root/tests/auto
diff options
context:
space:
mode:
authorVictor Heng <heng.victor@gmail.com>2016-05-14 22:58:03 -0700
committerMarco Benelli <marco.benelli@qt.io>2016-05-19 09:55:11 +0000
commit11ef0db2fd1ac57c261cfa1721b04d8038eb57d9 (patch)
tree3a51066844a31b24673d23fe1c2b52c4a7377bec /tests/auto
parent52b34611dd1ab70bba5ed557e3d6faa435621d6a (diff)
downloadqt-creator-11ef0db2fd1ac57c261cfa1721b04d8038eb57d9.tar.gz
QmlJS: Keep pragma directive when reformatting QML files
Change-Id: I1f11e95565a90e4fc7b908c03d49f6abbd37b8be Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qml/reformatter/qmlsingleton.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/reformatter/qmlsingleton.qml b/tests/auto/qml/reformatter/qmlsingleton.qml
new file mode 100644
index 0000000000..d64f554097
--- /dev/null
+++ b/tests/auto/qml/reformatter/qmlsingleton.qml
@@ -0,0 +1,6 @@
+pragma Singleton
+
+import QtQuick 2.0
+
+Item {
+}