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