W3C home > Mailing lists > Public > public-css-testsuite@w3.org > November 2005

Media Queries Test Suite Generator

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sun, 20 Nov 2005 14:29:29 +1100
Message-ID: <437FED99.2040504@lachy.id.au>
To: public-css-testsuite@w3.org
CC: Anne van Kesteren <annevk@opera.com>

Hi,
   Over the past few weeks I've been working with Anne van Kesteren to 
develop an a media queries test suite generator that would accept the 
actual UA/device values as parameters and generate appropriate test 
cases.  It's not quite finished, but it's usable and will actually 
generate XHTML 1.1 test cases for all CSS 2/2.1 media types and for each 
media feature.

It works by specifying the device and supplying the device's actual 
values for each feature (if applicable).  It will then generate a list 
of tests based on the supplied values and for each test case, determine 
whether the UA should apply the styles or not, in order to output the 
the correct pass condition.

For convenience in UAs that support script, the form will be 
automatically filled with all the values that the script can determine.

http://lachy.id.au/dev/css/tests/css3-mediaqueries/special/generator

The tests use both red/green as well as stating PASS or FAIL as that 
seems to be the most device independent way of indicating success or 
failure.

The area that still need to be worked on the most is the actual test 
values that get generated for each feature, particularly 
device-aspect-ratio.  There was also an idea to generate a file name 
that conforms with the CSS test suite guidelines and send a 
Content-Disposition header with that value, so that users can easily 
save the tests with sensible file names, but that's not implemented yet 
either.

Let me know if you find any bugs.

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Sunday, 20 November 2005 05:52:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 September 2010 17:51:54 GMT