[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: Re: [kate] part/tests: ensure lines are highlighted
From: Dominik Haumann <dhdev () gmx ! de>
Date: 2011-11-22 21:07:59
Message-ID: 201111222208.00112.dhdev () gmx ! de
[Download RAW message or body]
On Monday, 21. November 2011, Milian Wolff wrote:
> 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
Now is that a workaround to hide a bug?
Or was there never a bug?
There were discussions about this on this list already before...
> 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();
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic