Changeset View
Changeset View
Standalone View
Standalone View
autotests/src/templatehandler_test.cpp
Context not available. | |||||
54 | doc->config()->setIndentationWidth(4); | 54 | doc->config()->setIndentationWidth(4); | ||
---|---|---|---|---|---|
55 | doc->config()->setReplaceTabsDyn(true); | 55 | doc->config()->setReplaceTabsDyn(true); | ||
56 | 56 | | |||
57 | view->insertTemplate({0, 0}, snippet); | 57 | view->insertTemplate(KTextEditor::Cursor(0, 0), snippet); | ||
58 | 58 | | |||
59 | const QString result = "for (int i = ; i < ; ++i)\n" | 59 | const QString result = "for (int i = ; i < ; ++i)\n" | ||
60 | "{\n" | 60 | "{\n" | ||
Context not available. | |||||
359 | QFETCH(QString, input); | 359 | QFETCH(QString, input); | ||
360 | QFETCH(QString, function); | 360 | QFETCH(QString, function); | ||
361 | 361 | | |||
362 | view->insertTemplate({0, 0}, input, function); | 362 | view->insertTemplate(KTextEditor::Cursor(0, 0), input, function); | ||
363 | QTEST(doc->text(), "expected"); | 363 | QTEST(doc->text(), "expected"); | ||
364 | 364 | | |||
365 | view->selectAll(); | 365 | view->selectAll(); | ||
Context not available. |