forked from qt-creator/qt-creator
qmljs editor: test for reformatter
Add test cases for multiline comments. Change-Id: I3e02560791b331c7e1892e9c0bb50cd64241a2bb Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
This commit is contained in:
16
tests/auto/qml/reformatter/comments.qml
Normal file
16
tests/auto/qml/reformatter/comments.qml
Normal file
@@ -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.
|
||||
*/
|
||||
}
|
||||
@@ -8,3 +8,11 @@ TARGET = tst_reformatter
|
||||
|
||||
SOURCES += \
|
||||
tst_reformatter.cpp
|
||||
|
||||
DISTFILES += \
|
||||
jssyntax.js \
|
||||
objectliteral.js \
|
||||
qmlreadonly.qml \
|
||||
qmlsingleton.qml \
|
||||
qmlsyntax.qml \
|
||||
comments.qml
|
||||
|
||||
Reference in New Issue
Block a user