Changeset View
Changeset View
Standalone View
Standalone View
autotests/syntaxrepository_test.cpp
Show First 20 Lines • Show All 254 Lines • ▼ Show 20 Line(s) | 250 | { | |||
---|---|---|---|---|---|
255 | const QStringList expectedDefinitionNames = { | 255 | const QStringList expectedDefinitionNames = { | ||
256 | QStringLiteral("PHP/PHP"), | 256 | QStringLiteral("PHP/PHP"), | ||
257 | QStringLiteral("Alerts"), | 257 | QStringLiteral("Alerts"), | ||
258 | QStringLiteral("CSS/PHP"), | 258 | QStringLiteral("CSS/PHP"), | ||
259 | QStringLiteral("JavaScript/PHP"), | 259 | QStringLiteral("JavaScript/PHP"), | ||
260 | QStringLiteral("Doxygen"), | 260 | QStringLiteral("Doxygen"), | ||
261 | QStringLiteral("JavaScript React/PHP"), | 261 | QStringLiteral("JavaScript React/PHP"), | ||
262 | QStringLiteral("TypeScript/PHP"), | 262 | QStringLiteral("TypeScript/PHP"), | ||
263 | QStringLiteral("MustacheJS/PHP"), | 263 | QStringLiteral("Mustache/Handlebars (HTML)/PHP"), | ||
264 | QStringLiteral("Modelines"), | 264 | QStringLiteral("Modelines"), | ||
265 | QStringLiteral("HTML"), | 265 | QStringLiteral("HTML"), | ||
266 | QStringLiteral("CSS"), | 266 | QStringLiteral("CSS"), | ||
267 | QStringLiteral("SQL (MySQL)"), | 267 | QStringLiteral("SQL (MySQL)"), | ||
268 | QStringLiteral("JavaScript"), | 268 | QStringLiteral("JavaScript"), | ||
269 | QStringLiteral("JavaScript React"), | 269 | QStringLiteral("JavaScript React"), | ||
270 | QStringLiteral("TypeScript"), | 270 | QStringLiteral("TypeScript"), | ||
271 | QStringLiteral("MustacheJS") | 271 | QStringLiteral("Mustache/Handlebars (HTML)") | ||
272 | }; | 272 | }; | ||
273 | QStringList definitionNames; | 273 | QStringList definitionNames; | ||
274 | for (auto d : defs) { | 274 | for (auto d : defs) { | ||
275 | QVERIFY(d.isValid()); | 275 | QVERIFY(d.isValid()); | ||
276 | definitionNames.push_back(d.name()); | 276 | definitionNames.push_back(d.name()); | ||
277 | 277 | | |||
278 | // already check here a bit to make the test fails better fixable | 278 | // already check here a bit to make the test fails better fixable | ||
279 | if (definitionNames.size() <= expectedDefinitionNames.size()) { | 279 | if (definitionNames.size() <= expectedDefinitionNames.size()) { | ||
▲ Show 20 Lines • Show All 279 Lines • Show Last 20 Lines |