[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kate/tests
From: Christoph Cullmann <cullmann () kde ! org>
Date: 2010-04-30 20:33:02
Message-ID: 20100430203302.CF1E8AC8AA () svn ! kde ! org
[Download RAW message or body]
SVN commit 1121215 by cullmann:
dhaumann:
add unit test for word wrap with cursor check
CCBUG: 168534
M +11 -0 CMakeLists.txt
A katedocument_test.cpp [License: LGPL (v2+)]
A katedocument_test.h [License: LGPL (v2+)]
M +10 -0 movingcursor_test.cpp
--- trunk/KDE/kdelibs/kate/tests/CMakeLists.txt #1121214:1121215
@@ -134,6 +134,17 @@
katepartinterfaces
)
+########### document test ###############
+
+kde4_add_unit_test(katedocument_test katedocument_test.cpp)
+
+target_link_libraries( katedocument_test
+ ${KDE4_KDEUI_LIBS}
+ ${QT_QTTEST_LIBRARY}
+ ${KATE_TEST_LINK_LIBS}
+ katepartinterfaces
+)
+
endif(NOT MINGW)
# encoding tets
--- trunk/KDE/kdelibs/kate/tests/movingcursor_test.cpp #1121214:1121215
@@ -29,6 +29,16 @@
QTEST_KDEMAIN(MovingCursorTest, GUI)
+namespace QTest {
+ template<>
+ char *toString(const KTextEditor::Cursor &cursor)
+ {
+ QByteArray ba = "Cursor[" + QByteArray::number(cursor.line())
+ + ", " + QByteArray::number(cursor.column()) + "]";
+ return qstrdup(ba.data());
+ }
+}
+
MovingCursorTest::MovingCursorTest()
: QObject()
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic