Changeset View
Changeset View
Standalone View
Standalone View
autotests/test_scripted_effectloader.cpp
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 79 | private Q_SLOTS: | |||
---|---|---|---|---|---|
86 | void testLoadScriptedEffect_data(); | 86 | void testLoadScriptedEffect_data(); | ||
87 | void testLoadScriptedEffect(); | 87 | void testLoadScriptedEffect(); | ||
88 | void testLoadAllEffects(); | 88 | void testLoadAllEffects(); | ||
89 | void testCancelLoadAllEffects(); | 89 | void testCancelLoadAllEffects(); | ||
90 | }; | 90 | }; | ||
91 | 91 | | |||
92 | void TestScriptedEffectLoader::initTestCase() | 92 | void TestScriptedEffectLoader::initTestCase() | ||
93 | { | 93 | { | ||
94 | qputenv("XDG_DATA_DIRS", QCoreApplication::applicationDirPath().toUtf8()); | ||||
94 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | 95 | auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | ||
95 | QCoreApplication::instance()->setProperty("config", QVariant::fromValue(config)); | 96 | QCoreApplication::instance()->setProperty("config", QVariant::fromValue(config)); | ||
96 | } | 97 | } | ||
97 | 98 | | |||
98 | void TestScriptedEffectLoader::testHasEffect_data() | 99 | void TestScriptedEffectLoader::testHasEffect_data() | ||
99 | { | 100 | { | ||
100 | QTest::addColumn<QString>("name"); | 101 | QTest::addColumn<QString>("name"); | ||
101 | QTest::addColumn<bool>("expected"); | 102 | QTest::addColumn<bool>("expected"); | ||
▲ Show 20 Lines • Show All 354 Lines • Show Last 20 Lines |