tree: 5c37a462bb44f8d726bb307920c920c217473ca8 [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. SVGAnimationTestCase-testharness.js
  14. testdriver-actions.js
  15. testdriver-vendor.js.headers
  16. testdriver.js
  17. testdriver.js.headers
  18. testharness.css.headers
  19. testharness.js
  20. testharness.js.headers
  21. testharnessreport.js.headers
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.