Changeset View
Changeset View
Standalone View
Standalone View
autotests/syntaxrepository_test.cpp
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | 60 | private Q_SLOTS: | |||
---|---|---|---|---|---|
83 | } | 83 | } | ||
84 | 84 | | |||
85 | void testDefinitionByExtension() | 85 | void testDefinitionByExtension() | ||
86 | { | 86 | { | ||
87 | QFETCH(QString, fileName); | 87 | QFETCH(QString, fileName); | ||
88 | QFETCH(QString, defName); | 88 | QFETCH(QString, defName); | ||
89 | 89 | | |||
90 | auto def = m_repo.definitionForFileName(fileName); | 90 | auto def = m_repo.definitionForFileName(fileName); | ||
91 | | ||||
91 | if (defName.isEmpty()) { | 92 | if (defName.isEmpty()) { | ||
92 | QVERIFY(!def.isValid()); | 93 | QVERIFY(!def.isValid()); | ||
93 | } else { | 94 | } else { | ||
94 | QVERIFY(def.isValid()); | 95 | QVERIFY(def.isValid()); | ||
95 | QCOMPARE(def.name(), defName); | 96 | QCOMPARE(def.name(), defName); | ||
96 | } | 97 | } | ||
97 | } | 98 | } | ||
98 | 99 | | |||
▲ Show 20 Lines • Show All 308 Lines • Show Last 20 Lines |