File indexing completed on 2024-05-05 17:36:14
0001 /* 0002 KWin - the KDE window manager 0003 This file is part of the KDE project. 0004 0005 SPDX-FileCopyrightText: 2012 Martin Gräßlin <mgraesslin@kde.org> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 #ifndef TEST_TABBOX_CLIENT_MODEL_H 0010 #define TEST_TABBOX_CLIENT_MODEL_H 0011 #include <QObject> 0012 0013 class TestTabBoxClientModel : public QObject 0014 { 0015 Q_OBJECT 0016 private Q_SLOTS: 0017 void initTestCase(); 0018 /** 0019 * Tests that calculating the longest caption does not 0020 * crash in case the internal m_clientList contains a weak 0021 * pointer to a deleted TabBoxClient. 0022 * 0023 * See bug #303840 0024 */ 0025 void testLongestCaptionWithNullClient(); 0026 /** 0027 * Tests the creation of the Client list for the case that 0028 * there is no active Client, but that Clients actually exist. 0029 * 0030 * See BUG: 305449 0031 */ 0032 void testCreateClientListNoActiveClient(); 0033 /** 0034 * Tests the creation of the Client list for the case that 0035 * the active Client is not in the Focus chain. 0036 * 0037 * See BUG: 306260 0038 */ 0039 void testCreateClientListActiveClientNotInFocusChain(); 0040 }; 0041 0042 #endif