W3C home > Mailing lists > Public > public-css-testsuite@w3.org > August 2013

Automatable tests for <color> and <An+B>

From: Simon Sapin <simon.sapin@exyr.org>
Date: Sat, 10 Aug 2013 09:58:12 +0100
Message-ID: <520600A4.8070803@exyr.org>
To: "public-css-testsuite@w3.org mailing list" <public-css-testsuite@w3.org>

A few months ago I wrote[1] about JSON-based CSS tokenization tests. The 
conclusion is that they are not useful for W3C because tokens are (at 
the moment) an implementation detail not exposed to the platform.

These tests are now in a dedicated repository[2]. But more importantly, 
I add tests for parsing <color> from CSS Color Level 3, and <An+B>[3] 
from CSS Syntax Level 3 (ED). The latter is equivalent to what Selectors 
Level 3 defines for :nth-child() and related selectors, except for 
escaping in some cases[5].

These can be mechanically converted into reftests, testharness.js or 
some other form of automated testing, which IMO is much more useful than 
the current Color tests[5] that require visual inspection.

[2] https://github.com/SimonSapin/css-parsing-tests
[3] http://dev.w3.org/csswg/css-syntax-3/#the-anb-type
[4] http://dev.w3.org/csswg/css-syntax-3/#changes
[5] https://test.csswg.org/suites/css3-color/nightly-unstable/

Simon Sapin
Received on Saturday, 10 August 2013 08:58:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:26 UTC