tree: 5da704bc959a056cbfc9ecbf812e3808c14e9830 [path history] [tgz]
  1. chromium/
  2. test/
  3. webidl2/
  4. .gitignore
  5. .htaccess
  6. check-layout-th.js
  7. idlharness.js
  8. idlharness.js.headers
  9. LICENSE
  10. OWNERS
  11. readme.md
  12. sriharness.js
  13. testharness.css
  14. testharness.css.headers
  15. testharness.js
  16. testharness.js.headers
  17. testharnessreport.js
  18. testharnessreport.js.headers
resources/readme.md

Introduction

testharness.js provides 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 for 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

Full user documentation for the API is at http://web-platform-tests.org/writing-tests/testharness-api.html.

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