| 116 | == LayoutTests == |
| 117 | |
| 118 | To 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 | |
| 124 | To 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 |
| 128 | n021003l.pfb: "Nimbus Roman No9 L" "Regular" |
| 129 | $ fc-match Sans-Serif |
| 130 | Vera.ttf: "Bitstream Vera Sans" "Roman" |
| 131 | $ fc-match Serif |
| 132 | VeraSe.ttf: "Bitstream Vera Serif" "Roman" |
| 133 | $ fc-match Mono |
| 134 | VeraMono.ttf: "Bitstream Vera Sans Mono" "Roman" |
| 135 | }}} |
| 136 | |
| 137 | This 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 | |
| 144 | Never mind the 'safari' in there. It's just inheritance from the past, when Mac was the only 'port'. |
| 145 | |