Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/shell_client_test.cpp
Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Line(s) | 127 | { | |||
---|---|---|---|---|---|
128 | qRegisterMetaType<KWin::Deleted*>(); | 128 | qRegisterMetaType<KWin::Deleted*>(); | ||
129 | qRegisterMetaType<KWin::ShellClient*>(); | 129 | qRegisterMetaType<KWin::ShellClient*>(); | ||
130 | qRegisterMetaType<KWin::AbstractClient*>(); | 130 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
131 | qRegisterMetaType<KWayland::Client::Output*>(); | 131 | qRegisterMetaType<KWayland::Client::Output*>(); | ||
132 | 132 | | |||
133 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 133 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
134 | QVERIFY(workspaceCreatedSpy.isValid()); | 134 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
135 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 135 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
136 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | | |||
137 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 136 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
137 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||||
138 | 138 | | |||
139 | kwinApp()->start(); | 139 | kwinApp()->start(); | ||
140 | QVERIFY(workspaceCreatedSpy.wait()); | 140 | QVERIFY(workspaceCreatedSpy.wait()); | ||
141 | QCOMPARE(screens()->count(), 2); | 141 | QCOMPARE(screens()->count(), 2); | ||
142 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 142 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
143 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 143 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
144 | waylandServer()->initWorkspace(); | 144 | waylandServer()->initWorkspace(); | ||
145 | } | 145 | } | ||
▲ Show 20 Lines • Show All 1383 Lines • Show Last 20 Lines |