File indexing completed on 2024-06-23 05:49:23
0001 /* 0002 This file is part of the Kasten Framework, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2007 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef KASTEN_TESTDOCUMENTTEST_HPP 0010 #define KASTEN_TESTDOCUMENTTEST_HPP 0011 0012 // sut 0013 #include <kastencore.hpp> 0014 // Qt 0015 #include <QObject> 0016 0017 class QSignalSpy; 0018 class QString; 0019 0020 class TestDocumentTest : public QObject 0021 { 0022 Q_OBJECT 0023 0024 private: 0025 void checkTitleChanged(QSignalSpy* titleChangedSpy, const QString& title); 0026 void checkContentFlagsChanged(QSignalSpy* changedSpy, Kasten::ContentFlags contentFlags); 0027 0028 private Q_SLOTS: // test functions 0029 void testPlainConstructor(); 0030 void testDataConstructor(); 0031 void testChangeData(); 0032 void testSetTitle(); 0033 void testSetContentFlags(); 0034 0035 }; 0036 0037 #endif