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