[webkit-dev] Increasing the number of cross-platform/port expected results

Evan Martin evan at chromium.org
Tue Feb 23 05:15:52 PST 2010


On Tue, Feb 23, 2010 at 2:00 PM, Tor Arne Vestbø
<tor.arne.vestbo at nokia.com> wrote:
> Lately we've been playing with the idea of using SVG fonts for the Qt port
> to get the same set of expected results for qt-mac, qt-linux and qt-win, by
> injecting new @font-face rules using a user-stylesheet and preventing
> platform-fonts from being loaded, but this approach/hack has proven to be
> quite fragile, and we will also miss out on those tests that actually test
> font loading/rendering.

For Chromium on Linux, we try to insulate ourselves from the platform
settings by injecting a custom fontconfig file and font list that
makes things match Windows behavior.  (Matching Windows is important
because many sites will hardcode a pixel width on a div then fill it
with text and expect the text not to wrap.)

This makes our tests sadly kind of font-set and platform-dependent but
it at least makes the test behave the same regardless of which system
it's run on.

See this code for a discussion:
http://src.chromium.org/cgi-bin/gitweb.cgi?p=chromium.git;a=blob;f=webkit/tools/test_shell/test_shell_gtk.cc;h=e6673ffc1b6dfe756c5f95e59679c8e857af530d;hb=HEAD#l173


More information about the webkit-dev mailing list