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:
parent
93de15f545
commit
2f78dfb9d9
@ -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());
|
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;
|
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()));
|
QSignalSpy spy(m_svg, SIGNAL(repaintNeeded()));
|
||||||
QVERIFY(spy.isValid());
|
QVERIFY(spy.isValid());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user