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/20 16:32] – [Writing tests] jacobg | test:scripttest [2012/12/11 15:55] – [Per-Test Metadata] plinss | ||
---|---|---|---|
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 35: | Line 35: | ||
===== Writing tests ===== | ===== Writing tests ===== | ||
- | The full API of testharness.js is documented within the [[http:// | + | The full API of testharness.js is documented within the [[http:// |
==== Bug Reporting ==== | ==== Bug Reporting ==== | ||
Line 60: | Line 60: | ||
</ | </ | ||
- | These values would override any metadata set in the < | + | Each value can be either a single string, or an array of strings if multiple values need to be specified. |
If there is only a single script test in a file, all metadata should be in the < | If there is only a single script test in a file, all metadata should be in the < |