Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/scene_qpainter_test.cpp
Show All 18 Lines | |||||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "kwin_wayland_test.h" | 20 | #include "kwin_wayland_test.h" | ||
21 | #include "composite.h" | 21 | #include "composite.h" | ||
22 | #include "effectloader.h" | 22 | #include "effectloader.h" | ||
23 | #include "x11client.h" | 23 | #include "x11client.h" | ||
24 | #include "cursor.h" | 24 | #include "cursor.h" | ||
25 | #include "effects.h" | 25 | #include "effects.h" | ||
26 | #include "platform.h" | 26 | #include "platform.h" | ||
27 | #include "xdgshellclient.h" | | |||
28 | #include "wayland_server.h" | 27 | #include "wayland_server.h" | ||
29 | #include "effect_builtins.h" | 28 | #include "effect_builtins.h" | ||
30 | #include "workspace.h" | 29 | #include "workspace.h" | ||
31 | 30 | | |||
32 | #include <KConfigGroup> | 31 | #include <KConfigGroup> | ||
33 | 32 | | |||
34 | #include <KWayland/Client/seat.h> | 33 | #include <KWayland/Client/seat.h> | ||
35 | #include <KWayland/Client/surface.h> | 34 | #include <KWayland/Client/surface.h> | ||
Show All 27 Lines | |||||
63 | 62 | | |||
64 | void SceneQPainterTest::cleanup() | 63 | void SceneQPainterTest::cleanup() | ||
65 | { | 64 | { | ||
66 | Test::destroyWaylandConnection(); | 65 | Test::destroyWaylandConnection(); | ||
67 | } | 66 | } | ||
68 | 67 | | |||
69 | void SceneQPainterTest::initTestCase() | 68 | void SceneQPainterTest::initTestCase() | ||
70 | { | 69 | { | ||
71 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
72 | qRegisterMetaType<KWin::AbstractClient*>(); | 70 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
73 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 71 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
74 | QVERIFY(workspaceCreatedSpy.isValid()); | 72 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
75 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 73 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
76 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 74 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
77 | 75 | | |||
78 | // disable all effects - we don't want to have it interact with the rendering | 76 | // disable all effects - we don't want to have it interact with the rendering | ||
79 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | 77 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | ||
▲ Show 20 Lines • Show All 314 Lines • Show Last 20 Lines |