1 /* 2 KWin - the KDE window manager 3 This file is part of the KDE project. 4 5 SPDX-FileCopyrightText: 2012 Martin Gräßlin <mgraesslin@kde.org> 6 7 SPDX-License-Identifier: GPL-2.0-or-later 8 */ 9 #ifndef TEST_TABBOX_CLIENT_MODEL_H 10 #define TEST_TABBOX_CLIENT_MODEL_H 11 #include <QObject> 12 13 class TestTabBoxClientModel : public QObject 14 { 15 Q_OBJECT 16 private Q_SLOTS: 17 void initTestCase(); 18 /** 19 * Tests that calculating the longest caption does not 20 * crash in case the internal m_clientList contains a weak 21 * pointer to a deleted TabBoxClient. 22 * 23 * See bug #303840 24 */ 25 void testLongestCaptionWithNullClient(); 26 /** 27 * Tests the creation of the Client list for the case that 28 * there is no active Client, but that Clients actually exist. 29 * 30 * See BUG: 305449 31 */ 32 void testCreateClientListNoActiveClient(); 33 /** 34 * Tests the creation of the Client list for the case that 35 * the active Client is not in the Focus chain. 36 * 37 * See BUG: 306260 38 */ 39 void testCreateClientListActiveClientNotInFocusChain(); 40 }; 41 42 #endif 43