File indexing completed on 2024-10-06 06:42:57

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2022 Waqar Ahmed <waqar.17a@gmail.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef KTE_MULTI_CURSOR_TEST_H
0009 #define KTE_MULTI_CURSOR_TEST_H
0010 
0011 #include <QObject>
0012 
0013 class MulticursorTest : public QObject
0014 {
0015     Q_OBJECT
0016 
0017 public:
0018     MulticursorTest();
0019     ~MulticursorTest() override;
0020 
0021 private Q_SLOTS:
0022     // Creation
0023     static void testCreateMultiCursor();
0024     static void testCreateMultiCursorFromSelection();
0025     static void testMulticursorToggling();
0026 
0027     // Text transformations
0028     static void testKillline();
0029 
0030     // Insert & Remove tests
0031     static void insertRemoveText();
0032     static void backspace();
0033     static void keyDelete();
0034     static void testUndoRedo();
0035     static void testUndoRedoWithSelection();
0036     static void keyReturnIndentTest();
0037     static void wrapSelectionWithCharsTest();
0038     static void insertAutoBrackets();
0039 
0040     // Movement
0041     static void moveCharTest();
0042     static void moveCharInFirstOrLastLineTest();
0043     static void moveWordTest();
0044     static void homeEndKeyTest();
0045     static void moveUpDown();
0046     static void testSelectionMerge();
0047 
0048     // Find occurunce
0049     static void findNextOccurenceTest();
0050     static void findAllOccurenceTest();
0051 
0052     // Multicopypaste
0053     static void testMultiCopyPaste();
0054 
0055     // Misc
0056     static void testSelectionTextOrdering();
0057     static void testViewClear();
0058 
0059     // API
0060     static void testSetGetCursors();
0061     static void testSetGetSelections();
0062 };
0063 
0064 #endif // KATE_VIEW_TEST_H