Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/screenedge_client_show_test.cpp
Show All 20 Lines | |||||
21 | #include "platform.h" | 21 | #include "platform.h" | ||
22 | #include "client.h" | 22 | #include "client.h" | ||
23 | #include "cursor.h" | 23 | #include "cursor.h" | ||
24 | #include "deleted.h" | 24 | #include "deleted.h" | ||
25 | #include "screenedge.h" | 25 | #include "screenedge.h" | ||
26 | #include "screens.h" | 26 | #include "screens.h" | ||
27 | #include "wayland_server.h" | 27 | #include "wayland_server.h" | ||
28 | #include "workspace.h" | 28 | #include "workspace.h" | ||
29 | #include "shell_client.h" | 29 | #include "xdgshellclient.h" | ||
30 | #include <kwineffects.h> | 30 | #include <kwineffects.h> | ||
31 | 31 | | |||
32 | #include <netwm.h> | 32 | #include <netwm.h> | ||
33 | #include <xcb/xcb_icccm.h> | 33 | #include <xcb/xcb_icccm.h> | ||
34 | 34 | | |||
35 | namespace KWin | 35 | namespace KWin | ||
36 | { | 36 | { | ||
37 | 37 | | |||
38 | static const QString s_socketName = QStringLiteral("wayland_test_kwin_screenedge_client_show-0"); | 38 | static const QString s_socketName = QStringLiteral("wayland_test_kwin_screenedge_client_show-0"); | ||
39 | 39 | | |||
40 | class ScreenEdgeClientShowTest : public QObject | 40 | class ScreenEdgeClientShowTest : public QObject | ||
41 | { | 41 | { | ||
42 | Q_OBJECT | 42 | Q_OBJECT | ||
43 | private Q_SLOTS: | 43 | private Q_SLOTS: | ||
44 | void initTestCase(); | 44 | void initTestCase(); | ||
45 | void init(); | 45 | void init(); | ||
46 | void testScreenEdgeShowHideX11_data(); | 46 | void testScreenEdgeShowHideX11_data(); | ||
47 | void testScreenEdgeShowHideX11(); | 47 | void testScreenEdgeShowHideX11(); | ||
48 | void testScreenEdgeShowX11Touch_data(); | 48 | void testScreenEdgeShowX11Touch_data(); | ||
49 | void testScreenEdgeShowX11Touch(); | 49 | void testScreenEdgeShowX11Touch(); | ||
50 | }; | 50 | }; | ||
51 | 51 | | |||
52 | void ScreenEdgeClientShowTest::initTestCase() | 52 | void ScreenEdgeClientShowTest::initTestCase() | ||
53 | { | 53 | { | ||
54 | qRegisterMetaType<KWin::ShellClient*>(); | 54 | qRegisterMetaType<KWin::XdgShellClient *>(); | ||
55 | qRegisterMetaType<KWin::AbstractClient*>(); | 55 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
56 | qRegisterMetaType<KWin::Deleted*>(); | 56 | qRegisterMetaType<KWin::Deleted*>(); | ||
57 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 57 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
58 | QVERIFY(workspaceCreatedSpy.isValid()); | 58 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
59 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 59 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
60 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 60 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
61 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | 61 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
62 | 62 | | |||
▲ Show 20 Lines • Show All 234 Lines • Show Last 20 Lines |