mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-07-27 17:08:58 -04:00
autotests: allow JPG as test source
In special cases, JPG with fuzziness value can be used instead of big PNG files.
This commit is contained in:
@@ -56,11 +56,9 @@ static QJsonObject searchObject(const QFileInfo& file)
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
TemplateImage::TemplateImage(const QFileInfo &fi) :
|
||||
m_fi(fi)
|
||||
TemplateImage::TemplateImage(const QFileInfo &fi)
|
||||
: m_fi(fi)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool TemplateImage::isTemplate() const
|
||||
@@ -196,7 +194,7 @@ bool TemplateImage::perceptiveFuzziness() const
|
||||
|
||||
QStringList TemplateImage::suffixes()
|
||||
{
|
||||
return QStringList({"png", "tif", "tiff", "json"});
|
||||
return QStringList({"png", "tif", "tiff", "json", "jpg"});
|
||||
}
|
||||
|
||||
QFileInfo TemplateImage::legacyImage() const
|
||||
@@ -235,4 +233,3 @@ QFileInfo TemplateImage::jsonImage(TestFlags &flags, QString& comment) const
|
||||
|
||||
return QFileInfo(QStringLiteral("%1/%2").arg(m_fi.path(), name));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user