Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
chromium
test
webidl2/lib
.htaccess
LICENSE
META.yml
check-layout-th.js
idlharness.js
idlharness.js.headers
readme.md
sriharness.js
testdriver-actions.js
testdriver-vendor.js
testdriver-vendor.js.headers
testdriver.js
testdriver.js.headers
testharness.css.headers
testharness.js
testharness.js.headers
testharnessreport.js
testharnessreport.js.headers

readme.md

Resources

testharness.js

testharness.js is 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 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

For detailed API documentation please visit https://web-platform-tests.org/writing-tests/testharness-api.html.

Tutorials

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

You can’t perform that action at this time.