Skip to content

Latest commit

 

History

History
 
 

archive

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
CSS2.1 Test Suite
=================

QUICK START

 - The source of tests are in one of these:

       raw-tests/ -- tests that have a special file that is then used
       to create the tests, adding <link> elements and fixing the
       filename.

       cooked-tests/ -- tests that already have appropriate filenames
       and <link> elements.

 - To build the tests, run 'make' in this directory. Build requirements
   are documented in http://csswg.inkedblade.net/test/css2.1/harness

DETAILS

Existing tests from the Web are converted to XHTML1.1 by conversion
scripts in the convertors/ directory. These tests are then placed in
the incoming-tests/ directory, where the test bodies and stylesheets
are examined one by one and made to fit the CSS2.1 guidelines by hand.
After this stage, tests are placed in a raw-tests/.../ directory.
Support files are placed in raw-tests/.../support/ at this stage.
These raw tests should all be fully valid XHTML1.1, but need not have
the right <link rel="help"> lines or the right filenames.

Raw tests are then examined and a file is made giving each raw test's
right filename and metadata. This is put into raw-tests/.../FILENAMES.
Then, the make-proper-tests.pl script is pointed at raw-tests/.../,
and puts the resulting tests in the tests/ directory. Support files
are also copied to tests/support/.

   rm -rf tests/*.xht
   find raw-tests -name FILENAMES | xargs -n 1 perl make-proper-tests.pl
   rm -rf tests/support/.unused

The generate.pl script takes the tests in the tests/ directory and
creates the various final tests, which it outputs in the dist/
directory, along with navigation files and the support files. It uses
routines in the lib/ directory.

   rm -rf dist/
   mkdir dist
   perl generate.pl tests/*.xht
   cp -Lrv tests/support dist/support

Then all the tests are in dist/ and ready.

LICENSE

These tests are copyright by their respective author(s) and/or the
World Wide Web Consortium (W3C) as indicated.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

  1. Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in
     the documentation and/or other materials provided with the
     distribution.
  3. Neither the name of the World Wide Web Consortium (W3C) nor the
     names of its contributors may be used to endorse or promote
     products derived from this software without specific prior
     written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

CONTRIBUTE

If you want to contribute to this test suite, please read the guidelines
at http://csswg.inkedblade.net/test/css2.1/contribute

Since the built version of this test suite is released under both the
BSD 3-clause license (data/LICENSE-BSD) and the W3C Document License
(data/LICENSE-W3CD), you will need to send the following statement to
(preferably) [email protected] or (alternatively)
[email protected]:

  I agree to license under the BSD 3-clause license [1] all my
  contributions to the W3C CSS Test Suites.

  [1] http://www.opensource.org/licenses/bsd-license.php

  I also hereby grant to the W3C, a perpetual, non-exclusive,
  royalty-free, world-wide right and license under my copyrights
  in these contributions to copy, publish, use, modify, and to
  distribute my contributions under the W3C Document License [2],
  as well as a right and license of the same scope to any
  derivative works that are prepared by the W3C or contributors
  working on its behalf and that are based on or incorporating
  all or part of my contributions.

  [2] http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231

------------------------------------------------------------------------