Changeset View
Changeset View
Standalone View
Standalone View
autotests/syntaxrepository_test.cpp
Show First 20 Lines • Show All 238 Lines • ▼ Show 20 Line(s) | 237 | { | |||
---|---|---|---|---|---|
239 | QVERIFY(def.isValid()); | 239 | QVERIFY(def.isValid()); | ||
240 | auto defs = def.includedDefinitions(); | 240 | auto defs = def.includedDefinitions(); | ||
241 | 241 | | |||
242 | const QStringList expectedDefinitionNames = {QStringLiteral("PHP/PHP"), | 242 | const QStringList expectedDefinitionNames = {QStringLiteral("PHP/PHP"), | ||
243 | QStringLiteral("Alerts"), | 243 | QStringLiteral("Alerts"), | ||
244 | QStringLiteral("CSS/PHP"), | 244 | QStringLiteral("CSS/PHP"), | ||
245 | QStringLiteral("JavaScript/PHP"), | 245 | QStringLiteral("JavaScript/PHP"), | ||
246 | QStringLiteral("Doxygen"), | 246 | QStringLiteral("Doxygen"), | ||
247 | QStringLiteral("JavaScript React/PHP"), | 247 | QStringLiteral("JavaScript React (JSX)/PHP"), | ||
248 | QStringLiteral("TypeScript/PHP"), | 248 | QStringLiteral("TypeScript/PHP"), | ||
249 | QStringLiteral("Mustache/Handlebars (HTML)/PHP"), | 249 | QStringLiteral("Mustache/Handlebars (HTML)/PHP"), | ||
250 | QStringLiteral("Modelines"), | 250 | QStringLiteral("Modelines"), | ||
251 | QStringLiteral("HTML"), | 251 | QStringLiteral("HTML"), | ||
252 | QStringLiteral("CSS"), | 252 | QStringLiteral("CSS"), | ||
253 | QStringLiteral("SQL (MySQL)"), | 253 | QStringLiteral("SQL (MySQL)"), | ||
254 | QStringLiteral("JavaScript"), | 254 | QStringLiteral("JavaScript"), | ||
255 | QStringLiteral("JavaScript React"), | 255 | QStringLiteral("JavaScript React (JSX)"), | ||
256 | QStringLiteral("TypeScript"), | 256 | QStringLiteral("TypeScript"), | ||
257 | QStringLiteral("Mustache/Handlebars (HTML)")}; | 257 | QStringLiteral("Mustache/Handlebars (HTML)")}; | ||
258 | QStringList definitionNames; | 258 | QStringList definitionNames; | ||
259 | for (auto d : defs) { | 259 | for (auto d : defs) { | ||
260 | QVERIFY(d.isValid()); | 260 | QVERIFY(d.isValid()); | ||
261 | definitionNames.push_back(d.name()); | 261 | definitionNames.push_back(d.name()); | ||
262 | 262 | | |||
263 | // already check here a bit to make the test fails better fixable | 263 | // already check here a bit to make the test fails better fixable | ||
▲ Show 20 Lines • Show All 299 Lines • Show Last 20 Lines |