blob: 5c5b36c28693c19c26ee131080150b9dbcfb7bc9 [file] [log] [blame] [view]
Andrew Top61a84952019-04-30 15:07:33 -07001## Introdution ##
2
3testharness.js provides a framework for writing low-level tests of
4browser functionality in javascript. It provides a convenient API for
5making assertions and is intended to work for both simple synchronous
6tests and for tests of asynchronous behaviour.
7
8## Getting Started ##
9
10To use testharness.js you must include two scripts, in the order given:
11
12``` html
13<script src="/resources/testharness.js"></script>
14<script src="/resources/testharnessreport.js"></script>
15```
16
17## Full documentation ##
18
19Full user documentation for the API is in the
20[docs/api.md](https://github.com/w3c/testharness.js/blob/master/docs/api.md) file.
21
22You can also read a tutorial on
23[Using testharness.js](http://darobin.github.com/test-harness-tutorial/docs/using-testharness.html).