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:
Marco Benelli
2017-01-25 16:52:23 +01:00
parent 1134c097e2
commit 96c7d6f8f4
2 changed files with 24 additions and 0 deletions

View 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.
*/
}

View File

@@ -8,3 +8,11 @@ TARGET = tst_reformatter
SOURCES += \
tst_reformatter.cpp
DISTFILES += \
jssyntax.js \
objectliteral.js \
qmlreadonly.qml \
qmlsingleton.qml \
qmlsyntax.qml \
comments.qml