Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/activities_test.cpp
Show All 21 Lines | |||||
22 | #include "activities.h" | 22 | #include "activities.h" | ||
23 | #include "x11client.h" | 23 | #include "x11client.h" | ||
24 | #include "cursor.h" | 24 | #include "cursor.h" | ||
25 | #include "deleted.h" | 25 | #include "deleted.h" | ||
26 | #include "screenedge.h" | 26 | #include "screenedge.h" | ||
27 | #include "screens.h" | 27 | #include "screens.h" | ||
28 | #include "wayland_server.h" | 28 | #include "wayland_server.h" | ||
29 | #include "workspace.h" | 29 | #include "workspace.h" | ||
30 | #include "xdgshellclient.h" | | |||
31 | #include "xcbutils.h" | 30 | #include "xcbutils.h" | ||
32 | #include <kwineffects.h> | 31 | #include <kwineffects.h> | ||
33 | 32 | | |||
34 | #include <QDBusConnection> | 33 | #include <QDBusConnection> | ||
35 | #include <QDBusMessage> | 34 | #include <QDBusMessage> | ||
36 | #include <QDBusPendingCall> | 35 | #include <QDBusPendingCall> | ||
37 | 36 | | |||
38 | #include <netwm.h> | 37 | #include <netwm.h> | ||
Show All 14 Lines | 48 | private Q_SLOTS: | |||
53 | void cleanup(); | 52 | void cleanup(); | ||
54 | void testSetOnActivitiesValidates(); | 53 | void testSetOnActivitiesValidates(); | ||
55 | 54 | | |||
56 | private: | 55 | private: | ||
57 | }; | 56 | }; | ||
58 | 57 | | |||
59 | void ActivitiesTest::initTestCase() | 58 | void ActivitiesTest::initTestCase() | ||
60 | { | 59 | { | ||
61 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
62 | qRegisterMetaType<KWin::AbstractClient*>(); | 60 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
63 | qRegisterMetaType<KWin::Deleted*>(); | 61 | qRegisterMetaType<KWin::Deleted*>(); | ||
64 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 62 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
65 | QVERIFY(workspaceCreatedSpy.isValid()); | 63 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
66 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 64 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
67 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 65 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
68 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | 66 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
69 | 67 | | |||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |