[webkit-dev] Increasing the number of cross-platform/port expected results

Adam Roben aroben at apple.com
Fri May 21 14:01:42 PDT 2010


On Feb 23, 2010, at 6:42 PM, Maciej Stachowiak wrote:

> The challenge with reftests is coming up with different markup that's supposed to render exactly the same, but for unrelated reasons. While it's possible, for example, to compare a table layout to absolute positioned boxes, for some things you get down to primitives that can't be tested independently. For example you can test that <b>, <strong> and font-weight: bold have the same results, but none of that tells you whether bold in fact works. You could have a regression which caused bold to be completely ignored and would not be able to catch it with a reftest.

Apparently you can also write tests that assert that the two renderings are *not* identical. So you could have one test that has bold text and another that has non-bold test, and assert that they are different.

See <https://developer.mozilla.org/en/Creating_reftest-based_unit_tests>.

-Adam



More information about the webkit-dev mailing list