mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 15:37:23 +00:00
add more tests for confighelper
This commit is contained in:
parent
bf16e72e1e
commit
bee8e2f180
@ -64,4 +64,18 @@ void TestAWConfigHelper::test_importConfiguration()
|
||||
}
|
||||
|
||||
|
||||
void TestAWConfigHelper::test_readDataEngineConfiguration()
|
||||
{
|
||||
deConfig = plugin->readDataEngineConfiguration();
|
||||
QVERIFY(!deConfig.isEmpty());
|
||||
}
|
||||
|
||||
|
||||
void TestAWConfigHelper::test_writeDataEngineConfiguration()
|
||||
{
|
||||
QVERIFY(plugin->writeDataEngineConfiguration(deConfig));
|
||||
QCOMPARE(plugin->readDataEngineConfiguration(), deConfig);
|
||||
}
|
||||
|
||||
|
||||
QTEST_MAIN(TestAWConfigHelper);
|
||||
|
@ -38,11 +38,14 @@ private slots:
|
||||
void test_configurationDirectory();
|
||||
void test_exportConfiguration();
|
||||
void test_importConfiguration();
|
||||
void test_readDataEngineConfiguration();
|
||||
void test_writeDataEngineConfiguration();
|
||||
|
||||
private:
|
||||
AWConfigHelper *plugin = nullptr;
|
||||
QString filename;
|
||||
QQmlPropertyMap map;
|
||||
QVariantMap deConfig;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user