[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kate] part/tests: ensure lines are highlighted
From:       Milian Wolff <mail () milianw ! de>
Date:       2011-11-21 20:19:14
Message-ID: 20111121201914.17745A60BE () git ! kde ! org
[Download RAW message or body]

Git commit 04f306cef18965749997fecb69f272693f953df5 by Milian Wolff.
Committed on 21/11/2011 at 21:12.
Pushed by mwolff into branch 'master'.

ensure lines are highlighted

fixes autoCenter folding tests

M  +4    -0    part/tests/kateview_test.cpp

http://commits.kde.org/kate/04f306cef18965749997fecb69f272693f953df5

diff --git a/part/tests/kateview_test.cpp b/part/tests/kateview_test.cpp
index d808b83..aba79e5 100644
--- a/part/tests/kateview_test.cpp
+++ b/part/tests/kateview_test.cpp
@@ -27,6 +27,7 @@
 #include <ktexteditor/movingcursor.h>
 #include <kateconfig.h>
 #include <ktemporaryfile.h>
+#include <katebuffer.h>
 
 using namespace KTextEditor;
 
@@ -136,6 +137,9 @@ void KateViewTest::testFolding()
     view->config()->setScrollPastEnd(scrollPastEnd);
     view->config()->setAutoCenterLines(autoCenterLines);
 
+    for(int i = 0; i < doc.lines(); ++i) {
+      doc.buffer().ensureHighlighted(i);
+    }
     QCOMPARE(doc.visibleLines(), 4u);
 
     collapseAction->trigger();

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic