W3C home > Mailing lists > Public > public-css-testsuite@w3.org > April 2012

Re: Format guidelines for tests (particularly HTML5)

From: Linss, Peter <peter.linss@hp.com>
Date: Wed, 18 Apr 2012 16:05:06 +0100
To: Aryeh Gregor <ayg@aryeh.name>
CC: fantasai <fantasai.lists@inkedblade.net>, "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
Message-ID: <D0A33101-23C5-4C72-A403-2894B7A010A4@hp.com>

On Apr 17, 2012, at 11:29 PM, Aryeh Gregor wrote:

> On Wed, Apr 18, 2012 at 4:58 AM, fantasai <fantasai.lists@inkedblade.net> wrote:
>> The reason XML serializations are recommended and HTML serializations
>> were not is because of the last clause about reserialization, which
>> you have now attached to HTML < 5 and not to HTML5, even though it
>> applies equally to HTML5.
> 
> So HTML files are reserialized but XHTML files are not?  I thought all
> tests were generated in both HTML and XHTML forms, so all tests will
> get parsed and reserialized.
> 

All tests get re-serialized, regardless of source or output format. We do this so that the build process can inject markup into the metadata without causing unrelated diffs in the output. (That in turn is necessary for the test harness import process which looks for diffs but knows to ignore certain metadata markup diffs.)

I already updated the text in the wiki and also added a note about encoding:
http://wiki.csswg.org/test/format#acceptable-test-formats

It occurred to me that for markup parsing tests we need to be able to flag the test source in such a way that the build process will simply copy the source file as is. It can copy all the metadata (including any metadata it needs to inject) into a sidecar file (.meta). Any suggestions for the name of that flag?

Peter
Received on Wednesday, 18 April 2012 15:06:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 18 April 2012 15:07:00 GMT