File indexing completed on 2024-04-28 07:46:06

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2011-2018 Dominik Haumann <dhaumann@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef KATE_MODIFICATION_SYSTEM_TEST_H
0009 #define KATE_MODIFICATION_SYSTEM_TEST_H
0010 
0011 #include <QObject>
0012 
0013 /**
0014  * Test the complete Line Modification System.
0015  * Covered classes:
0016  * - KateModification* in part/undo/
0017  * - modification flags in Kate::TextLine in part/buffer/
0018  */
0019 class ModificationSystemTest : public QObject
0020 {
0021     Q_OBJECT
0022 
0023 private Q_SLOTS:
0024     void initTestCase();
0025     void cleanupTestCase();
0026 
0027     void testInsertText();
0028     void testRemoveText();
0029 
0030     void testInsertLine();
0031     void testRemoveLine();
0032 
0033     void testWrapLineMid();
0034     void testWrapLineAtEnd();
0035     void testWrapLineAtStart();
0036 
0037     void testUnWrapLine();
0038     void testUnWrapLine1Empty();
0039     void testUnWrapLine2Empty();
0040 
0041     void testNavigation();
0042 };
0043 
0044 #endif