From 67bfad001dfd5e7d63c97138bd7cb8489dd20f26 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 11 Jan 2019 14:18:51 +0000 Subject: [PATCH] [autotests] Update virtual desktop layout after load Summary: This matches the behaviour of workspace.cpp on initial load. Test Plan: Test now passes Reviewers: #kwin, zzag Reviewed By: #kwin, zzag Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D18183 --- autotests/test_screen_edges.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/autotests/test_screen_edges.cpp b/autotests/test_screen_edges.cpp index a89d06b2dc..e07b6eeaf0 100644 --- a/autotests/test_screen_edges.cpp +++ b/autotests/test_screen_edges.cpp @@ -298,6 +298,7 @@ void TestScreenEdges::testCreatingInitialEdges() auto vd = VirtualDesktopManager::self(); vd->setConfig(config); vd->load(); + vd->updateLayout(); QCOMPARE(vd->count(), 4u); QCOMPARE(vd->grid().width(), 2); QCOMPARE(vd->grid().height(), 2);