From 134e42b05c2ab305138a2fbd03f873fab0363f88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 9 Jan 2013 14:22:49 +0100 Subject: [PATCH] Add unit test case for problem fixed in fcf4f610a68 --- tests/test_virtual_desktops.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_virtual_desktops.cpp b/tests/test_virtual_desktops.cpp index 36e79334df..52a93e053e 100644 --- a/tests/test_virtual_desktops.cpp +++ b/tests/test_virtual_desktops.cpp @@ -287,6 +287,7 @@ void TestVirtualDesktops::testDirection(const QString &actionName) vds->initShortcuts(keys.data()); QAction *action = keys->action(actionName); QVERIFY(action); + QVERIFY(static_cast(action)->isGlobalShortcutEnabled()); action->trigger(); QCOMPARE(vds->current(), result); QCOMPARE(functor(initCurrent, wrap), result); @@ -571,6 +572,7 @@ void TestVirtualDesktops::switchToShortcuts() const QString desktop(toDesktop.arg(i)); QAction *action = keys->action(desktop); QVERIFY2(action, desktop.toUtf8().constData()); + QVERIFY(static_cast(action)->isGlobalShortcutEnabled()); action->trigger(); QCOMPARE(vds->current(), i); }