tree: 1336ad3409ecf2e6e4ac9f5f20d499d5c37d8e0e [path history] [tgz]
  1. .gitignore
  2. .htaccess
  3. LICENSE
  4. META.yml
  5. OWNERS
  6. SVGAnimationTestCase-testharness.js
  7. check-layout-th.js
  8. chromium/
  9. idlharness.js
  10. idlharness.js.headers
  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
  21. webidl2/
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.