autotests: Make testTranslucency less flaky
There's a race condition between the window becoming ready for painting and testing the translucency animation.
This commit is contained in:
parent
51d01a6616
commit
d2df8ea9aa
1 changed files with 3 additions and 0 deletions
|
@ -130,6 +130,9 @@ void TranslucencyTest::testMoveAfterDesktopChange()
|
|||
QCOMPARE(window->window(), windowId);
|
||||
QVERIFY(window->isDecorated());
|
||||
|
||||
QMetaObject::invokeMethod(window, "setReadyForPainting");
|
||||
QVERIFY(window->readyForPainting());
|
||||
|
||||
QCOMPARE(windowAddedSpy.count(), 1);
|
||||
QVERIFY(!m_translucencyEffect->isActive());
|
||||
// let's send the window to desktop 2
|
||||
|
|
Loading…
Reference in a new issue