Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/xwayland_selections_test.cpp
Show All 13 Lines | |||||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | 16 | GNU General Public License for more details. | ||
17 | 17 | | |||
18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
20 | *********************************************************************/ | 20 | *********************************************************************/ | ||
21 | #include "kwin_wayland_test.h" | 21 | #include "kwin_wayland_test.h" | ||
22 | #include "abstract_client.h" | ||||
22 | #include "platform.h" | 23 | #include "platform.h" | ||
23 | #include "xdgshellclient.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 <KWayland/Server/datadevice_interface.h> | ||
30 | 30 | | |||
31 | #include <QProcess> | 31 | #include <QProcess> | ||
Show All 15 Lines | |||||
47 | private: | 47 | private: | ||
48 | QProcess *m_copyProcess = nullptr; | 48 | QProcess *m_copyProcess = nullptr; | ||
49 | QProcess *m_pasteProcess = nullptr; | 49 | QProcess *m_pasteProcess = nullptr; | ||
50 | }; | 50 | }; | ||
51 | 51 | | |||
52 | void XwaylandSelectionsTest::initTestCase() | 52 | void XwaylandSelectionsTest::initTestCase() | ||
53 | { | 53 | { | ||
54 | QSKIP("Skipped as it fails for unknown reasons on build.kde.org"); | 54 | QSKIP("Skipped as it fails for unknown reasons on build.kde.org"); | ||
55 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
56 | qRegisterMetaType<KWin::AbstractClient*>(); | 55 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
57 | qRegisterMetaType<QProcess::ExitStatus>(); | 56 | qRegisterMetaType<QProcess::ExitStatus>(); | ||
58 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 57 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
59 | QVERIFY(workspaceCreatedSpy.isValid()); | 58 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
60 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 59 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
61 | // QSignalSpy clipboardSyncDevicedCreated{waylandServer(), &WaylandServer::xclipboardSyncDataDeviceCreated}; | 60 | // QSignalSpy clipboardSyncDevicedCreated{waylandServer(), &WaylandServer::xclipboardSyncDataDeviceCreated}; | ||
62 | // QVERIFY(clipboardSyncDevicedCreated.isValid()); | 61 | // QVERIFY(clipboardSyncDevicedCreated.isValid()); | ||
63 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 62 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |