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