| 1 | = Writing Reftests = |
| 2 | |
| 3 | Reftests is not supported yet in WebKit. Please see https://bugs.webkit.org/show_bug.cgi?id=36065 for the current status. |
| 4 | |
| 5 | == Current proposal == |
| 6 | |
| 7 | * 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. |
| 8 | |
| 9 | hello.html |
| 10 | |
| 11 | {{{ |
| 12 | <html><head><title>reftest0001</title> |
| 13 | <body><strong>Hello!</strong></body> |
| 14 | </html> |
| 15 | }}} |
| 16 | |
| 17 | |
| 18 | hello-expected.html |
| 19 | |
| 20 | {{{ |
| 21 | <html><head><title>reftest0001</title> |
| 22 | <body><b>Hello!</b></body> |
| 23 | </html> |
| 24 | }}} |
| 25 | |
| 26 | Todo: |
| 27 | |