Commit 3c89f7cb authored by Volker Krause's avatar Volker Krause

Generate test images ourselves, don't rely on icons being installed

Should fix this test on the CI.
parent 2b136b16
......@@ -26,7 +26,6 @@
#include "signature.h"
#include <KIconLoader>
#include <KConfigGroup>
#include <QStandardPaths>
#include <KConfig>
......@@ -213,7 +212,12 @@ void SignatureTester::testImages()
{
KPIMTextEdit::RichTextComposer edit;
edit.createActions(new KActionCollection(this));
QString image1Path = KIconLoader::global()->iconPath(QStringLiteral("folder-new"), KIconLoader::Small, false);
QImage img(16, 16, QImage::Format_ARGB32_Premultiplied);
img.fill(Qt::green);
QString image1Path = QCoreApplication::applicationDirPath() + QLatin1String("/image.png");
img.save(image1Path);
QImage image1, image2;
QVERIFY(image1.load(image1Path));
QVERIFY(image2.load(image1Path));
......
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