diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-11-15 14:33:20 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-11-15 14:33:20 (GMT) |
commit | 2e99669b129ab2b6b6c65f1bff0ed6d5b86d1630 (patch) | |
tree | b23046eac41176b07dd51f6947d0b7ea38817dd6 /tools | |
parent | ef4803f1d77fca4420b83fd9b0e109672b6473bf (diff) | |
parent | 6cc85e9884c5cf846dbb3cbf94b6bd4dc787b6f4 (diff) | |
download | Qt-2e99669b129ab2b6b6c65f1bff0ed6d5b86d1630.zip Qt-2e99669b129ab2b6b6c65f1bff0ed6d5b86d1630.tar.gz Qt-2e99669b129ab2b6b6c65f1bff0ed6d5b86d1630.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml:
Update all qmlvisual tests
Take snapshots starting from the first frame
Stabilize visual test focusscope/test3.qml
ListView: items with size < 1.0 were layed out incorrectly.
ListView.SnapToItem with ListView.StrictlyEnforceRange is broken.
Fix failing visual tests
Remove unneeded semicolons.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qml/qdeclarativetester.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/qml/qdeclarativetester.cpp b/tools/qml/qdeclarativetester.cpp index eaf3403..499822a 100644 --- a/tools/qml/qdeclarativetester.cpp +++ b/tools/qml/qdeclarativetester.cpp @@ -286,7 +286,7 @@ void QDeclarativeTester::updateCurrentTime(int msec) fe.msec = msec; if (msec == 0 || !(options & QDeclarativeViewer::TestImages)) { // Skip first frame, skip if not doing images - } else if (0 == (m_savedFrameEvents.count() % 60) || snapshot) { + } else if (0 == (m_savedFrameEvents.count()-1 % 60) || snapshot) { fe.image = img; } else { QCryptographicHash hash(QCryptographicHash::Md5); @@ -356,6 +356,11 @@ void QDeclarativeTester::updateCurrentTime(int msec) if (options & QDeclarativeViewer::TestImages && !(options & QDeclarativeViewer::Record) && !frame->image().isEmpty()) { QImage goodImage(frame->image().toLocalFile()); + if (frame->msec() == 16 && goodImage.size() != img.size()){ + //Also an image mismatch, but this warning is more informative. Only checked at start though. + qWarning() << "QDeclarativeTester(" << m_script << "): Size mismatch. This test must be run at " << goodImage.size(); + imagefailure(); + } if (goodImage != img) { QString reject(frame->image().toLocalFile() + ".reject.png"); qWarning() << "QDeclarativeTester: Image mismatch. Reject saved to:" |