Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/dont_crash_cancel_animation.cpp
Show All 20 Lines | |||||
21 | #include "platform.h" | 21 | #include "platform.h" | ||
22 | #include "abstract_client.h" | 22 | #include "abstract_client.h" | ||
23 | #include "x11client.h" | 23 | #include "x11client.h" | ||
24 | #include "composite.h" | 24 | #include "composite.h" | ||
25 | #include "deleted.h" | 25 | #include "deleted.h" | ||
26 | #include "effects.h" | 26 | #include "effects.h" | ||
27 | #include "effectloader.h" | 27 | #include "effectloader.h" | ||
28 | #include "screens.h" | 28 | #include "screens.h" | ||
29 | #include "xdgshellclient.h" | | |||
30 | #include "wayland_server.h" | 29 | #include "wayland_server.h" | ||
31 | #include "workspace.h" | 30 | #include "workspace.h" | ||
32 | #include "scripting/scriptedeffect.h" | 31 | #include "scripting/scriptedeffect.h" | ||
33 | 32 | | |||
34 | #include <KDecoration2/Decoration> | 33 | #include <KDecoration2/Decoration> | ||
35 | 34 | | |||
36 | #include <KWayland/Client/connection_thread.h> | 35 | #include <KWayland/Client/connection_thread.h> | ||
37 | #include <KWayland/Client/compositor.h> | 36 | #include <KWayland/Client/compositor.h> | ||
Show All 13 Lines | 48 | private Q_SLOTS: | |||
51 | void init(); | 50 | void init(); | ||
52 | void cleanup(); | 51 | void cleanup(); | ||
53 | void testScript(); | 52 | void testScript(); | ||
54 | }; | 53 | }; | ||
55 | 54 | | |||
56 | void DontCrashCancelAnimationFromAnimationEndedTest::initTestCase() | 55 | void DontCrashCancelAnimationFromAnimationEndedTest::initTestCase() | ||
57 | { | 56 | { | ||
58 | qRegisterMetaType<KWin::Deleted*>(); | 57 | qRegisterMetaType<KWin::Deleted*>(); | ||
59 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
60 | qRegisterMetaType<KWin::AbstractClient*>(); | 58 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
61 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 59 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
62 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 60 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
63 | kwinApp()->start(); | 61 | kwinApp()->start(); | ||
64 | QVERIFY(Compositor::self()); | 62 | QVERIFY(Compositor::self()); | ||
65 | QSignalSpy compositorToggledSpy(Compositor::self(), &Compositor::compositingToggled); | 63 | QSignalSpy compositorToggledSpy(Compositor::self(), &Compositor::compositingToggled); | ||
66 | QVERIFY(compositorToggledSpy.isValid()); | 64 | QVERIFY(compositorToggledSpy.isValid()); | ||
67 | QVERIFY(compositorToggledSpy.wait()); | 65 | QVERIFY(compositorToggledSpy.wait()); | ||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |