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

List:       kde-commits
Subject:    [kate] part/tests: Change "gqq" test to reflect new wrapping behaviour
From:       Erlend Hamberg <ehamberg () gmail ! com>
Date:       2012-10-28 12:08:45
Message-ID: 20121028120845.A7793A6078 () git ! kde ! org
[Download RAW message or body]

Git commit e1b8744907a92df0b874feaba4189e32cb03e271 by Erlend Hamberg.
Committed on 28/10/2012 at 13:03.
Pushed by ehamberg into branch 'master'.

Change "gqq" test to reflect new wrapping behaviour

Wrapping text in Kate no longer removes trailing whitespace. Update the vi
mode test to reflect this. (It can be argued that the vi mode text
re-formatting code should itself remove trailing whitespace...)

M  +1    -1    part/tests/vimode_test.cpp

http://commits.kde.org/kate/e1b8744907a92df0b874feaba4189e32cb03e271

diff --git a/part/tests/vimode_test.cpp b/part/tests/vimode_test.cpp
index fb88c17..5dce754 100644
--- a/part/tests/vimode_test.cpp
+++ b/part/tests/vimode_test.cpp
@@ -659,7 +659,7 @@ void ViModeTest::NormalModeCommandsTest() {
   // when setting the text to wrap at column 10, this should be re-formatt=
ed to
   // span several lines ...
   kate_document->setWordWrapAt( 10 );
-  DoTest("foo bar foo bar foo bar", "gqq", "foo bar\nfoo bar\nfoo bar");
+  DoTest("foo bar foo bar foo bar", "gqq", "foo bar \nfoo bar \nfoo bar");
 =

   // ... and when re-setting it to column 80 again, they should be joined =
again
   kate_document->setWordWrapAt( 80 );
[prev in list] [next in list] [prev in thread] [next in thread] 

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