tree: f840fc6b75b7ec740ee5a6cd062ec01efb21e2e9 [path history] [tgz]
  1. chromium/
  2. test/
  3. webidl2/
  4. .gitignore
  5. .htaccess
  6. idlharness.js
  7. idlharness.js.headers
  8. LICENSE
  9. OWNERS
  10. readme.md
  11. sriharness.js
  12. testharness.css
  13. testharness.css.headers
  14. testharness.js
  15. testharness.js.headers
  16. testharnessreport.js
  17. 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.