From 26e185a6e3a0fb0d99832017491abac78337fd09 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sun, 31 Oct 2021 21:29:40 +0200 Subject: [PATCH] autotests: Fix QuickTilingTest --- autotests/integration/quick_tiling_test.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/autotests/integration/quick_tiling_test.cpp b/autotests/integration/quick_tiling_test.cpp index ccec5c9d7b..6fa7d0235c 100644 --- a/autotests/integration/quick_tiling_test.cpp +++ b/autotests/integration/quick_tiling_test.cpp @@ -262,7 +262,7 @@ void QuickTilingTest::testQuickMaximizing() QCOMPARE(c->frameGeometry(), QRect(0, 0, 100, 50)); // but quick tile mode already changed QCOMPARE(c->quickTileMode(), QuickTileFlag::Maximize); - QCOMPARE(c->geometryRestore(), QRect(0, 0, 100, 50)); + QCOMPARE(c->geometryRestore(), QRect()); // but we got requested a new geometry QVERIFY(surfaceConfigureRequestedSpy.wait()); @@ -276,7 +276,7 @@ void QuickTilingTest::testQuickMaximizing() QVERIFY(frameGeometryChangedSpy.wait()); QCOMPARE(frameGeometryChangedSpy.count(), 1); QCOMPARE(c->frameGeometry(), QRect(0, 0, 1280, 1024)); - QCOMPARE(c->geometryRestore(), QRect(0, 0, 100, 50)); + QCOMPARE(c->geometryRestore(), QRect()); // client is now set to maximised QCOMPARE(maximizeChangedSpy1.count(), 1); @@ -295,11 +295,11 @@ void QuickTilingTest::testQuickMaximizing() QCOMPARE(quickTileChangedSpy.count(), 2); // geometry not yet changed QCOMPARE(c->frameGeometry(), QRect(0, 0, 1280, 1024)); - QCOMPARE(c->geometryRestore(), QRect(0, 0, 100, 50)); + QCOMPARE(c->geometryRestore(), QRect()); // we got requested a new geometry QVERIFY(surfaceConfigureRequestedSpy.wait()); QCOMPARE(surfaceConfigureRequestedSpy.count(), 3); - QCOMPARE(toplevelConfigureRequestedSpy.last().at(0).toSize(), QSize(100, 50)); + QCOMPARE(toplevelConfigureRequestedSpy.last().at(0).toSize(), QSize(0, 0)); // render again shellSurface->xdgSurface()->ack_configure(surfaceConfigureRequestedSpy.last().at(0).value()); @@ -308,7 +308,7 @@ void QuickTilingTest::testQuickMaximizing() QVERIFY(frameGeometryChangedSpy.wait()); QCOMPARE(frameGeometryChangedSpy.count(), 2); QCOMPARE(c->frameGeometry(), QRect(0, 0, 100, 50)); - QCOMPARE(c->geometryRestore(), QRect(0, 0, 100, 50)); + QCOMPARE(c->geometryRestore(), QRect()); QCOMPARE(maximizeChangedSpy1.count(), 2); QCOMPARE(maximizeChangedSpy1.last().first().value(), c); QCOMPARE(maximizeChangedSpy1.last().last().value(), MaximizeRestore);