Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/transient_placement.cpp
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | |||||
67 | 67 | | |||
68 | void TransientPlacementTest::initTestCase() | 68 | void TransientPlacementTest::initTestCase() | ||
69 | { | 69 | { | ||
70 | qRegisterMetaType<KWin::ShellClient*>(); | 70 | qRegisterMetaType<KWin::ShellClient*>(); | ||
71 | qRegisterMetaType<KWin::AbstractClient*>(); | 71 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
72 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 72 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
73 | QVERIFY(workspaceCreatedSpy.isValid()); | 73 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
74 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 74 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
75 | QMetaObject::invokeMethod(kwinApp()->platform(), "setOutputCount", Qt::DirectConnection, Q_ARG(int, 2)); | 75 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
76 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 76 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
77 | 77 | | |||
78 | kwinApp()->start(); | 78 | kwinApp()->start(); | ||
79 | QVERIFY(workspaceCreatedSpy.wait()); | 79 | QVERIFY(workspaceCreatedSpy.wait()); | ||
80 | QCOMPARE(screens()->count(), 2); | 80 | QCOMPARE(screens()->count(), 2); | ||
81 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 81 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
82 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 82 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
83 | setenv("QT_QPA_PLATFORM", "wayland", true); | 83 | setenv("QT_QPA_PLATFORM", "wayland", true); | ||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |