aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangformat/tests/clangformat-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/clangformat/tests/clangformat-test.cpp')
-rw-r--r--src/plugins/clangformat/tests/clangformat-test.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/clangformat/tests/clangformat-test.cpp b/src/plugins/clangformat/tests/clangformat-test.cpp
index c5f77072e4..80d2cc4da9 100644
--- a/src/plugins/clangformat/tests/clangformat-test.cpp
+++ b/src/plugins/clangformat/tests/clangformat-test.cpp
@@ -628,10 +628,16 @@ void ClangFormatTest::testCommentBlock()
void ClangFormatTest::testClassIndentStructure()
{
- insertLines({"class test {", " Q_OBJECT", " public:", "};"});
+ insertLines(
+ {"class test {", " Q_OBJECT", " QML_ELEMENT", " QML_SINGLETON", " public:", "};"});
m_indenter->indent(*m_cursor, QChar::Null, TextEditor::TabSettings());
QCOMPARE(documentLines(),
- (std::vector<QString>{"class test {", " Q_OBJECT", "public:", "};"}));
+ (std::vector<QString>{"class test {",
+ " Q_OBJECT",
+ " QML_ELEMENT",
+ " QML_SINGLETON",
+ "public:",
+ "};"}));
}
void ClangFormatTest::testIndentInitializeVector()