Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/debug_console_test.cpp
Show All 12 Lines | |||||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "kwin_wayland_test.h" | 20 | #include "kwin_wayland_test.h" | ||
21 | #include "abstract_client.h" | ||||
21 | #include "debug_console.h" | 22 | #include "debug_console.h" | ||
22 | #include "internal_client.h" | 23 | #include "internal_client.h" | ||
23 | #include "platform.h" | 24 | #include "platform.h" | ||
24 | #include "screens.h" | 25 | #include "screens.h" | ||
25 | #include "xdgshellclient.h" | | |||
26 | #include "wayland_server.h" | 26 | #include "wayland_server.h" | ||
27 | #include "workspace.h" | 27 | #include "workspace.h" | ||
28 | #include "xcbutils.h" | 28 | #include "xcbutils.h" | ||
29 | 29 | | |||
30 | #include <KWayland/Client/connection_thread.h> | 30 | #include <KWayland/Client/connection_thread.h> | ||
31 | #include <KWayland/Client/compositor.h> | 31 | #include <KWayland/Client/compositor.h> | ||
32 | #include <KWayland/Client/shm_pool.h> | 32 | #include <KWayland/Client/shm_pool.h> | ||
33 | #include <KWayland/Client/surface.h> | 33 | #include <KWayland/Client/surface.h> | ||
Show All 21 Lines | 46 | private Q_SLOTS: | |||
55 | void testInternalWindow(); | 55 | void testInternalWindow(); | ||
56 | void testClosingDebugConsole(); | 56 | void testClosingDebugConsole(); | ||
57 | }; | 57 | }; | ||
58 | 58 | | |||
59 | void DebugConsoleTest::initTestCase() | 59 | void DebugConsoleTest::initTestCase() | ||
60 | { | 60 | { | ||
61 | qRegisterMetaType<KWin::AbstractClient *>(); | 61 | qRegisterMetaType<KWin::AbstractClient *>(); | ||
62 | qRegisterMetaType<KWin::InternalClient *>(); | 62 | qRegisterMetaType<KWin::InternalClient *>(); | ||
63 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
64 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 63 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
65 | QVERIFY(workspaceCreatedSpy.isValid()); | 64 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
66 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 65 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
67 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 66 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
68 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | 67 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
69 | 68 | | |||
70 | kwinApp()->start(); | 69 | kwinApp()->start(); | ||
71 | QVERIFY(workspaceCreatedSpy.wait()); | 70 | QVERIFY(workspaceCreatedSpy.wait()); | ||
▲ Show 20 Lines • Show All 461 Lines • Show Last 20 Lines |