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