Files
qt-creator/tests/auto/qml/reformatter/comments.qml
Ulf Hermann 2b582ed455 QmlJS: Fix reformatter test
Apparently the reformatting truncates any sequence of multiple empty
lines into one. That seems to be by design. Therefore, remove one of the
two adjacent empty lines from commments.qml. Also, don't invert the
actual and expected values in the test code.

Change-Id: Id87c6fa0b2c7a03884d42d109b7d55f5040a927a
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
2018-09-12 08:09:51 +00:00

26 lines
394 B
QML

import QtQuick 2.0
/* Comment 1
This is a multiline comment. */
/*
Another multiline comment.
A slightly different formatting.
*/
Item {
/*
Indented multiline comment.
*/
// Comment over a signal.
signal foo
function test() {
for (var i = model.count - 1; i >= 0; --i) // in-line comment
{
console.log("test")
}
}
}