Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/xwayland_selections_test.cpp
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
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::ShellClient*>(); | 55 | qRegisterMetaType<KWin::ShellClient*>(); | ||
56 | qRegisterMetaType<KWin::AbstractClient*>(); | 56 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
57 | qRegisterMetaType<QProcess::ExitStatus>(); | 57 | qRegisterMetaType<QProcess::ExitStatus>(); | ||
58 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 58 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
59 | QVERIFY(workspaceCreatedSpy.isValid()); | 59 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
60 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 60 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
61 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | | |||
62 | // QSignalSpy clipboardSyncDevicedCreated{waylandServer(), &WaylandServer::xclipboardSyncDataDeviceCreated}; | 61 | // QSignalSpy clipboardSyncDevicedCreated{waylandServer(), &WaylandServer::xclipboardSyncDataDeviceCreated}; | ||
63 | // QVERIFY(clipboardSyncDevicedCreated.isValid()); | 62 | // QVERIFY(clipboardSyncDevicedCreated.isValid()); | ||
64 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 63 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
64 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||||
65 | 65 | | |||
66 | kwinApp()->start(); | 66 | kwinApp()->start(); | ||
67 | QVERIFY(workspaceCreatedSpy.wait()); | 67 | QVERIFY(workspaceCreatedSpy.wait()); | ||
68 | QCOMPARE(screens()->count(), 2); | 68 | QCOMPARE(screens()->count(), 2); | ||
69 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 69 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
70 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 70 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
71 | waylandServer()->initWorkspace(); | 71 | waylandServer()->initWorkspace(); | ||
72 | // // wait till the xclipboard sync data device is created | 72 | // // wait till the xclipboard sync data device is created | ||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |