From 96c7d6f8f469f0fce648d42b2a1b5bd11c3f109c Mon Sep 17 00:00:00 2001 From: Marco Benelli Date: Wed, 25 Jan 2017 16:52:23 +0100 Subject: [PATCH] qmljs editor: test for reformatter Add test cases for multiline comments. Change-Id: I3e02560791b331c7e1892e9c0bb50cd64241a2bb Reviewed-by: Erik Verbruggen --- tests/auto/qml/reformatter/comments.qml | 16 ++++++++++++++++ tests/auto/qml/reformatter/reformatter.pro | 8 ++++++++ 2 files changed, 24 insertions(+) create mode 100644 tests/auto/qml/reformatter/comments.qml diff --git a/tests/auto/qml/reformatter/comments.qml b/tests/auto/qml/reformatter/comments.qml new file mode 100644 index 00000000000..61889ea0079 --- /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 f4eb2fc3eeb..ba3a673b71e 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