servo/tests/wpt/web-platform-tests/resources
2016-11-15 09:35:34 +01:00
..
docs Update web-platform-tests to revision 3b3585e368841b77caea8576fa56cef91c3fbdf0 2016-09-26 13:24:06 +02:00
examples Update web-platform-tests to revision bda2059150dca8ab47f088b4cc619fcdc1f262fa 2016-05-30 14:04:50 +02:00
webidl2 Update web-platform-tests to revision 3b3585e368841b77caea8576fa56cef91c3fbdf0 2016-09-26 13:24:06 +02:00
.gitignore Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255 2015-04-03 23:28:54 +01:00
.gitmodules Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255 2015-04-03 23:28:54 +01:00
.htaccess Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255 2015-04-03 23:28:54 +01:00
idlharness.js Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d 2016-11-15 09:35:34 +01:00
LICENSE Update web-platform-tests to revision 5e3ea8f49fee68c327388bfd1dd1375a8ce12a0e. 2015-07-14 10:38:54 +02:00
readme.md Update web-platform-tests to revision 20fa4a3a71ab7a2f75b4febbe2e98aeeaf022c2b 2016-04-20 11:28:21 +02:00
testharness.css Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255 2015-04-03 23:28:54 +01:00
testharness.js Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d 2016-11-15 09:35:34 +01:00
testharnessreport.js Update web-platform-tests to revision 71a0d51d14d8b0f1b53cda3a7d39ef8765164485 2015-09-17 18:32:13 +02:00

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

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