Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/touch_input_test.cpp
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | |||||
58 | 58 | | |||
59 | void TouchInputTest::initTestCase() | 59 | void TouchInputTest::initTestCase() | ||
60 | { | 60 | { | ||
61 | qRegisterMetaType<KWin::ShellClient*>(); | 61 | qRegisterMetaType<KWin::ShellClient*>(); | ||
62 | qRegisterMetaType<KWin::AbstractClient*>(); | 62 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
63 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 63 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
64 | QVERIFY(workspaceCreatedSpy.isValid()); | 64 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
65 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 65 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
66 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | | |||
67 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 66 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
67 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||||
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)); | ||
73 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 73 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
74 | waylandServer()->initWorkspace(); | 74 | waylandServer()->initWorkspace(); | ||
75 | } | 75 | } | ||
▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines |