From 0a7aa7587002a9c2db1afac1e9e9e53df3e247d8 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Tue, 5 Nov 2019 15:02:59 +0000 Subject: [PATCH] Update tests to include newly added session quit effect --- autotests/test_scripted_effectloader.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autotests/test_scripted_effectloader.cpp b/autotests/test_scripted_effectloader.cpp index cc66c5346e..0508a55d75 100644 --- a/autotests/test_scripted_effectloader.cpp +++ b/autotests/test_scripted_effectloader.cpp @@ -192,6 +192,7 @@ void TestScriptedEffectLoader::testKnownEffects() << QStringLiteral("kwin4_effect_maximize") << QStringLiteral("kwin4_effect_morphingpopups") << QStringLiteral("kwin4_effect_scale") + << QStringLiteral("kwin4_effect_sessionquit") << QStringLiteral("kwin4_effect_squash") << QStringLiteral("kwin4_effect_translucency") << QStringLiteral("kwin4_effect_windowaperture"); @@ -225,9 +226,11 @@ void TestScriptedEffectLoader::testLoadEffect_data() QTest::newRow("Maximize") << QStringLiteral("kwin4_effect_maximize") << true; QTest::newRow("MorphingPopups") << QStringLiteral("kwin4_effect_morphingpopups") << true; QTest::newRow("Scale") << QStringLiteral("kwin4_effect_scale") << true; + QTest::newRow("SessionQuit") << QStringLiteral("kwin4_effect_sessionquit") << true; QTest::newRow("Squash") << QStringLiteral("kwin4_effect_squash") << true; QTest::newRow("Translucency") << QStringLiteral("kwin4_effect_translucency") << true; QTest::newRow("WindowAperture") << QStringLiteral("kwin4_effect_windowaperture") << true; + } void TestScriptedEffectLoader::testLoadEffect() @@ -386,6 +389,8 @@ void TestScriptedEffectLoader::testLoadAllEffects() plugins.writeEntry(kwin4 + QStringLiteral("eyeonscreenEnabled"), false); plugins.writeEntry(kwin4 + QStringLiteral("windowapertureEnabled"), false); plugins.writeEntry(kwin4 + QStringLiteral("morphingpopupsEnabled"), false); + plugins.writeEntry(kwin4 + QStringLiteral("sessionquitEnabled"), false); + plugins.sync(); loader.setConfig(config);