Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/touch_input_test.cpp
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 57 | { | |||
---|---|---|---|---|---|
69 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 69 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
70 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 70 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
71 | waylandServer()->initWorkspace(); | 71 | waylandServer()->initWorkspace(); | ||
72 | } | 72 | } | ||
73 | 73 | | |||
74 | void TouchInputTest::init() | 74 | void TouchInputTest::init() | ||
75 | { | 75 | { | ||
76 | using namespace KWayland::Client; | 76 | using namespace KWayland::Client; | ||
77 | QVERIFY(Test::setupWaylandConnection(s_socketName, Test::AdditionalWaylandInterface::Seat)); | 77 | QVERIFY(Test::setupWaylandConnection(Test::AdditionalWaylandInterface::Seat)); | ||
78 | QVERIFY(Test::waitForWaylandTouch()); | 78 | QVERIFY(Test::waitForWaylandTouch()); | ||
79 | m_touch = Test::waylandSeat()->createTouch(Test::waylandSeat()); | 79 | m_touch = Test::waylandSeat()->createTouch(Test::waylandSeat()); | ||
80 | QVERIFY(m_touch); | 80 | QVERIFY(m_touch); | ||
81 | QVERIFY(m_touch->isValid()); | 81 | QVERIFY(m_touch->isValid()); | ||
82 | 82 | | |||
83 | screens()->setCurrent(0); | 83 | screens()->setCurrent(0); | ||
84 | Cursor::setPos(QPoint(1280, 512)); | 84 | Cursor::setPos(QPoint(1280, 512)); | ||
85 | } | 85 | } | ||
▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines |