Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/xwayland_input_test.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | |||||
52 | void XWaylandInputTest::initTestCase() | 52 | void XWaylandInputTest::initTestCase() | ||
53 | { | 53 | { | ||
54 | qRegisterMetaType<KWin::ShellClient*>(); | 54 | qRegisterMetaType<KWin::ShellClient*>(); | ||
55 | qRegisterMetaType<KWin::AbstractClient*>(); | 55 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
56 | qRegisterMetaType<KWin::Deleted*>(); | 56 | qRegisterMetaType<KWin::Deleted*>(); | ||
57 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 57 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
58 | QVERIFY(workspaceCreatedSpy.isValid()); | 58 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
59 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 59 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
60 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | | |||
61 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 60 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
61 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||||
62 | 62 | | |||
63 | kwinApp()->start(); | 63 | kwinApp()->start(); | ||
64 | QVERIFY(workspaceCreatedSpy.wait()); | 64 | QVERIFY(workspaceCreatedSpy.wait()); | ||
65 | QCOMPARE(screens()->count(), 2); | 65 | QCOMPARE(screens()->count(), 2); | ||
66 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 66 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
67 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 67 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
68 | setenv("QT_QPA_PLATFORM", "wayland", true); | 68 | setenv("QT_QPA_PLATFORM", "wayland", true); | ||
69 | waylandServer()->initWorkspace(); | 69 | waylandServer()->initWorkspace(); | ||
▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines |