gecko-dev/testing/web-platform/tests/resources
2015-05-06 17:32:13 +01:00
..
docs Bug 1150821 - Update web-platform-tests to revision 1bb38c25b4720fbfd8ca086ef9275ac3e465c659, a=testonly 2015-04-03 10:15:36 +01:00
webidl2 Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-23 20:06:44 +00:00
.gitignore
.gitmodules
.htaccess
apisample2.htm
apisample3.htm
apisample4.htm
apisample5.htm
apisample6.html
apisample7.html
apisample8.html
apisample9.html
apisample10.html
apisample11.html Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
apisample12.html Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
apisample13.html Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
apisample14.html Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
apisample15.html Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
apisample16.html Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
apisample-error-worker.js Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
apisample-worker.js Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
apisample.htm
idlharness.js Bug 1161535 - Update web-platform-tests to revision 40a9c4e9e4f99a738cd1a7602066c5e84d1b90b5, a=testonly 2015-05-05 21:57:11 +01:00
readme.md Bug 1103906 - Update web-platform-tests to revision 551060ba2eb3fa6d1c713c179d52fdf1132ea50c, a=testonly 2014-11-24 12:56:30 +00:00
testharness.css Bug 1146321 - Update web-platform-tests to revision 1defdd7213b52589e4b7a259e53f4fff359c301a, a=testonly 2015-03-23 13:21:13 +00:00
testharness.js Bug 1162090 - Update web-platform-tests to revision 28de405307d9613052ccd1228be7888e109738a6, a=testonly 2015-05-06 17:32:13 +01:00
testharnessreport.js Bug 1146321 - Update web-platform-tests to revision 1defdd7213b52589e4b7a259e53f4fff359c301a, a=testonly 2015-03-23 13:21:13 +00: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.