Changes between Version 11 and Version 12 of Writing Reftests
- Timestamp:
- Apr 13, 2011, 7:38:04 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Writing Reftests
v11 v12 10 10 == Reftests in WebKit == 11 11 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'.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'). 13 13 14 14 Let's see the following sample reftest. … … 27 27 }}} 28 28 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.29 A new-run-webkit-tests recognizes this is a reftest and runs the test as if this is a normal layout test. 30 You can think that a '-expected.html' file is used to produce a '-expected.checksum' and a '-expected.png' on the fly. 31 31 If there is a difference between the rendering results of two html files, the test fails. 32 32 … … 48 48 }}} 49 49 50 In this case, the test fails if both producesthe same results. The test passes if there is any differences between them.50 In this case, the test fails if both HTML files produce the same results. The test passes if there is any differences between them. 51 51 52 You can see the actualreftest here: http://trac.webkit.org/changeset/8164452 You can see the sample reftest here: http://trac.webkit.org/changeset/81644 53 53 54 54 == File naming convention ==