A list of things to check for before accepting a test for the CSS2.1 test suite.
These are necessary for the test to be processed correctly by our build scripts.
Getting these correct lets us automatically index and manipulate the tests.
[ ] Title is
unique and
descriptive but not wordy. (It should make sense in the test suite's
table of contents.)
[ ] Title starts with
CSS Test: .
-
-
-
[ ] The
test assertion is a
complete,
detailed statement expressing
specifically what the test is attempting to prove (and is therefore not a duplicate of any other assertion in the test suite).
[ ] Test instructions are in <p>.
[ ] Test uses only <div>, <span>, and <p> unless testing interactions with other elements.
[ ] Table tests using
XHTML table elements have an equivalent test with <div> with table display types (and vice versa insofar as possible).
-
Determining whether the test is correct, and whether it is useful.
[ ] Test assertion reflects efficient test breakdown – that is, it is appropriate to a single, unique test case.
[ ] Test is testing what the author thinks it's testing.
[ ] The test fails obviously whenever it fails.
[ ] The pass condition is clear.
[ ] The test will not pass inadvertently..
[ ] The test contains no extraneous content.
[ ] The test instructions are accurate, precise, simple, and self-explanatory. (Your mother/husband/roommate/brother/bus driver should be able to say whether the test passed or failed within a few seconds, and not need to spend several minutes thinking or asking questions.)
[ ] The test is as cross-platform as reasonably possible, working across different devices, screen resolutions, paper sizes, etc. If there are limitations (e.g. the test will only work on 96dpi devices, or screens wider than 200 pixels), these are documented in the instructions.
[ ] The
spec backs up the expected behavior in the test. (I've run into a number of tests that make assumptions I could've sworn were in the
spec, but aren't there when I go and check. Since this often means the
spec forgot to handle something, you should send a message to www-style about it.)
-
These are optional, but make the tests easier to review.
[ ] Declarations are listed in a consistent order throughout a test series. (Always listing properties in alphabetical order makes this easy.)
[ ] Requirement flags are in alphabetical order.
[ ] Sentences have correct grammar, spelling, and punctuation.