[autotests/integration] Make MoveResizeWindowTest more robust

A few more cases where we need to ensure that the created window is
destroyed before going into next test method.

Interesting observation: the generated window ids are identical.
Possible problem with KWayland::ClientConnection?
icc-effect-5.14.5
Martin Gräßlin 2016-07-01 15:21:37 +02:00
parent ce74d8a5e5
commit 7610ff49a8
1 changed files with 5 additions and 0 deletions

View File

@ -399,6 +399,8 @@ void MoveResizeWindowTest::testPointerMoveEnd()
// but releasing the other button should now end moving
kwinApp()->platform()->pointerButtonReleased(additionalButton, timestamp++);
QVERIFY(!c->isMove());
surface.reset();
QVERIFY(Test::waitForWindowDestroyed(c));
}
void MoveResizeWindowTest::testPlasmaShellSurfaceMovable_data()
@ -435,6 +437,8 @@ void MoveResizeWindowTest::testPlasmaShellSurfaceMovable()
QTEST(c->isMovable(), "movable");
QTEST(c->isMovableAcrossScreens(), "movableAcrossScreens");
QTEST(c->isResizable(), "resizable");
surface.reset();
QVERIFY(Test::waitForWindowDestroyed(c));
}
void MoveResizeWindowTest::testNetMove()
@ -484,6 +488,7 @@ void MoveResizeWindowTest::testNetMove()
QVERIFY(moveEndSpy.isValid());
QSignalSpy moveStepSpy(client, &Client::clientStepUserMovedResized);
QVERIFY(moveStepSpy.isValid());
QVERIFY(!workspace()->getMovingClient());
// use NETRootInfo to trigger a move request
NETRootInfo root(c.data(), NET::Properties());