tree: 5690611ddc81461083713e7da7162a87d85091e6 [path history] [tgz]
  1. chromium/
  2. docs/
  3. examples/
  4. test/
  5. webidl2/
  6. .htaccess
  7. check-layout-th.js
  8. idlharness.js
  9. idlharness.js.headers
  10. LICENSE
  11. OWNERS
  12. readme.md
  13. sriharness.js
  14. testdriver-actions.js
  15. testdriver-vendor.js
  16. testdriver.js
  17. testharness.css.headers
  18. testharness.js
  19. testharness.js.headers
  20. testharnessreport.js.headers
  21. w3c-import.log
LayoutTests/imported/w3c/web-platform-tests/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.