tree: 5762910616a4f05d82d775da2f00d116c8281369 [path history] [tgz]
  1. .gitignore
  2. .htaccess
  3. LICENSE
  4. META.yml
  5. OWNERS
  6. check-layout-th.js
  7. chromium/
  8. idlharness.js
  9. idlharness.js.headers
  10. readme.md
  11. sriharness.js
  12. testdriver-actions.js
  13. testdriver-vendor.js.headers
  14. testdriver.js
  15. testdriver.js.headers
  16. testharness.css.headers
  17. testharness.js
  18. testharness.js.headers
  19. testharnessreport.js.headers
  20. webidl2/
third_party/blink/web_tests/external/wpt/resources/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:

<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>

Full documentation

For detailed API documentation please visit https://web-platform-tests.org/writing-tests/testharness-api.html.

Tutorials

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