Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/lockscreen.cpp
Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Line(s) | |||||
182 | 182 | | |||
183 | void LockScreenTest::initTestCase() | 183 | void LockScreenTest::initTestCase() | ||
184 | { | 184 | { | ||
185 | qRegisterMetaType<KWin::ShellClient*>(); | 185 | qRegisterMetaType<KWin::ShellClient*>(); | ||
186 | qRegisterMetaType<KWin::AbstractClient*>(); | 186 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
187 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 187 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
188 | QVERIFY(workspaceCreatedSpy.isValid()); | 188 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
189 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 189 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
190 | QMetaObject::invokeMethod(kwinApp()->platform(), "setOutputCount", Qt::DirectConnection, Q_ARG(int, 2)); | 190 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
191 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 191 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
192 | 192 | | |||
193 | kwinApp()->start(); | 193 | kwinApp()->start(); | ||
194 | QVERIFY(workspaceCreatedSpy.wait()); | 194 | QVERIFY(workspaceCreatedSpy.wait()); | ||
195 | QCOMPARE(screens()->count(), 2); | 195 | QCOMPARE(screens()->count(), 2); | ||
196 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 196 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
197 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 197 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
198 | setenv("QT_QPA_PLATFORM", "wayland", true); | 198 | setenv("QT_QPA_PLATFORM", "wayland", true); | ||
▲ Show 20 Lines • Show All 566 Lines • Show Last 20 Lines |