JsUnit Standard Tests

JsUnit Home
edward@jsunit.net
Licenses MPL1.1/GPL2/LGPL2.1

Steps to run the jsUnit Standard Tests

  1. Open JsUnit's testRunner.html
  2. Copy / Paste the URL of the desired test into the filename input
  3. Choose the run-time parameters for jsUnit
  4. Click the Run button

Standard Tests using Auto-discovery

A Test Suite which runs internal tests of jsUnit using auto-discovery of test names.

These tests use the ability of jsUnit to discover test names which begin with 'test' and to automatically execute them. This is not possible in all browsers. If your browser does not support test auto-discovery, please use the other version of these tests which expose the names of test functions through a function which returns an array of test function names

View jsUnitTestSuite.html

An example Test Suite which executes the following tests JsUnit.

View jsUnitAssertionTests.html

Tests for the JsUnit Assertion functions.

View jsUnitSetUpTearDownTests.html

Tests for the JsUnit setUp and tearDown framework, including testing the order of the tests.

View jsUnitUtilityTests.html

Tests for the utility functions and classes that the JsUnit framework uses.

View jsUnitFrameworkUtilityTests.html

Tests for the StackTrace functions in JsUnit framework uses.

View jsUnitOnLoadTests.html

Tests if an onload handler attached to the body tag can be tested.

setUpPages Tests using Auto-discovery

View jsUnitTestSetUpPagesSuite.html

Tests jsUnit's ability to use the Document Loader functionality.

View jsUnitTestSetUpPages.html

Tests basic asynchronous setUpPages. setUpPages allow you to perform additional, possibly asynchronous setup processing before tests are run.

Standard Tests using Test Declaration

A Test Suite which runs internal tests of jsUnit using declared test names.

These tests use a function which returns an array of test function names and may be supported by a larger range of browsers than the autodiscovery form of the tests. These tests use a function which returns an array of test function names and may be supported by a larger range of browsers than the auto-discovery form of the tests.

View jsUnitDeclTestSuite.html

An example Test Suite which executes the following tests JsUnit.

View jsUnitDeclAssertionTests.html

Tests for the JsUnit Assertion functions.

View jsUnitDeclSetUpTearDownTests.html

Tests for the JsUnit setUp and tearDown framework, including testing the order of the tests.

View jsUnitDeclUtilityTests.html

Tests for the utility functions and classes that the JsUnit framework uses.

View jsUnitDeclFrameworkUtilityTests.html

Tests for the StackTrace functions in JsUnit framework uses.

View jsUnitDeclOnLoadTests.html

Tests if an onload handler attached to the body tag can be tested.

setUpPages Tests using Declaration

View jsUnitDeclTestSetUpPagesSuite.html

Tests jsUnit's ability to use the Document Loader functionality.

View jsUnitDeclTestSetUpPages.html

Tests basic asynchronous setUpPages. setUpPages allow you to perform additional, possibly asynchronous setup processing before tests are run.

Additional Tests

View jsUnitTestFailures.html

Tests if failures are reported.

View jsUnitTestLoadData.html

Tests loading documents asynchronously from the same domain as jsUnit using the documentLoader with test auto-discovery.

View jsUnitDeclTestLoadData.html

Tests loading documents asynchronously from the same domain as jsUnit using the documentLoader with test declaration.

View jsUnitTestLoadStaff.html

Tests loading XML documents asynchronously from the same domain as jsUnit using the documentLoader.