diff options
author | Marco Benelli <marco.benelli@qt.io> | 2017-01-25 16:52:23 +0100 |
---|---|---|
committer | Marco Benelli <marco.benelli@qt.io> | 2017-01-31 09:55:50 +0000 |
commit | 96c7d6f8f469f0fce648d42b2a1b5bd11c3f109c (patch) | |
tree | 5f94d66edb3843bc2e42dda035ec17fd87238662 /tests/auto/qml | |
parent | 1134c097e2f4fc271e8fa54720d9b5c753a2fd9f (diff) | |
download | qt-creator-96c7d6f8f469f0fce648d42b2a1b5bd11c3f109c.tar.gz |
qmljs editor: test for reformatter
Add test cases for multiline comments.
Change-Id: I3e02560791b331c7e1892e9c0bb50cd64241a2bb
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'tests/auto/qml')
-rw-r--r-- | tests/auto/qml/reformatter/comments.qml | 16 | ||||
-rw-r--r-- | tests/auto/qml/reformatter/reformatter.pro | 8 |
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/qml/reformatter/comments.qml b/tests/auto/qml/reformatter/comments.qml new file mode 100644 index 0000000000..61889ea007 --- /dev/null +++ b/tests/auto/qml/reformatter/comments.qml @@ -0,0 +1,16 @@ +import QtQuick 2.0 + + +/* Comment 1 + This is a multiline comment. */ + +/* + Another multiline comment. + + A slightly different formatting. +*/ +Item { + /* + Indented multiline comment. + */ +} diff --git a/tests/auto/qml/reformatter/reformatter.pro b/tests/auto/qml/reformatter/reformatter.pro index f4eb2fc3ee..ba3a673b71 100644 --- a/tests/auto/qml/reformatter/reformatter.pro +++ b/tests/auto/qml/reformatter/reformatter.pro @@ -8,3 +8,11 @@ TARGET = tst_reformatter SOURCES += \ tst_reformatter.cpp + +DISTFILES += \ + jssyntax.js \ + objectliteral.js \ + qmlreadonly.qml \ + qmlsingleton.qml \ + qmlsyntax.qml \ + comments.qml |