File indexing completed on 2024-04-14 03:54:52

0001 /*
0002     This file is part of the Kate project.
0003 
0004     SPDX-FileCopyrightText: 2021 Waqar Ahmed <waqar.17a@gmail.com>
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef CAMELCURSORTEST_H
0009 #define CAMELCURSORTEST_H
0010 
0011 #include <QObject>
0012 
0013 namespace KTextEditor
0014 {
0015 class ViewPrivate;
0016 class DocumentPrivate;
0017 }
0018 
0019 class CamelCursorTest : public QObject
0020 {
0021     Q_OBJECT
0022 public:
0023     CamelCursorTest(QObject *parent = nullptr);
0024     ~CamelCursorTest() override;
0025 
0026 private Q_SLOTS:
0027     void testWordMovementSingleRow_data();
0028     void testWordMovementSingleRow();
0029     void testRtlWordMovement();
0030     void testWordMovementMultipleRow_data();
0031     void testWordMovementMultipleRow();
0032     void testDeletionRight();
0033     void testDeletionLeft();
0034     void testSelectionRight();
0035     void testSelectionLeft();
0036 
0037 private:
0038     KTextEditor::ViewPrivate *view;
0039     KTextEditor::DocumentPrivate *doc;
0040 };
0041 
0042 #endif