Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/wobbly_shade_test.cpp
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Line(s) | 110 | { | |||
---|---|---|---|---|---|
163 | QCOMPARE(client->isMove(), true); | 163 | QCOMPARE(client->isMove(), true); | ||
164 | QCOMPARE(windowStartUserMovedResizedSpy.count(), 1); | 164 | QCOMPARE(windowStartUserMovedResizedSpy.count(), 1); | ||
165 | 165 | | |||
166 | // wait for frame rendered | 166 | // wait for frame rendered | ||
167 | QTest::qWait(100); | 167 | QTest::qWait(100); | ||
168 | 168 | | |||
169 | // send some key events, not going through input redirection | 169 | // send some key events, not going through input redirection | ||
170 | client->keyPressEvent(Qt::Key_Right); | 170 | client->keyPressEvent(Qt::Key_Right); | ||
171 | client->updateMoveResize(KWin::Cursor::pos()); | 171 | client->updateMoveResize(KWin::Cursors::self()->mouse()->pos()); | ||
172 | 172 | | |||
173 | // wait for frame rendered | 173 | // wait for frame rendered | ||
174 | QTest::qWait(100); | 174 | QTest::qWait(100); | ||
175 | 175 | | |||
176 | client->keyPressEvent(Qt::Key_Right); | 176 | client->keyPressEvent(Qt::Key_Right); | ||
177 | client->updateMoveResize(KWin::Cursor::pos()); | 177 | client->updateMoveResize(KWin::Cursors::self()->mouse()->pos()); | ||
178 | 178 | | |||
179 | // wait for frame rendered | 179 | // wait for frame rendered | ||
180 | QTest::qWait(100); | 180 | QTest::qWait(100); | ||
181 | 181 | | |||
182 | client->keyPressEvent(Qt::Key_Down | Qt::ALT); | 182 | client->keyPressEvent(Qt::Key_Down | Qt::ALT); | ||
183 | client->updateMoveResize(KWin::Cursor::pos()); | 183 | client->updateMoveResize(KWin::Cursors::self()->mouse()->pos()); | ||
184 | 184 | | |||
185 | // wait for frame rendered | 185 | // wait for frame rendered | ||
186 | QTest::qWait(100); | 186 | QTest::qWait(100); | ||
187 | 187 | | |||
188 | // let's end | 188 | // let's end | ||
189 | client->keyPressEvent(Qt::Key_Enter); | 189 | client->keyPressEvent(Qt::Key_Enter); | ||
190 | 190 | | |||
191 | // wait for frame rendered | 191 | // wait for frame rendered | ||
192 | QTest::qWait(100); | 192 | QTest::qWait(100); | ||
193 | } | 193 | } | ||
194 | 194 | | |||
195 | WAYLANDTEST_MAIN(WobblyWindowsShadeTest) | 195 | WAYLANDTEST_MAIN(WobblyWindowsShadeTest) | ||
196 | #include "wobbly_shade_test.moc" | 196 | #include "wobbly_shade_test.moc" |