Bug 691950 - Set up directories for W3C CSSWG test suite sync to/from mozilla-central. r=dbaron

This commit is contained in:
fantasai 2012-06-13 21:12:37 -04:00
parent 8d929b4bc9
commit 4e1c54332f
8 changed files with 206 additions and 0 deletions

View File

@ -11,6 +11,9 @@ include reftest-sanity/reftest.list
# images (if libpr0n is busted, could result in weird failures in other tests)
include ../../image/test/reftest/reftest.list
# CSSWG tests
include w3c-css/submitted/reftest.list
# relative and absolute positioning
include abs-pos/reftest.list

View File

@ -0,0 +1,27 @@
W3C 3-clause BSD License
------------------------
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of works must retain the original copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the original copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the W3C nor the names of its contributors may be
used to endorse or promote products derived from this work without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"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 COPYRIGHT
OWNER OR CONTRIBUTORS 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.

View File

@ -0,0 +1,21 @@
W3C CSS Test Suite Directory
----------------------------
This directory is for tests that are sync'ed with the official
W3C CSS test suites at http://test.csswg.org/.
submitted/ is for tests that are to be submitted to W3C.
This directory is sync'ed automatically with the contributors/mozilla/
directory in the CSSWG repository. The master copy is Mozilla's.
received/ is for tests that are received from W3C.
This directory is sync'ed semi-automatically with the approved/
directory in the CSSWG repository. The master copy is CSSWG's.
Don't make changes here; they'll be overwritten by the next sync.
Legal Stuff
-----------
These files are copyright by W3C and/or the author listed in the test
file. They are available under the BSD 3-clause license; see LICENSE
or http://www.w3.org/Consortium/Legal/2008/03-bsd-license.html

View File

@ -0,0 +1,5 @@
W3C CSS Test Suite Import Directory
-----------------------------------
This directory will contain reftests pulled from the CSSWG test repository.
It's not set up yet.

View File

@ -0,0 +1,69 @@
W3C CSS Test Suite Submission Directory
---------------------------------------
Put tests here that are to be submitted to the official W3C CSS test
suites at http://test.csswg.org/. This directory will be sync'ed
automatically with the contributors/mozilla/ directory in the CSSWG
repository. The master copy is Mozilla's; make edits here, not there.
Tests submitted here must conform to the CSSWG test format:
http://wiki.csswg.org/test/format
The extra metadata is there to connect tests to their respective specs
and to help reviewers and people trying to debug their implementations
understand and analyze the tests. (These are not write-only regression
tests.)
TEST FILENAMES MUST BE GLOBALLY UNIQUE across the entire CSSWG test repo,
so don't rely on directory names as context.
The W3C format uses <link> tags for connecting reftests to their
references and generates reftest.list from a build process. Until we
set up a build process here, you need to link up the reftest both ways.
Because W3C sometimes needs to allow multiple correct renderings for
a particular case, a test linked to a reference must match ANY of them,
not all of them. To require a test to match all references, chain the
references to each other. If (a discrete number of) multiple renderings
are conformant, make a reftest comparison for each of them, and mark
all but the one we support as 'fails' in the reftest.list.
You can copy the test-template-001.xht and references/test-template-001.xht
files in this directory as a starting point
Submitted tests are tracked in Shepherd: http://test.csswg.org/shepherd/
Some things cannot be reftested; if another format is necessary to test
a particular feature, contact public-css-testsuite@w3.org and/or ask
the layout peers for help.
Legal Stuff
-----------
The following license grant applies to contributions to this directory
(unless copyright is owned by a W3C Member, in which case the Membership
agreement applies):
The Contributor hereby grants to the W3C, a perpetual, non-exclusive,
royalty-free, world-wide right and license under any Contributor
copyrights in this contribution to copy, publish, use, and modify the
contribution and to distribute the contribution under a BSD License or one
with more restrictive terms, as well as a right and license of the same
scope to any derivative works prepared by the W3C and based on, or
incorporating all or part of the contribution. The Contributor further
agrees that any derivative works of this contribution prepared by the W3C
shall be solely owned by the W3C.
The Contributor states, to the best of her/his knowledge, that she/he,
or the company she/he represents, has all rights necessary to contribute
the Materials.
W3C will retain attribution of initial authorship to the Contributor. The
W3C makes no a-priori commitment to support or distribute contributions.
THE CONTRIBUTION IS PROVIDED AS IS, AND CONTRIBUTORS MAKE NO REPRESENTATIONS OR
WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE;
THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE. CONTRIBUTORS
MAKE NO REPRESENTATIONS, EXPRESS OR IMPLIED, THAT THE CONTRIBUTION OR THE USE
THEREOF INDICATES CONFORMANCE TO A SPECIFICATION; CONTRIBUTIONS ARE PROVIDED
ONLY TO HELP REACHING INTEROPERABILITY.

View File

@ -0,0 +1,13 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="{{ reference author's name }}" href="{{ reference author's contact info (mailto or http) }}" />
<style type="text/css"><![CDATA[
{{ css for the reference }}
]]></style>
</head>
<body>
<!-- content of reference -->
</body>
</html>

View File

@ -0,0 +1,50 @@
# Do not assign a test to multiple references. Chain the references instead.
# See README.
== test-template-001.xht references/test-template-001.xht
# Module includes, alphabetical sans "CSS". Add/uncomment as necessary.
## CSS Snapshot 2007
# CSS2.1
# include css2.1/reftest.list
# Animations
# include animations/reftest.list
# Backgrounds and Borders Level 3
# include background3/reftest.list
# Fonts Level 3
# include fonts3/reftest.list
# Image Values and Replaced Content Level 3
# include images3/reftest.list
# Media Queries Level 3
# include mediaqueries3/reftest.list
# Multi-column Layout
# include multicol/reftest.list
# Selectors Level 3
# include selectors3/reftest.list
# Selectors Level 4
# include selectors4/reftest.list
# Text Level 3
# include text3/reftest.list
# Transforms
# include transforms/reftest.list
# Transitions
# include transitions/reftest.list
# User Interface Level 3
# include ui3/reftest.list
# Values and Units Level 3
# include values/reftest.list

View File

@ -0,0 +1,18 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: {{ brief but unique descriptive title of what's being tested }}</title>
<link rel="author" title="{{ test author's name }}" href="{{ test author's contact info (mailto or http) }}" />
<link rel="help" href="http://www.w3.org/TR/{{ URL to specific spec section; for multiple LINKs put primary first }}" />
<meta name="flags" content="{{ see http://wiki.csswg.org/test/format#requirement-flags }}" />
<meta name="assert" content="{{ explain precisely what is asserted when the test passes;
optional but helps coordination and review }}" />
<link rel="match" href="test-template-001-ref.xht" />
<style type="text/css"><![CDATA[
{{ css for the test }}
]]></style>
</head>
<body>
<!-- content of test -->
</body>
</html>