Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/maximize_test.cpp
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 58 | { | |||
---|---|---|---|---|---|
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 | } | ||
76 | 76 | | |||
77 | void TestMaximized::init() | 77 | void TestMaximized::init() | ||
78 | { | 78 | { | ||
79 | QVERIFY(Test::setupWaylandConnection(s_socketName, Test::AdditionalWaylandInterface::Decoration)); | 79 | QVERIFY(Test::setupWaylandConnection(Test::AdditionalWaylandInterface::Decoration)); | ||
80 | 80 | | |||
81 | screens()->setCurrent(0); | 81 | screens()->setCurrent(0); | ||
82 | KWin::Cursor::setPos(QPoint(1280, 512)); | 82 | KWin::Cursor::setPos(QPoint(1280, 512)); | ||
83 | } | 83 | } | ||
84 | 84 | | |||
85 | void TestMaximized::cleanup() | 85 | void TestMaximized::cleanup() | ||
86 | { | 86 | { | ||
87 | Test::destroyWaylandConnection(); | 87 | Test::destroyWaylandConnection(); | ||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |