Test for loading a dataengine
This commit is contained in:
parent
cd5be142ed
commit
2d46621818
@ -33,7 +33,7 @@ QTEST_MAIN(PluginTest)
|
|||||||
|
|
||||||
// Switch to true in order to let tests pass, this test usually will only
|
// Switch to true in order to let tests pass, this test usually will only
|
||||||
// work with plugins installed, but there aren't any in plasma-framework
|
// work with plugins installed, but there aren't any in plasma-framework
|
||||||
bool buildonly = true;
|
bool buildonly = false;
|
||||||
|
|
||||||
void PluginTest::listEngines()
|
void PluginTest::listEngines()
|
||||||
{
|
{
|
||||||
@ -67,6 +67,13 @@ void PluginTest::listContainmentsOfType()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PluginTest::loadDataEngine()
|
||||||
|
{
|
||||||
|
Plasma::DataEngine *engine = Plasma::PluginLoader::self()->loadDataEngine("time");
|
||||||
|
qDebug() << "ENgine loaded successfully" << engine->pluginInfo().name();
|
||||||
|
QVERIFY(engine != 0 || buildonly);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#include "moc_pluginloadertest.cpp"
|
#include "moc_pluginloadertest.cpp"
|
||||||
|
@ -34,6 +34,8 @@ class PluginTest : public QObject
|
|||||||
void listContainmentActions();
|
void listContainmentActions();
|
||||||
void listContainmentsOfType();
|
void listContainmentsOfType();
|
||||||
|
|
||||||
|
void loadDataEngine();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user