Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript HTML Other

Merge pull request #110 from w3c/jgraham/stack_trace

Improve handling of stack traces in results collection.
latest commit bb9b405bc8
jgraham jgraham authored
Failed to load latest commit information.
docs Add the new assert_between_exclusive and assert_between_inclusive fun…
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 Collapse IdlExceptionOrInterface and IdlInterface.
readme.md Point readme to latest docs location.
testharness.css Improve handling of stack traces in results collection.
testharness.js Improve handling of stack traces in results collection.
testharnessreport.js Added comment for IE workaround.

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.