Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/translucency_test.cpp
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Line(s) | 122 | { | |||
---|---|---|---|---|---|
157 | QVERIFY(windowAddedSpy.wait()); | 157 | QVERIFY(windowAddedSpy.wait()); | ||
158 | QVERIFY(!m_translucencyEffect->isActive()); | 158 | QVERIFY(!m_translucencyEffect->isActive()); | ||
159 | // let's send the window to desktop 2 | 159 | // let's send the window to desktop 2 | ||
160 | effects->setNumberOfDesktops(2); | 160 | effects->setNumberOfDesktops(2); | ||
161 | QCOMPARE(effects->numberOfDesktops(), 2); | 161 | QCOMPARE(effects->numberOfDesktops(), 2); | ||
162 | workspace()->sendClientToDesktop(client, 2, false); | 162 | workspace()->sendClientToDesktop(client, 2, false); | ||
163 | effects->setCurrentDesktop(2); | 163 | effects->setCurrentDesktop(2); | ||
164 | QVERIFY(!m_translucencyEffect->isActive()); | 164 | QVERIFY(!m_translucencyEffect->isActive()); | ||
165 | KWin::Cursor::setPos(client->frameGeometry().center()); | 165 | KWin::Cursors::self()->mouse()->setPos(client->frameGeometry().center()); | ||
166 | workspace()->performWindowOperation(client, Options::MoveOp); | 166 | workspace()->performWindowOperation(client, Options::MoveOp); | ||
167 | QVERIFY(m_translucencyEffect->isActive()); | 167 | QVERIFY(m_translucencyEffect->isActive()); | ||
168 | QTest::qWait(200); | 168 | QTest::qWait(200); | ||
169 | QVERIFY(m_translucencyEffect->isActive()); | 169 | QVERIFY(m_translucencyEffect->isActive()); | ||
170 | // now end move resize | 170 | // now end move resize | ||
171 | client->endMoveResize(); | 171 | client->endMoveResize(); | ||
172 | QVERIFY(m_translucencyEffect->isActive()); | 172 | QVERIFY(m_translucencyEffect->isActive()); | ||
173 | QTest::qWait(500); | 173 | QTest::qWait(500); | ||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |