Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/xclipboardsync_test.cpp
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
50 | void XClipboardSyncTest::initTestCase() | 50 | void XClipboardSyncTest::initTestCase() | ||
51 | { | 51 | { | ||
52 | qRegisterMetaType<KWin::ShellClient*>(); | 52 | qRegisterMetaType<KWin::ShellClient*>(); | ||
53 | qRegisterMetaType<KWin::AbstractClient*>(); | 53 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
54 | qRegisterMetaType<QProcess::ExitStatus>(); | 54 | qRegisterMetaType<QProcess::ExitStatus>(); | ||
55 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 55 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
56 | QVERIFY(workspaceCreatedSpy.isValid()); | 56 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
57 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 57 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
58 | QMetaObject::invokeMethod(kwinApp()->platform(), "setOutputCount", Qt::DirectConnection, Q_ARG(int, 2)); | 58 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
59 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 59 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
60 | 60 | | |||
61 | kwinApp()->start(); | 61 | kwinApp()->start(); | ||
62 | QVERIFY(workspaceCreatedSpy.wait()); | 62 | QVERIFY(workspaceCreatedSpy.wait()); | ||
63 | QCOMPARE(screens()->count(), 2); | 63 | QCOMPARE(screens()->count(), 2); | ||
64 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 64 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
65 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 65 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
66 | waylandServer()->initWorkspace(); | 66 | waylandServer()->initWorkspace(); | ||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |