gecko/testing/web-platform/tests/resources
2015-07-26 18:49:16 +01:00
..
docs Bug 1187720 - Update web-platform-tests to revision 4bc69f287365a67585d470300a2ef109689cf465, a=testonly 2015-07-26 18:49:16 +01:00
examples Bug 1183628 - Update web-platform-tests to revision 593fd27931d7e9d573d2796fe10df9fff778d56f, a=testonly 2015-07-14 14:39:06 +01:00
webidl2
.gitignore
.gitmodules
.htaccess
idlharness.js
LICENSE Bug 1183628 - Update web-platform-tests to revision 593fd27931d7e9d573d2796fe10df9fff778d56f, a=testonly 2015-07-14 14:39:06 +01:00
readme.md
testharness.css
testharness.js Bug 1187720 - Update web-platform-tests to revision 4bc69f287365a67585d470300a2ef109689cf465, a=testonly 2015-07-26 18:49:16 +01:00
testharnessreport.js Bug 1183628 - Update web-platform-tests to revision 593fd27931d7e9d573d2796fe10df9fff778d56f, a=testonly 2015-07-14 14:39:06 +01: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.