Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/xwayland_selections_test.cpp
Show All 20 Lines | |||||
21 | #include "kwin_wayland_test.h" | 21 | #include "kwin_wayland_test.h" | ||
22 | #include "abstract_client.h" | 22 | #include "abstract_client.h" | ||
23 | #include "platform.h" | 23 | #include "platform.h" | ||
24 | #include "screens.h" | 24 | #include "screens.h" | ||
25 | #include "wayland_server.h" | 25 | #include "wayland_server.h" | ||
26 | #include "workspace.h" | 26 | #include "workspace.h" | ||
27 | #include "../../xwl/databridge.h" | 27 | #include "../../xwl/databridge.h" | ||
28 | 28 | | |||
29 | #include <KWayland/Server/datadevice_interface.h> | 29 | #include <KWaylandServer/datadevice_interface.h> | ||
30 | 30 | | |||
31 | #include <QProcess> | 31 | #include <QProcess> | ||
32 | #include <QProcessEnvironment> | 32 | #include <QProcessEnvironment> | ||
33 | 33 | | |||
34 | using namespace KWin; | 34 | using namespace KWin; | ||
35 | 35 | | |||
36 | static const QString s_socketName = QStringLiteral("wayland_test_kwin_xwayland_selections-0"); | 36 | static const QString s_socketName = QStringLiteral("wayland_test_kwin_xwayland_selections-0"); | ||
37 | 37 | | |||
▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | 106 | { | |||
109 | QVERIFY(!copy.isEmpty()); | 109 | QVERIFY(!copy.isEmpty()); | ||
110 | const QString paste = QFINDTESTDATA(QStringLiteral("paste")); | 110 | const QString paste = QFINDTESTDATA(QStringLiteral("paste")); | ||
111 | QVERIFY(!paste.isEmpty()); | 111 | QVERIFY(!paste.isEmpty()); | ||
112 | 112 | | |||
113 | QSignalSpy clientAddedSpy(workspace(), &Workspace::clientAdded); | 113 | QSignalSpy clientAddedSpy(workspace(), &Workspace::clientAdded); | ||
114 | QVERIFY(clientAddedSpy.isValid()); | 114 | QVERIFY(clientAddedSpy.isValid()); | ||
115 | QSignalSpy shellClientAddedSpy(waylandServer(), &WaylandServer::shellClientAdded); | 115 | QSignalSpy shellClientAddedSpy(waylandServer(), &WaylandServer::shellClientAdded); | ||
116 | QVERIFY(shellClientAddedSpy.isValid()); | 116 | QVERIFY(shellClientAddedSpy.isValid()); | ||
117 | QSignalSpy clipboardChangedSpy(Xwl::DataBridge::self()->dataDeviceIface(), &KWayland::Server::DataDeviceInterface::selectionChanged); | 117 | QSignalSpy clipboardChangedSpy(Xwl::DataBridge::self()->dataDeviceIface(), &KWaylandServer::DataDeviceInterface::selectionChanged); | ||
118 | QVERIFY(clipboardChangedSpy.isValid()); | 118 | QVERIFY(clipboardChangedSpy.isValid()); | ||
119 | 119 | | |||
120 | QProcessEnvironment environment = QProcessEnvironment::systemEnvironment(); | 120 | QProcessEnvironment environment = QProcessEnvironment::systemEnvironment(); | ||
121 | 121 | | |||
122 | // start the copy process | 122 | // start the copy process | ||
123 | QFETCH(QString, copyPlatform); | 123 | QFETCH(QString, copyPlatform); | ||
124 | environment.insert(QStringLiteral("QT_QPA_PLATFORM"), copyPlatform); | 124 | environment.insert(QStringLiteral("QT_QPA_PLATFORM"), copyPlatform); | ||
125 | environment.insert(QStringLiteral("WAYLAND_DISPLAY"), s_socketName); | 125 | environment.insert(QStringLiteral("WAYLAND_DISPLAY"), s_socketName); | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |