Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community 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()
QVERIFY(geometryShapeChangedSpy.isValid());
workspace()->slotWindowMaximize();
Test::render(surface.data(), QSize(100, 50), Qt::red);
QVERIFY(sizeChangedSpy.wait());
QCOMPARE(sizeChangedSpy.first().first().toSize(), QSize(1280, 1024 - decoration->borderTop()));
Test::render(surface.data(), sizeChangedSpy.first().first().toSize(), Qt::red);
QVERIFY(geometryShapeChangedSpy.wait());
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
workspace()->slotWindowMaximize();
......
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