Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/wobbly_shade_test.cpp
Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Line(s) | 114 | { | |||
---|---|---|---|---|---|
155 | // now shade the window | 155 | // now shade the window | ||
156 | workspace()->slotWindowShade(); | 156 | workspace()->slotWindowShade(); | ||
157 | QVERIFY(client->isShade()); | 157 | QVERIFY(client->isShade()); | ||
158 | 158 | | |||
159 | QSignalSpy windowStartUserMovedResizedSpy(e, &EffectsHandler::windowStartUserMovedResized); | 159 | QSignalSpy windowStartUserMovedResizedSpy(e, &EffectsHandler::windowStartUserMovedResized); | ||
160 | QVERIFY(windowStartUserMovedResizedSpy.isValid()); | 160 | QVERIFY(windowStartUserMovedResizedSpy.isValid()); | ||
161 | 161 | | |||
162 | // begin move | 162 | // begin move | ||
163 | QVERIFY(workspace()->getMovingClient() == nullptr); | 163 | QVERIFY(workspace()->moveResizeClient() == nullptr); | ||
164 | QCOMPARE(client->isMove(), false); | 164 | QCOMPARE(client->isMove(), false); | ||
165 | workspace()->slotWindowMove(); | 165 | workspace()->slotWindowMove(); | ||
166 | QCOMPARE(workspace()->getMovingClient(), client); | 166 | QCOMPARE(workspace()->moveResizeClient(), client); | ||
167 | QCOMPARE(client->isMove(), true); | 167 | QCOMPARE(client->isMove(), true); | ||
168 | QCOMPARE(windowStartUserMovedResizedSpy.count(), 1); | 168 | QCOMPARE(windowStartUserMovedResizedSpy.count(), 1); | ||
169 | 169 | | |||
170 | // wait for frame rendered | 170 | // wait for frame rendered | ||
171 | QTest::qWait(100); | 171 | QTest::qWait(100); | ||
172 | 172 | | |||
173 | // send some key events, not going through input redirection | 173 | // send some key events, not going through input redirection | ||
174 | client->keyPressEvent(Qt::Key_Right); | 174 | client->keyPressEvent(Qt::Key_Right); | ||
Show All 26 Lines |