Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/internal_window.cpp
Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Line(s) | |||||
184 | 184 | | |||
185 | void InternalWindowTest::initTestCase() | 185 | void InternalWindowTest::initTestCase() | ||
186 | { | 186 | { | ||
187 | qRegisterMetaType<KWin::ShellClient*>(); | 187 | qRegisterMetaType<KWin::ShellClient*>(); | ||
188 | qRegisterMetaType<KWin::AbstractClient*>(); | 188 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
189 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 189 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
190 | QVERIFY(workspaceCreatedSpy.isValid()); | 190 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
191 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 191 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
192 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | | |||
193 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 192 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
193 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||||
194 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | 194 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | ||
195 | 195 | | |||
196 | kwinApp()->start(); | 196 | kwinApp()->start(); | ||
197 | QVERIFY(workspaceCreatedSpy.wait()); | 197 | QVERIFY(workspaceCreatedSpy.wait()); | ||
198 | QCOMPARE(screens()->count(), 2); | 198 | QCOMPARE(screens()->count(), 2); | ||
199 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 199 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
200 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 200 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
201 | waylandServer()->initWorkspace(); | 201 | waylandServer()->initWorkspace(); | ||
▲ Show 20 Lines • Show All 607 Lines • Show Last 20 Lines |