[Webkit-unassigned] [Bug 28781] Add QWebFrame::renderElement to API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 22 13:25:03 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=28781





--- Comment #13 from Viatcheslav Ostapenko <ostapenko.viatcheslav at nokia.com>  2009-09-22 13:25:02 PDT ---

> The idea with QPicture is interesting, but I seriously doubt the test needs to
> be complicated.
> 
> In principle, just paint to a QImage (of a given size) and compare the pixels
> to what you would expect
> (you know this because of your test HTML fragment, you can find out e.g. the
> position of image.png)
> 
> Also no need for ImageDiff code reuse for this, as we simply needs to compare
> pixel-per-pixel (ImageDiff supports "fuzzy comparison").
> If a pixel is not correct, for this use case we can safely assume that
> something has gone wrong.
> 
> Painting to QImage, you don't need to worry about settings the graphics system
> to raster. It will be raster when doing the painting to image.

My problem, that in test I render table with some text (to test rendering of
composite elements).
Comparing of images works fine, but text could be rendered differently on
different systems, as I understand.
Or do you mean I should do image compare for text only and leave "table" test
as it is?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list