From HTML WG Wiki
We currently accepted in three formats (in order of preference):
You need the exact following code in your source:
<script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script>
For documentation, see the source code of the testing script harness.
These are used when specific visual rendering has to be tested. The test uses two files which are (typically) supposed to have identical rendering; one relying on the feature under test and one achieving the same visual result through other means. The test passes when the renderings are pixel-for-pixel identical. In order that the tests can also be run in situations where automatic comparisons of the two pages are not possible, they must have text in the page that allows a human to determine the pass condition without access to the reference. The CSS WG Wiki has more information about writing reftests.
These can be used as a last resort when a feature cannot be tested automatically.
- HTML Testing by James Graham
Process for contributing
The process for submission and approval of tests is currently:
- Write tests
- Wait for the tests to be reviewed