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