Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/shell_client_test.cpp
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | |||||
97 | { | 97 | { | ||
98 | qRegisterMetaType<KWin::ShellClient*>(); | 98 | qRegisterMetaType<KWin::ShellClient*>(); | ||
99 | qRegisterMetaType<KWin::AbstractClient*>(); | 99 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
100 | qRegisterMetaType<KWayland::Client::Output*>(); | 100 | qRegisterMetaType<KWayland::Client::Output*>(); | ||
101 | 101 | | |||
102 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 102 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
103 | QVERIFY(workspaceCreatedSpy.isValid()); | 103 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
104 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 104 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
105 | QMetaObject::invokeMethod(kwinApp()->platform(), "setOutputCount", Qt::DirectConnection, Q_ARG(int, 2)); | 105 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
106 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 106 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
107 | 107 | | |||
108 | kwinApp()->start(); | 108 | kwinApp()->start(); | ||
109 | QVERIFY(workspaceCreatedSpy.wait()); | 109 | QVERIFY(workspaceCreatedSpy.wait()); | ||
110 | QCOMPARE(screens()->count(), 2); | 110 | QCOMPARE(screens()->count(), 2); | ||
111 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 111 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
112 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 112 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
113 | waylandServer()->initWorkspace(); | 113 | waylandServer()->initWorkspace(); | ||
▲ Show 20 Lines • Show All 907 Lines • Show Last 20 Lines |