aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-24 19:44:15 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-24 19:44:15 (GMT)
commit668f9005a58316f555692d3982fff0a1bd04edf9 (patch)
tree0a192442204fec048c74d2731f8fcb8c92ba0a79
parenta30476dc528cfcbd806906f8e0c5bf1cce22c490 (diff)
fix indent options
-rw-r--r--autotests/src/templatehandler_test.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/autotests/src/templatehandler_test.cpp b/autotests/src/templatehandler_test.cpp
index 43cd862..0609d12 100644
--- a/autotests/src/templatehandler_test.cpp
+++ b/autotests/src/templatehandler_test.cpp
@@ -21,6 +21,7 @@
#include <katedocument.h>
#include <kateview.h>
+#include <kateconfig.h>
#include <QtTestWidgets>
@@ -39,6 +40,12 @@ void TemplateHandlerTest::testUndo()
initialValues.insert("index", "i");
KTextEditor::DocumentPrivate doc(false, false, 0, this);
+
+ // fixed indentation options
+ doc.config()->setTabWidth(8);
+ doc.config()->setIndentationWidth(4);
+ doc.config()->setReplaceTabsDyn(true);
+
KTextEditor::ViewPrivate view(&doc, 0);
view.insertTemplateTextImplementation(Cursor(0, 0), snippet, initialValues, 0);