summaryrefslogtreecommitdiffstats
path: root/tests/auto/lancelot
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2010-09-08 09:09:35 +0200
committeraavit <qt-info@nokia.com>2010-09-08 09:09:35 +0200
commit1743a8bea43066c52cf07f6c8a859c3d9ddb65da (patch)
tree9edf82291de3ab1fa14d32c7d6dcfcf084e3de8c /tests/auto/lancelot
parent296e37e29bb0b364340e1813e18c460354b74acc (diff)
Fix: remove baseline checksums before adding rendered
.. otherwise, the comparison will always yield true... Also a simplification: QList provides default datastreaming ops
Diffstat (limited to 'tests/auto/lancelot')
-rw-r--r--tests/auto/lancelot/tst_lancelot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/lancelot/tst_lancelot.cpp b/tests/auto/lancelot/tst_lancelot.cpp
index b2d5a7b747..aba544fb5c 100644
--- a/tests/auto/lancelot/tst_lancelot.cpp
+++ b/tests/auto/lancelot/tst_lancelot.cpp
@@ -246,11 +246,11 @@ void tst_Lancelot::runTestSuite()
ImageItem tst_Lancelot::render(const ImageItem &item)
{
ImageItem res = item;
+ res.imageChecksums.clear();
QString filePath = scriptsDir + item.scriptName;
QStringList script = loadScriptFile(filePath);
if (script.isEmpty()) {
res.image = QImage();
- res.imageChecksums.append(0);
} else if (item.engine == ImageItem::Raster) {
QImage img(800, 800, item.renderFormat);
paint(&img, script, QFileInfo(filePath).absoluteFilePath()); // eh yuck (filePath stuff)