Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript HTML Other

Merge pull request #131 from w3c/jgraham/worker_struct_clone

Set correct this value in worker structured clone function; r=Ms2ger
latest commit 6a4af94528
@Ms2ger Ms2ger authored
Failed to load latest commit information.
docs Add EventWatcher helper to testharness.js
webidl2 @ a7fbcf1 Update idlharness to work in workers.
.gitignore start using WebIDL2
.gitmodules Use https:// instead of git://
.htaccess make tests that use utf-16 not inherit the encoding for testharness.j…
apisample-error-worker.js Support testing in a worker.
apisample-worker.js Support testing in a worker.
apisample.htm Make test(function(t) { t.add_cleanup(...) }) work
apisample10.html step_func propagates result, add unreached_func, Promise examples
apisample11.html Support testing in a worker.
apisample12.html Support testing in a worker.
apisample13.html Support testing in a worker.
apisample14.html Support testing in a worker.
apisample15.html Support testing in a worker.
apisample16.html Support testing in a worker.
apisample2.htm Backed out changeset 4431cb457fea; testharness.js comes before testha…
apisample3.htm Add explicit timeout mechanism
apisample4.htm Set harness status to error if there is an uncaught exception.
apisample5.htm Make tests not timeout by default, but run until the harness timeout …
apisample6.html fixup! Quick demo of single page tests.
apisample7.html fixup! Quick demo of single page tests.
apisample8.html Add some more edge cases for single page tests.
apisample9.html Add some more edge cases for single page tests.
idlharness.js Correct the test that calls methods with too few arguments.
readme.md Point readme to latest docs location.
testharness.css Improve handling of stack traces in results collection.
testharness.js Set correct this value in worker structured clone function.
testharnessreport.js Add something that dumps the test result JSON to a hidden script elem…

readme.md

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.

Something went wrong with that request. Please try again.