summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resources/readme.md
blob: eed909064239a12b901f43eeadb67bac7dfed2b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Introduction ##

testharness.js provides a framework for writing low-level tests of
browser functionality in javascript. It provides a convenient API for
making assertions and is intended to work for both simple synchronous
tests and for tests of asynchronous behaviour.

## Getting Started ##

To use testharness.js you must include two scripts, in the order given:

``` html
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
```

## Full documentation ##

Full user documentation for the API is in the
[docs/api.md](https://github.com/w3c/testharness.js/blob/master/docs/api.md) file.

You can also read a tutorial on 
[Using testharness.js](http://darobin.github.com/test-harness-tutorial/docs/using-testharness.html).