[webkit-dev] ImageDiff tool for gtk platform
Kalle Vahlman
kalle.vahlman at gmail.com
Fri May 23 00:39:42 PDT 2008
2008/5/23 Mark Rowe <mrowe at apple.com>:
>
> On 22/05/2008, at 07:24, S Venkata Udai Kiran wrote:
>
>> Hi all,
>> I was trying to understand how the Layout tests are being done in
>> Webkit. I went through the perl code 'run-webkit-tests' and found that
>> the script is using a tool name ImageDiff
>> (WebKit/WebKitBuild/Release/Programs/ImageDiff) .But I could not 'find'
>> that tool in WebKit folder. As I understand that ImageDiff tool is
>> necessary to do a pixel level diff for test images generated.I am
>> looking at running individual tests using a small shell script rather
>> running all the tests at once. this will help me to know the underlying
>> things. Please help.
>
> ImageDiff is currently only implemented for Mac and Windows. It's not
> needed to run the standard regression tests. Pixel test results will differ
> between platforms and software versions, so there is a lot of manual work
> involved in verifying results when bringing up pixel results on a new
> platform. Focusing on text-only and render tree tests would provide much
> better bang for your buck than pixel test results.
That's very true. However, cairo aims at constant quality across
output targets and has a similar utility in it's testing suite to
verify that:
http://gitweb.freedesktop.org/?p=cairo;a=tree;h=4bcc292bc335525f804db83f002692fb42a7b7c7;hb=8efb103600e9c034f8652f495d390d6a4178061e;f=test/pdiff
So assuming that the layout code produces identical output on all
platforms, testing cairo -backed platforms (gtk, win32...) for
pixel-perfectness might make sense.
--
Kalle Vahlman, zuh at iki.fi
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi
More information about the webkit-dev
mailing list