Changes between Version 15 and Version 16 of HackingGtk


Ignore:
Timestamp:
May 8, 2009 11:54:30 AM (15 years ago)
Author:
kov@webkit.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HackingGtk

    v15 v16  
    114114This helps keep all the ports buildable. There is also compile output provided which is helpful for understanding the build environments and compiler flags used by other ports and tracking down compiler warnings.
    115115
     116== LayoutTests ==
     117
     118To run the layout tests you need to have built your WebKitGTK+ with the following command:
     119
     120{{{
     121./WebKitTools/Scripts/build-webkit --gtk
     122}}}
     123
     124To run the tests you need to setup your environment, so that the sizes for fonts and widgets match - the render dumps are compared textually, and the sizes must match for the tests to pass. This means you need to install the Ahem true type font, and also guarantee the following output for fc-match:
     125
     126{{{
     127$ fc-match Times
     128n021003l.pfb: "Nimbus Roman No9 L" "Regular"
     129$ fc-match Sans-Serif
     130Vera.ttf: "Bitstream Vera Sans" "Roman"
     131$ fc-match Serif
     132VeraSe.ttf: "Bitstream Vera Serif" "Roman"
     133$ fc-match Mono
     134VeraMono.ttf: "Bitstream Vera Sans Mono" "Roman"
     135}}}
     136
     137This usually means installing the gsfonts-x11 and ttf-bitstream-vera packages in a Debian system. You also need to run the tests inside an X server that has no GTK+ theme set. Xvfb is recommended. So you would do something similar to this:
     138
     139{{{
     140$ Xvfb -ac :23&
     141$ env -i DISPLAY=:23 ./WebKitTools/Scripts/build-webkit --gtk --no-launch-safari
     142}}}
     143
     144Never mind the 'safari' in there. It's just inheritance from the past, when Mac was the only 'port'.
     145
    116146== Optimization ==
    117147