This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
test:scripttest [2012/06/15 11:42] – [Per-Test Metadata] jacobg | test:scripttest [2012/11/30 12:12] – [Basic Usage] type="text/javascript" was missing from code gtalbot | ||
---|---|---|---|
Line 24: | Line 24: | ||
<code html> | <code html> | ||
- | <script src="/ | + | < |
- | <script src="/ | + | < |
</ | </ | ||
* Each test can have one or more asserts. Note: some prefer a test is limited to a single assert but that is not mandatory. | * Each test can have one or more asserts. Note: some prefer a test is limited to a single assert but that is not mandatory. | ||
Line 32: | Line 32: | ||
* A test fails at the first failing assert, and the remainder of the test is (typically) not run. | * A test fails at the first failing assert, and the remainder of the test is (typically) not run. | ||
* If the file containing the tests is a HTML file with an element of id " | * If the file containing the tests is a HTML file with an element of id " | ||
+ | |||
+ | ===== Writing tests ===== | ||
+ | |||
+ | The full API of testharness.js is documented within the [[http:// | ||
+ | |||
==== Bug Reporting ==== | ==== Bug Reporting ==== | ||