Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
test:scripttest [2012/12/11 15:55] – [Per-Test Metadata] plinsstest:scripttest [2013/11/11 18:30] – added deprecation note & redirect to testthewebforward.org rhauck
Line 1: Line 1:
 +<html>
 +<strong>
 +<div style="color: red; font-size: 20px; border: 2px solid red; padding: 10px; line-height: 1.5; text-align: center;">
 +This page has been deprecated and is no longer being maintained. 
 +<br>For up to date information on contributing and authoring CSS Test suites, see: 
 +<br><a href="http://testthewebforward.org/docs/testharness-tutorial.html">http://testthewebforward.org/docs/testharness-tutorial.html</a>
 +</strong>
 +</div>
 +</html>
 +
 ====== Script Tests ====== ====== Script Tests ======
  
Line 56: Line 66:
      { help: 'http://www.w3.org/TR/spec#section',       { help: 'http://www.w3.org/TR/spec#section', 
        assert: ['This tests something.', 'This also tests something else.'],        assert: ['This tests something.', 'This also tests something else.'],
-       author: 'John Doe <john@doe.com>' }+       author: ['John Doe <john@doe.com>', 'Jane Doe http://example.com/doe/jane'}
 ); );
 </code> </code>
Line 62: Line 72:
 Each value can be either a single string, or an array of strings if multiple values need to be specified. These values would override any metadata set in the <head> of the test and are only needed when the individual test's metadata is different from what's in the <head>. Each value can be either a single string, or an array of strings if multiple values need to be specified. These values would override any metadata set in the <head> of the test and are only needed when the individual test's metadata is different from what's in the <head>.
  
-If there is only a single script test in a file, all metadata should be in the <head>.+If there is only a single script test in a file, all metadata should be in the <head> rather than the test constructor
  
 === Metadata Cache  === === Metadata Cache  ===
  
-The default version of testharnessreport.js now contains code that reads your per-test metadata and compares it to the cached version. If the cache is not present, or is out of sync, it'll display a message to that effect and generate a link which, when clicked, will generate the appropriate source code for the cached metadata suitable for copy/paste into the test's <head>. The metadata cache need only be generated once just before submitting a test to suites that care about metadata, and regenerated only when the metadata changes.+The metadata cache exposes the names of the script tests and all associated per-test metadata to our testing tool suite. Using this data we can track the testing coverage of each specification as well as generate testing statistics and reports. If there are multiple script tests in a file, the metadata cache must be present, even if there is no test-specific metadata present (to list the names of each script test). 
 + 
 +The version of testharnessreport.js on http://test.csswg.org/resources now contains code that reads your per-test metadata and compares it to the cached version stored in the <head>. If the cache is not present, or is out of sync, it'll display a message to that effect and generate a link which, when clicked, will generate the appropriate source code for the cached metadata suitable for copy/paste into the test's <head>. The metadata cache need only be generated once just before submitting a test to suites that care about metadata, and regenerated only when the metadata changes.
  
 To access this functionality, launch your script test in a browser and follow the link that appears at the top of the page. To access this functionality, launch your script test in a browser and follow the link that appears at the top of the page.
 
test/scripttest.txt · Last modified: 2014/12/09 15:48 by 127.0.0.1
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki