tree: 27ea7ae5c614d2b4cf130e90ec1ef0a7f6a59dfb [path history] [tgz]
  1. docs/
  2. examples/
  3. webidl2/
  4. .gitignore
  5. .htaccess
  6. idlharness.js
  7. LICENSE
  8. readme.md
  9. testharness.css
  10. testharness.js
  11. testharnessreport.js
third_party/web_platform_tests/resources/readme.md

Introdution

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:

<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 file.

You can also read a tutorial on Using testharness.js.