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