wiki:Writing Reftests

Version 1 (modified by hayato@chromium.org, 10 years ago) (diff)

--

Writing Reftests

Reftests is not supported yet in WebKit. Please see https://bugs.webkit.org/show_bug.cgi?id=36065 for the current status.

Current proposal

  • Reftests use a HTML file ('-expected.html') to represent the expected rendering result instead of statically prepared expected result files, such as '-expected.txt', '-expected.checksum' and '-expected.png'. Let's see the following sample reftest.

hello.html

<html><head><title>reftest0001</title>
<body><strong>Hello!</strong></body>
</html>

hello-expected.html

<html><head><title>reftest0001</title>
<body><b>Hello!</b></body>
</html>

Todo: