Revision 5b2846cb5fe342c01a826c893482c7e50c41b072 authored by moz-wptsync-bot on 15 March 2018, 23:08:40 UTC, committed by moz-wptsync-bot on 15 March 2018, 23:08:40 UTC
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1445740
gecko-commit: 83cf165404102d1d22070a2e22fe99ab2ea28b8f
gecko-integration-branch: mozilla-inbound
gecko-reviewers: smaug
1 parent a2d57e7
Raw File
readme.md
# Resources

## `testharness.js`

`testharness.js` is 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 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

For detailed API documentation please visit [http://web-platform-tests.org/writing-tests/testharness-api.html](http://web-platform-tests.org/writing-tests/testharness-api.html).

### Tutorials

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