Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/placement.cpp
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | |||||
85 | 85 | | |||
86 | void TestPlacement::initTestCase() | 86 | void TestPlacement::initTestCase() | ||
87 | { | 87 | { | ||
88 | qRegisterMetaType<KWin::ShellClient*>(); | 88 | qRegisterMetaType<KWin::ShellClient*>(); | ||
89 | qRegisterMetaType<KWin::AbstractClient*>(); | 89 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
90 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 90 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
91 | QVERIFY(workspaceCreatedSpy.isValid()); | 91 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
92 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 92 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
93 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | | |||
94 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 93 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
94 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||||
95 | 95 | | |||
96 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | 96 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | ||
97 | 97 | | |||
98 | kwinApp()->start(); | 98 | kwinApp()->start(); | ||
99 | QVERIFY(workspaceCreatedSpy.wait()); | 99 | QVERIFY(workspaceCreatedSpy.wait()); | ||
100 | QCOMPARE(screens()->count(), 2); | 100 | QCOMPARE(screens()->count(), 2); | ||
101 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 101 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
102 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 102 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |