Remove KAction related tests from virtual desktops tests
No more KAction in virtual desktops. This makes the test work again though the global shortcuts are not tested any more.icc-effect-5.14.5
parent
687e264387
commit
e336a8f434
|
@ -29,7 +29,6 @@ set( testVirtualDesktops_SRCS
|
|||
kde4_add_unit_test( testVirtualDesktops TESTNAME kwin-TestVirtualDesktops ${testVirtualDesktops_SRCS} )
|
||||
|
||||
target_link_libraries( testVirtualDesktops
|
||||
${KDE4Support_LIBRARIES}
|
||||
Qt5::Test
|
||||
Qt5::Widgets
|
||||
KF5::KI18n
|
||||
|
|
|
@ -19,10 +19,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*********************************************************************/
|
||||
#include "../virtualdesktops.h"
|
||||
// KDE
|
||||
#include <KDE/KAction>
|
||||
#include <KDE/KActionCollection>
|
||||
#include <KDE/KConfigGroup>
|
||||
|
||||
#include <QAction>
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
namespace KWin {
|
||||
|
@ -278,7 +278,6 @@ void TestVirtualDesktops::testDirection(const QString &actionName)
|
|||
vds->initShortcuts(keys.data());
|
||||
QAction *action = keys->action(actionName);
|
||||
QVERIFY(action);
|
||||
QVERIFY(static_cast<KAction*>(action)->isGlobalShortcutEnabled());
|
||||
action->trigger();
|
||||
QCOMPARE(vds->current(), result);
|
||||
QCOMPARE(functor(initCurrent, wrap), result);
|
||||
|
@ -563,7 +562,6 @@ void TestVirtualDesktops::switchToShortcuts()
|
|||
const QString desktop(toDesktop.arg(i));
|
||||
QAction *action = keys->action(desktop);
|
||||
QVERIFY2(action, desktop.toUtf8().constData());
|
||||
QVERIFY(static_cast<KAction*>(action)->isGlobalShortcutEnabled());
|
||||
action->trigger();
|
||||
QCOMPARE(vds->current(), i);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue