File indexing completed on 2024-04-28 03:57:10
0001 /* 0002 SPDX-FileCopyrightText: 2022 Martin Seher <martin.seher@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef HLSEARCH_TEST_H 0008 #define HLSEARCH_TEST_H 0009 0010 #include "base.h" 0011 #include <array> 0012 0013 namespace Kate 0014 { 0015 class TextRange; 0016 } 0017 0018 class EmulatedCommandBarSetUpAndTearDown; 0019 0020 class HlSearchTest : public BaseTest 0021 { 0022 Q_OBJECT 0023 0024 private Q_SLOTS: 0025 void highlightModeTests(); 0026 0027 private: 0028 QList<Kate::TextRange *> rangesOnLine(int line); 0029 void setWindowSize(); 0030 0031 void TestHighlight_(int line, const char *file, const Kate::TextRange &r, std::array<int, 2> start, std::array<int, 2> end, const QColor &bg); 0032 0033 std::unique_ptr<EmulatedCommandBarSetUpAndTearDown> m_emulatedCommandBarSetUpAndTearDown; 0034 }; 0035 0036 #endif /* HLSEARCH_TEST_H */