diff options
author | aavit <qt-info@nokia.com> | 2010-09-08 07:09:35 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2010-09-08 07:09:35 (GMT) |
commit | 1743a8bea43066c52cf07f6c8a859c3d9ddb65da (patch) | |
tree | 9edf82291de3ab1fa14d32c7d6dcfcf084e3de8c /tests/auto/lancelot | |
parent | 296e37e29bb0b364340e1813e18c460354b74acc (diff) | |
download | Qt-1743a8bea43066c52cf07f6c8a859c3d9ddb65da.zip Qt-1743a8bea43066c52cf07f6c8a859c3d9ddb65da.tar.gz Qt-1743a8bea43066c52cf07f6c8a859c3d9ddb65da.tar.bz2 |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/lancelot/tst_lancelot.cpp b/tests/auto/lancelot/tst_lancelot.cpp index b2d5a7b..aba544f 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) |