From 2f78dfb9d90844ea723b7452a8ca3186b40f2fdd Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Wed, 30 Sep 2020 13:10:56 +0200 Subject: [PATCH] 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. --- autotests/themetest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autotests/themetest.cpp b/autotests/themetest.cpp index add6f3832..aaae05e9b 100644 --- a/autotests/themetest.cpp +++ b/autotests/themetest.cpp @@ -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());