Commit dc94467f authored by Halla Rempt's avatar Halla Rempt
Browse files

Also test saving and loading the thumbnail image

parent 4293463d
......@@ -81,6 +81,7 @@ void KoResourceBundleTest::testLoadSave()
bundle.addMeta("created", "TestCreated");
bundle.addMeta("updated", "TestUpdated");
bundle.addMeta("description", "Test Description");
bundle.setThumbnail(QString(FILES_DATA_DIR) + "/" + "thumb.png");
int tagCount = 0;
......@@ -160,6 +161,10 @@ void KoResourceBundleTest::testLoadSave()
QCOMPARE(bundle2.getMeta("updated"), QDate::currentDate().toString("dd/MM/yyyy"));
QCOMPARE(bundle2.getMeta("description"), QString("Test Description"));
QImage img = bundle2.image();
QImage thumb = QImage(QString(FILES_DATA_DIR) + "/" + "thumb.png");
QCOMPARE(img, thumb);
}
void KoResourceBundleTest::testInstallUninstall()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment