Changeset View
Changeset View
Standalone View
Standalone View
plugins/clang/tests/test_codecompletion.cpp
Show First 20 Lines • Show All 1195 Lines • ▼ Show 20 Line(s) | 1195 | if (item->argumentHintDepth() == 1) { | |||
---|---|---|---|---|---|
1196 | f = item; | 1196 | f = item; | ||
1197 | break; | 1197 | break; | ||
1198 | } | 1198 | } | ||
1199 | } | 1199 | } | ||
1200 | 1200 | | |||
1201 | QVERIFY(f.data()); | 1201 | QVERIFY(f.data()); | ||
1202 | 1202 | | |||
1203 | const QString itemDisplay = tester.itemData(f).toString() + tester.itemData(f, KTextEditor:: CodeCompletionModel::Arguments).toString(); | 1203 | const QString itemDisplay = tester.itemData(f).toString() + tester.itemData(f, KTextEditor:: CodeCompletionModel::Arguments).toString(); | ||
1204 | QCOMPARE(QStringLiteral("f(int i, int j, double k)"), itemDisplay); | 1204 | QCOMPARE(itemDisplay, QStringLiteral("f(int i, int j, double k)")); | ||
1205 | } | 1205 | } | ||
1206 | 1206 | | |||
1207 | void TestCodeCompletion::testCompleteFunction() | 1207 | void TestCodeCompletion::testCompleteFunction() | ||
1208 | { | 1208 | { | ||
1209 | QFETCH(QString, code); | 1209 | QFETCH(QString, code); | ||
1210 | QFETCH(CompletionItems, expectedItems); | 1210 | QFETCH(CompletionItems, expectedItems); | ||
1211 | QFETCH(QString, itemToExecute); | 1211 | QFETCH(QString, itemToExecute); | ||
1212 | QFETCH(QString, expectedCode); | 1212 | QFETCH(QString, expectedCode); | ||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |