tree: ddad1b4fe815fb626d83ae9affba125a2196ed0b [path history] [tgz]
  1. .htaccess
  2. LICENSE
  3. docs/
  4. examples/
  5. idlharness.js
  6. readme.md
  7. testharness.css
  8. testharness.js
  9. testharnessreport.js
  10. webidl2/
src/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.