Skip to content
Permalink
Browse files
[Qt] ImageDiff does not consider --tolerance
https://bugs.webkit.org/show_bug.cgi?id=66299

Reviewed by Csaba Osztrogonác.

* DumpRenderTree/qt/ImageDiff.cpp:
(main):

Canonical link: https://commits.webkit.org/82491@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@93509 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
balazs committed Aug 22, 2011
1 parent 2e7425a commit 6912adf503982953a4f4c58e0dd337c09d3682e6
Showing 2 changed files with 12 additions and 2 deletions.
@@ -1,3 +1,13 @@
2011-08-22 Balazs Kelemen <kbalazs@webkit.org>

[Qt] ImageDiff does not consider --tolerance
https://bugs.webkit.org/show_bug.cgi?id=66299

Reviewed by Csaba Osztrogonác.

* DumpRenderTree/qt/ImageDiff.cpp:
(main):

2011-08-22 Csaba Osztrogonác <ossy@webkit.org>

Update contributor list.
@@ -123,9 +123,9 @@ int main(int argc, char* argv[])
difference = qMax(difference, qreal(0.01));
}

if (!count) {
if (!difference)
fprintf(stdout, "diff: %01.2f%% passed\n", difference);
} else {
else {
QBuffer buffer;
buffer.open(QBuffer::WriteOnly);
diffImage.save(&buffer, "PNG");

0 comments on commit 6912adf

Please sign in to comment.