Changes between Version 11 and Version 12 of Writing Reftests


Ignore:
Timestamp:
Apr 13, 2011 7:38:04 PM (13 years ago)
Author:
hayato@chromium.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Writing Reftests

    v11 v12  
    1010== Reftests in WebKit ==
    1111
    12 Reftest uses a HTML file ('-expected.html') to represent an expected rendering result, instead of pre-generated expected files, such as '-expected.txt', '-expected.checksum' and '-expected.png'.
     12Reftest uses a HTML file ('-expected.html') to represent an expected rendering result, instead of pre-generated expected files (such as '-expected.txt', '-expected.checksum' and '-expected.png').
    1313
    1414Let's see the following sample reftest.
     
    2727}}}
    2828
    29 A new-run-webkit-tests recognizes this is a reftest and run the test as if this is a normal layout test.
    30 You can think that a '-expected.html' file is used to produce '-expected.checksum' and '-expected.png' on the fly.
     29A new-run-webkit-tests recognizes this is a reftest and runs the test as if this is a normal layout test.
     30You can think that a '-expected.html' file is used to produce a '-expected.checksum' and a '-expected.png' on the fly.
    3131If there is a difference between the rendering results of two html files, the test fails.
    3232
     
    4848}}}
    4949
    50 In this case, the test fails if both produces the same results. The test passes if there is any differences between them.
     50In this case, the test fails if both HTML files produce the same results. The test passes if there is any differences between them.
    5151
    52 You can see the actual reftest here: http://trac.webkit.org/changeset/81644
     52You can see the sample reftest here: http://trac.webkit.org/changeset/81644
    5353
    5454== File naming convention ==