Fix unit test

Last commit removed a setGeometry call that I thought was only used to clear an edge (which we don't want) but was in fact crucial to the next test.

REVIEW: 125635
This commit is contained in:
David Edmundson 2015-10-14 13:44:37 +01:00
parent 66e27b69bb
commit 0e1e85d81c

View file

@ -758,6 +758,10 @@ void TestScreenEdges::testClientEdge()
QCOMPARE(edge.data(), s->findChildren<Edge*>().last());
QCOMPARE(edge->isReserved(), true);
//remove old reserves and resize to be in the middle of the screen
s->reserve(&client, KWin::ElectricNone);
client.setGeometry(QRect(2, 2, 20, 20));
// for none of the edges it should be able to be set
for (int i = 0; i < ELECTRIC_COUNT; ++i) {
client.setHiddenInternal(true);