Mypal/testing/web-platform/tests/resources
2021-02-04 16:48:36 +02:00
..
docs basic source 2019-03-11 13:26:37 +03:00
examples basic source 2019-03-11 13:26:37 +03:00
webidl2 ooops, some files where missed 2019-03-12 18:31:25 +03:00
.gitignore basic source 2019-03-11 13:26:37 +03:00
.gitmodules basic source 2019-03-11 13:26:37 +03:00
.htaccess basic source 2019-03-11 13:26:37 +03:00
idlharness.js Nuke vim lines. 2021-02-04 16:48:36 +02:00
LICENSE ooops, some files where missed 2019-03-12 18:31:25 +03:00
readme.md basic source 2019-03-11 13:26:37 +03:00
testharness.css basic source 2019-03-11 13:26:37 +03:00
testharness.js Nuke vim lines. 2021-02-04 16:48:36 +02:00
testharnessreport.js basic source 2019-03-11 13:26:37 +03: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.