Changeset View
Changeset View
Standalone View
Standalone View
autotests/foldingtest.cpp
Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Line(s) | 128 | private Q_SLOTS: | |||
---|---|---|---|---|---|
161 | void testFolding() | 161 | void testFolding() | ||
162 | { | 162 | { | ||
163 | QFETCH(QString, inFile); | 163 | QFETCH(QString, inFile); | ||
164 | QFETCH(QString, outFile); | 164 | QFETCH(QString, outFile); | ||
165 | QFETCH(QString, refFile); | 165 | QFETCH(QString, refFile); | ||
166 | QFETCH(QString, syntax); | 166 | QFETCH(QString, syntax); | ||
167 | 167 | | |||
168 | Repository m_repo; | 168 | Repository m_repo; | ||
169 | initRepositorySearchPaths(m_repo); | ||||
169 | 170 | | |||
170 | auto def = m_repo.definitionForFileName(inFile); | 171 | auto def = m_repo.definitionForFileName(inFile); | ||
171 | if (!syntax.isEmpty()) | 172 | if (!syntax.isEmpty()) | ||
172 | def = m_repo.definitionForName(syntax); | 173 | def = m_repo.definitionForName(syntax); | ||
173 | 174 | | |||
174 | FoldingHighlighter highlighter; | 175 | FoldingHighlighter highlighter; | ||
175 | 176 | | |||
176 | QVERIFY(def.isValid()); | 177 | QVERIFY(def.isValid()); | ||
Show All 20 Lines |