Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/dont_crash_no_border.cpp
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | 57 | { | |||
---|---|---|---|---|---|
79 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 79 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
80 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 80 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
81 | setenv("QT_QPA_PLATFORM", "wayland", true); | 81 | setenv("QT_QPA_PLATFORM", "wayland", true); | ||
82 | waylandServer()->initWorkspace(); | 82 | waylandServer()->initWorkspace(); | ||
83 | } | 83 | } | ||
84 | 84 | | |||
85 | void DontCrashNoBorder::init() | 85 | void DontCrashNoBorder::init() | ||
86 | { | 86 | { | ||
87 | QVERIFY(Test::setupWaylandConnection(s_socketName, Test::AdditionalWaylandInterface::Decoration)); | 87 | QVERIFY(Test::setupWaylandConnection(Test::AdditionalWaylandInterface::Decoration)); | ||
88 | 88 | | |||
89 | screens()->setCurrent(0); | 89 | screens()->setCurrent(0); | ||
90 | Cursor::setPos(QPoint(640, 512)); | 90 | Cursor::setPos(QPoint(640, 512)); | ||
91 | } | 91 | } | ||
92 | 92 | | |||
93 | void DontCrashNoBorder::cleanup() | 93 | void DontCrashNoBorder::cleanup() | ||
94 | { | 94 | { | ||
95 | Test::destroyWaylandConnection(); | 95 | Test::destroyWaylandConnection(); | ||
Show All 38 Lines |