[webkit-dev] layout tests

Adam Roben aroben at apple.com
Tue May 22 17:14:00 PDT 2007

On May 22, 2007, at 4:42 PM, Reem Yazigi wrote:
> Thanks for the link and the Qt port advice... I'm still confused  
> about what does DumpRenderTree do exactly!! Does it only set up  
> WebKit to run a specific test case? Does it make any decision  
> concerning wether the Layout test is failing or passing? if yes, can  
> someone please tell me what part of the code is responsible for that  
> and how browser specific it is?
DumpRenderTree can either take a single argument that is a path to a  
test file (like fast/events/frame-tab-focus.html), or it can take a  
list of test files on standard input. DumpRenderTree then passes the  
test(s) to WebKit and outputs specially-formatted information on  
standard output. run-webkit-tests runs DumpRenderTree and passes it a  
list of tests on its standard input, then takes the resulting output  
and compares it to the expected output we have for each test that is  
checked in to the Subversion repository.

So DumpRenderTree has no concept of a "passing" or "failing" test --  
only run-webkit-tests knows that information. A simple string  
comparison is done on the actual results (output by DumpRenderTree)  
and the expected results (checked in to Subversion) to make that  


More information about the webkit-dev mailing list