File indexing completed on 2024-09-01 13:29:25
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_SCRIPTDOCUMENT_TEST_H 0009 #define KATE_SCRIPTDOCUMENT_TEST_H 0010 0011 #include <QObject> 0012 0013 namespace KTextEditor 0014 { 0015 class View; 0016 } 0017 0018 namespace KTextEditor 0019 { 0020 class DocumentPrivate; 0021 } 0022 class KateScriptDocument; 0023 0024 class ScriptDocumentTest : public QObject 0025 { 0026 Q_OBJECT 0027 0028 public: 0029 ScriptDocumentTest(); 0030 ~ScriptDocumentTest() override; 0031 0032 private Q_SLOTS: 0033 void initTestCase(); 0034 void cleanupTestCase(); 0035 0036 void init(); 0037 void cleanup(); 0038 0039 void testRfind_data(); 0040 void testRfind(); 0041 0042 private: 0043 KTextEditor::DocumentPrivate *m_doc = nullptr; 0044 KTextEditor::View *m_view = nullptr; 0045 KateScriptDocument *m_scriptDoc = nullptr; 0046 0047 public: 0048 static QtMessageHandler s_msgHandler; 0049 }; 0050 0051 #endif