Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/screen_changes_test.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 46 | { | |||
---|---|---|---|---|---|
52 | kwinApp()->start(); | 52 | kwinApp()->start(); | ||
53 | QVERIFY(workspaceCreatedSpy.wait()); | 53 | QVERIFY(workspaceCreatedSpy.wait()); | ||
54 | setenv("QT_QPA_PLATFORM", "wayland", true); | 54 | setenv("QT_QPA_PLATFORM", "wayland", true); | ||
55 | waylandServer()->initWorkspace(); | 55 | waylandServer()->initWorkspace(); | ||
56 | } | 56 | } | ||
57 | 57 | | |||
58 | void ScreenChangesTest::init() | 58 | void ScreenChangesTest::init() | ||
59 | { | 59 | { | ||
60 | QVERIFY(Test::setupWaylandConnection(s_socketName)); | 60 | QVERIFY(Test::setupWaylandConnection()); | ||
61 | 61 | | |||
62 | screens()->setCurrent(0); | 62 | screens()->setCurrent(0); | ||
63 | KWin::Cursor::setPos(QPoint(640, 512)); | 63 | KWin::Cursor::setPos(QPoint(640, 512)); | ||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | void ScreenChangesTest::cleanup() | 66 | void ScreenChangesTest::cleanup() | ||
67 | { | 67 | { | ||
68 | Test::destroyWaylandConnection(); | 68 | Test::destroyWaylandConnection(); | ||
▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines |