Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/internal_window.cpp
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Line(s) | |||||
170 | 170 | | |||
171 | void InternalWindowTest::initTestCase() | 171 | void InternalWindowTest::initTestCase() | ||
172 | { | 172 | { | ||
173 | qRegisterMetaType<KWin::ShellClient*>(); | 173 | qRegisterMetaType<KWin::ShellClient*>(); | ||
174 | qRegisterMetaType<KWin::AbstractClient*>(); | 174 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
175 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 175 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
176 | QVERIFY(workspaceCreatedSpy.isValid()); | 176 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
177 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 177 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
178 | QMetaObject::invokeMethod(kwinApp()->platform(), "setOutputCount", Qt::DirectConnection, Q_ARG(int, 2)); | 178 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
179 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 179 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
180 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | 180 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | ||
181 | 181 | | |||
182 | kwinApp()->start(); | 182 | kwinApp()->start(); | ||
183 | QVERIFY(workspaceCreatedSpy.wait()); | 183 | QVERIFY(workspaceCreatedSpy.wait()); | ||
184 | QCOMPARE(screens()->count(), 2); | 184 | QCOMPARE(screens()->count(), 2); | ||
185 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 185 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
186 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 186 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
▲ Show 20 Lines • Show All 491 Lines • Show Last 20 Lines |