Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/kwinbindings_test.cpp
Show All 16 Lines | |||||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "kwin_wayland_test.h" | 20 | #include "kwin_wayland_test.h" | ||
21 | #include "cursor.h" | 21 | #include "cursor.h" | ||
22 | #include "input.h" | 22 | #include "input.h" | ||
23 | #include "platform.h" | 23 | #include "platform.h" | ||
24 | #include "screens.h" | 24 | #include "screens.h" | ||
25 | #include "shell_client.h" | 25 | #include "xdgshellclient.h" | ||
26 | #include "scripting/scripting.h" | 26 | #include "scripting/scripting.h" | ||
27 | #include "useractions.h" | 27 | #include "useractions.h" | ||
28 | #include "virtualdesktops.h" | 28 | #include "virtualdesktops.h" | ||
29 | #include "wayland_server.h" | 29 | #include "wayland_server.h" | ||
30 | #include "workspace.h" | 30 | #include "workspace.h" | ||
31 | 31 | | |||
32 | #include <KWayland/Client/surface.h> | 32 | #include <KWayland/Client/surface.h> | ||
33 | 33 | | |||
Show All 18 Lines | 46 | private Q_SLOTS: | |||
52 | void testSwitchWindowScript(); | 52 | void testSwitchWindowScript(); | ||
53 | void testWindowToDesktop_data(); | 53 | void testWindowToDesktop_data(); | ||
54 | void testWindowToDesktop(); | 54 | void testWindowToDesktop(); | ||
55 | }; | 55 | }; | ||
56 | 56 | | |||
57 | 57 | | |||
58 | void KWinBindingsTest::initTestCase() | 58 | void KWinBindingsTest::initTestCase() | ||
59 | { | 59 | { | ||
60 | qRegisterMetaType<KWin::ShellClient*>(); | 60 | qRegisterMetaType<KWin::XdgShellClient *>(); | ||
61 | qRegisterMetaType<KWin::AbstractClient*>(); | 61 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
62 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 62 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
63 | QVERIFY(workspaceCreatedSpy.isValid()); | 63 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
64 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 64 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
65 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 65 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
66 | 66 | | |||
67 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | 67 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | ||
68 | 68 | | |||
▲ Show 20 Lines • Show All 198 Lines • Show Last 20 Lines |