Provide a lastModified value in ThemeTest

Since lastModified is now required to be a valid value we should make
sure to test with a proper value as well.
This commit is contained in:
Arjen Hiemstra 2020-09-30 13:10:56 +02:00
parent 93de15f545
commit 2f78dfb9d9

View File

@ -75,8 +75,10 @@ void ThemeTest::loadSvgIcon()
QString cacheId = CACHE_ID_WITH_SIZE(QSize(48, 48), iconPath, Plasma::Svg::Normal, m_svg->devicePixelRatio()) % QLSEP % QString::number(m_svg->colorGroup());
QFileInfo info(iconPath);
QPixmap result;
QVERIFY(m_svg->theme()->findInCache(cacheId, result));
QVERIFY(m_svg->theme()->findInCache(cacheId, result, info.lastModified().toSecsSinceEpoch()));
QSignalSpy spy(m_svg, SIGNAL(repaintNeeded()));
QVERIFY(spy.isValid());