Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 37fbb49b authored by David Edmundson's avatar David Edmundson

[wayland] Fix maximised test

The existing test after the client was maximised sent a buffer with the
same size. Naturally correctly didn't generate a geometry change.
parent 1a2c90ea
......@@ -122,8 +122,9 @@ void TestMaximized::testMaximizedPassedToDeco()
Test::render(, QSize(100, 50), Qt::red);
QCOMPARE(sizeChangedSpy.first().first().toSize(), QSize(1280, 1024 - decoration->borderTop()));
Test::render(, sizeChangedSpy.first().first().toSize(), Qt::red);
QCOMPARE(geometryShapeChangedSpy.count(), 2);
QCOMPARE(client->maximizeMode(), MaximizeMode::MaximizeFull);
......@@ -135,9 +136,6 @@ void TestMaximized::testMaximizedPassedToDeco()
QCOMPARE(decoration->borderRight(), 0);
QVERIFY(decoration->borderTop() != 0);
QCOMPARE(sizeChangedSpy.count(), 1);
QCOMPARE(sizeChangedSpy.first().first().toSize(), QSize(1280, 1024 - decoration->borderTop()));
// now unmaximize again
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment