tenfourfox/testing/web-platform/tests/resources
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00
..
docs hello FPR 2017-04-19 00:56:45 -07:00
examples hello FPR 2017-04-19 00:56:45 -07:00
webidl2 hello FPR 2017-04-19 00:56:45 -07:00
.gitignore hello FPR 2017-04-19 00:56:45 -07:00
.gitmodules hello FPR 2017-04-19 00:56:45 -07:00
.htaccess hello FPR 2017-04-19 00:56:45 -07:00
idlharness.js hello FPR 2017-04-19 00:56:45 -07:00
LICENSE hello FPR 2017-04-19 00:56:45 -07:00
readme.md hello FPR 2017-04-19 00:56:45 -07:00
testharness.css hello FPR 2017-04-19 00:56:45 -07:00
testharness.js hello FPR 2017-04-19 00:56:45 -07:00
testharnessreport.js hello FPR 2017-04-19 00:56:45 -07:00

Introdution

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 in the docs/api.md file.

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