Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/shell_client_rules_test.cpp
Show First 20 Lines • Show All 224 Lines • ▼ Show 20 Line(s) | |||||
225 | void TestShellClientRules::initTestCase() | 225 | void TestShellClientRules::initTestCase() | ||
226 | { | 226 | { | ||
227 | qRegisterMetaType<KWin::ShellClient *>(); | 227 | qRegisterMetaType<KWin::ShellClient *>(); | ||
228 | qRegisterMetaType<KWin::AbstractClient *>(); | 228 | qRegisterMetaType<KWin::AbstractClient *>(); | ||
229 | 229 | | |||
230 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 230 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
231 | QVERIFY(workspaceCreatedSpy.isValid()); | 231 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
232 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 232 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
233 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | | |||
234 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 233 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
234 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||||
235 | 235 | | |||
236 | kwinApp()->start(); | 236 | kwinApp()->start(); | ||
237 | QVERIFY(workspaceCreatedSpy.wait()); | 237 | QVERIFY(workspaceCreatedSpy.wait()); | ||
238 | QCOMPARE(screens()->count(), 2); | 238 | QCOMPARE(screens()->count(), 2); | ||
239 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 239 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
240 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 240 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
241 | waylandServer()->initWorkspace(); | 241 | waylandServer()->initWorkspace(); | ||
242 | } | 242 | } | ||
▲ Show 20 Lines • Show All 4303 Lines • Show Last 20 Lines |