From b1efdbaaf1bcf88530f71522630fd2da44820f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Thu, 20 Jul 2017 21:52:17 +0200 Subject: [PATCH] [autotest] Test opposite direction in switchWindow --- autotests/integration/kwinbindings_test.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/autotests/integration/kwinbindings_test.cpp b/autotests/integration/kwinbindings_test.cpp index a867eac995..80c96cf0d6 100644 --- a/autotests/integration/kwinbindings_test.cpp +++ b/autotests/integration/kwinbindings_test.cpp @@ -128,6 +128,15 @@ void KWinBindingsTest::testSwitchWindow() QTRY_COMPARE(workspace()->activeClient(), c3); invokeShortcut(QStringLiteral("Switch Window Left")); QTRY_COMPARE(workspace()->activeClient(), c4); + // test opposite direction + invokeShortcut(QStringLiteral("Switch Window Left")); + QTRY_COMPARE(workspace()->activeClient(), c3); + invokeShortcut(QStringLiteral("Switch Window Down")); + QTRY_COMPARE(workspace()->activeClient(), c2); + invokeShortcut(QStringLiteral("Switch Window Right")); + QTRY_COMPARE(workspace()->activeClient(), c1); + invokeShortcut(QStringLiteral("Switch Window Up")); + QTRY_COMPARE(workspace()->activeClient(), c4); } void KWinBindingsTest::testSwitchWindowScript()