Changes between Version 15 and Version 16 of WebKitGtkLayoutTests


Ignore:
Timestamp:
Jul 11, 2011 4:10:19 PM (8 years ago)
Author:
mrobinson@webkit.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebKitGtkLayoutTests

    v15 v16  
    2121GStreamer -core and -plugins-base >= 0.10.31 will soon be required.
    2222
    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 
    3723== Running the Tests ==
    3824
    3925Simply 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+.
    4026{{{
    41 env -i DISPLAY=:23  ./Tools/Scripts/run-webkit-tests --gtk [--debug]
     27./Tools/Scripts/run-webkit-tests --gtk [--debug]
    4228}}}
    4329If you wish to run a single test you can do:
    4430{{{
    45 env -i DISPLAY=:23 ./Tools/Scripts/run-webkit-tests --gtk fast/forms/plaintext-mode-1.html
     31./Tools/Scripts/run-webkit-tests --gtk fast/forms/plaintext-mode-1.html
    4632}}}
    4733
     
    5036WebKitGTK+ supports running pixel tests, but they are not enabled by default. To run them simply pass the `-p` argument to `run-webkit-tests`:
    5137{{{
    52 env -i DISPLAY=:23 ./Tools/Scripts/run-webkit-tests --gtk -p
     38./Tools/Scripts/run-webkit-tests --gtk -p
    5339}}}
    5440
     
    5642Sometimes 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:
    5743{{{
    58 env -i DISPLAY=:23  ./Tools/Scripts/run-webkit-tests --gtk fast/forms/plaintext-mode-1.html --new-test-results
     44./Tools/Scripts/run-webkit-tests --gtk fast/forms/plaintext-mode-1.html --new-test-results
    5945}}}
    6046