File indexing completed on 2024-04-21 03:57:16

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2010 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef KATE_SEARCHBAR_TEST_H
0009 #define KATE_SEARCHBAR_TEST_H
0010 
0011 #include <QObject>
0012 
0013 class SearchBarTest : public QObject
0014 {
0015     Q_OBJECT
0016 
0017 public:
0018     SearchBarTest();
0019     ~SearchBarTest() override;
0020 
0021 public Q_SLOTS:
0022     void initTestCase();
0023     void cleanupTestCase();
0024 
0025 private Q_SLOTS:
0026     void testFindNextIncremental();
0027 
0028     void testFindNextZeroLengthMatch();
0029 
0030     void testFindNextNoNewLineAtEnd();
0031 
0032     void testSetMatchCaseIncremental();
0033 
0034     void testSetMatchCasePower();
0035 
0036     void testSetSelectionOnlyPower();
0037 
0038     void testSetSearchPattern_data();
0039     void testSetSearchPattern();
0040 
0041     void testSetSelectionOnly();
0042 
0043     void testFindAll_data();
0044     void testFindAll();
0045 
0046     void testReplaceInSelectionOnly();
0047     void testReplaceAll();
0048 
0049     void testFindSelectionForward_data();
0050     void testFindSelectionForward();
0051 
0052     void testRemoveWithSelectionForward_data();
0053     void testRemoveWithSelectionForward();
0054 
0055     void testRemoveInSelectionForward_data();
0056     void testRemoveInSelectionForward();
0057 
0058     void testReplaceWithDoubleSelecion_data();
0059     void testReplaceWithDoubleSelecion();
0060 
0061     void testReplaceDollar();
0062 
0063     void testSearchHistoryIncremental();
0064     void testSearchHistoryPower();
0065 
0066     void testReplaceInBlockMode();
0067     void testNonEmptyBlockSelectionAndSearchInSelectionOnlyDisabled();
0068 
0069     void testReplaceManyCapturesBug365124();
0070 
0071     void testReplaceEscapeSequence_data();
0072     void testReplaceEscapeSequence();
0073 };
0074 
0075 #endif