Changes between Version 15 and Version 16 of WebKitGtkLayoutTests
- Timestamp:
- Jul 11, 2011, 4:10:19 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebKitGtkLayoutTests
v15 v16 21 21 GStreamer -core and -plugins-base >= 0.10.31 will soon be required. 22 22 23 == Xvfb ==24 25 WebKit functional tests for WebKitGTK+ should be run inside a virtual framebuffer environment. The most common choice for WebKItGTK developers is Xvfb. To start Xvfb simply run:26 {{{27 Xvfb :23 -ac -screen 0 1024x768x24 &28 }}}29 `-screen 0 1024x768x24` ensures that Xvfb has a deep enough color depth to produce accurate pixel test results.30 31 === Does Xvfb keep segfaulting? ===32 Some older versions of Ubuntu may have bugs which cause Xvfb to segfault while running tests. A workaround for this is to run Xvfb with the GLX extension disabled:33 {{{34 Xvfb :23 -ac -screen 0 1024x768x24 -extension GLX &35 }}}36 37 23 == Running the Tests == 38 24 39 25 Simply run the `run-webkit-tests` script from the Tools directory. `run-webkit-tests` also supports the `--debug` argument to run the tests with the debug build of WebKitGTK+. 40 26 {{{ 41 env -i DISPLAY=:23./Tools/Scripts/run-webkit-tests --gtk [--debug]27 ./Tools/Scripts/run-webkit-tests --gtk [--debug] 42 28 }}} 43 29 If you wish to run a single test you can do: 44 30 {{{ 45 env -i DISPLAY=:23./Tools/Scripts/run-webkit-tests --gtk fast/forms/plaintext-mode-1.html31 ./Tools/Scripts/run-webkit-tests --gtk fast/forms/plaintext-mode-1.html 46 32 }}} 47 33 … … 50 36 WebKitGTK+ supports running pixel tests, but they are not enabled by default. To run them simply pass the `-p` argument to `run-webkit-tests`: 51 37 {{{ 52 env -i DISPLAY=:23./Tools/Scripts/run-webkit-tests --gtk -p38 ./Tools/Scripts/run-webkit-tests --gtk -p 53 39 }}} 54 40 … … 56 42 Sometimes you may need to generate new results for a test that relies on render tree output. This can be accomplished by passing the `--new-test-results` option. Note that new pixel results require the `-p` option as well: 57 43 {{{ 58 env -i DISPLAY=:23./Tools/Scripts/run-webkit-tests --gtk fast/forms/plaintext-mode-1.html --new-test-results44 ./Tools/Scripts/run-webkit-tests --gtk fast/forms/plaintext-mode-1.html --new-test-results 59 45 }}} 60 46