Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/maximize_test.cpp
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | |||||
56 | 56 | | |||
57 | void TestMaximized::initTestCase() | 57 | void TestMaximized::initTestCase() | ||
58 | { | 58 | { | ||
59 | qRegisterMetaType<KWin::ShellClient*>(); | 59 | qRegisterMetaType<KWin::ShellClient*>(); | ||
60 | qRegisterMetaType<KWin::AbstractClient*>(); | 60 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
61 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 61 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
62 | QVERIFY(workspaceCreatedSpy.isValid()); | 62 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
63 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 63 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
64 | QMetaObject::invokeMethod(kwinApp()->platform(), "setOutputCount", Qt::DirectConnection, Q_ARG(int, 2)); | 64 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
65 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 65 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
66 | 66 | | |||
67 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | 67 | kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); | ||
68 | 68 | | |||
69 | kwinApp()->start(); | 69 | kwinApp()->start(); | ||
70 | QVERIFY(workspaceCreatedSpy.wait()); | 70 | QVERIFY(workspaceCreatedSpy.wait()); | ||
71 | QCOMPARE(screens()->count(), 2); | 71 | QCOMPARE(screens()->count(), 2); | ||
72 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 72 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines |