Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/slidingpopups_test.cpp
Show All 20 Lines | |||||
21 | #include "x11client.h" | 21 | #include "x11client.h" | ||
22 | #include "composite.h" | 22 | #include "composite.h" | ||
23 | #include "deleted.h" | 23 | #include "deleted.h" | ||
24 | #include "effects.h" | 24 | #include "effects.h" | ||
25 | #include "effectloader.h" | 25 | #include "effectloader.h" | ||
26 | #include "cursor.h" | 26 | #include "cursor.h" | ||
27 | #include "platform.h" | 27 | #include "platform.h" | ||
28 | #include "scene.h" | 28 | #include "scene.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 "effect_builtins.h" | 31 | #include "effect_builtins.h" | ||
33 | 32 | | |||
34 | #include <KConfigGroup> | 33 | #include <KConfigGroup> | ||
35 | 34 | | |||
36 | #include <KWayland/Client/connection_thread.h> | 35 | #include <KWayland/Client/connection_thread.h> | ||
37 | #include <KWayland/Client/registry.h> | 36 | #include <KWayland/Client/registry.h> | ||
Show All 18 Lines | 49 | private Q_SLOTS: | |||
56 | void testWithOtherEffect(); | 55 | void testWithOtherEffect(); | ||
57 | void testWithOtherEffectWayland_data(); | 56 | void testWithOtherEffectWayland_data(); | ||
58 | void testWithOtherEffectWayland(); | 57 | void testWithOtherEffectWayland(); | ||
59 | }; | 58 | }; | ||
60 | 59 | | |||
61 | void SlidingPopupsTest::initTestCase() | 60 | void SlidingPopupsTest::initTestCase() | ||
62 | { | 61 | { | ||
63 | qputenv("XDG_DATA_DIRS", QCoreApplication::applicationDirPath().toUtf8()); | 62 | qputenv("XDG_DATA_DIRS", QCoreApplication::applicationDirPath().toUtf8()); | ||
64 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
65 | qRegisterMetaType<KWin::AbstractClient*>(); | 63 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
66 | qRegisterMetaType<KWin::Deleted*>(); | 64 | qRegisterMetaType<KWin::Deleted*>(); | ||
67 | qRegisterMetaType<KWin::Effect*>(); | 65 | qRegisterMetaType<KWin::Effect*>(); | ||
68 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 66 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
69 | QVERIFY(workspaceCreatedSpy.isValid()); | 67 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
70 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 68 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
71 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 69 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
72 | 70 | | |||
▲ Show 20 Lines • Show All 308 Lines • Show Last 20 Lines |