tree: f177a712d00d2844b486942d77169cec0da1361a [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. OWNERS
  10. readme.md
  11. sriharness.js
  12. testdriver-vendor.js.headers
  13. testdriver.js
  14. testdriver.js.headers
  15. testharness.css
  16. testharness.css.headers
  17. testharness.js
  18. testharness.js.headers
  19. testharnessreport.js.headers
third_party/WebKit/LayoutTests/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 http://web-platform-tests.org/writing-tests/testharness-api.html.

Tutorials

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