Re: [shepherd] XML tests

On Oct 12, 2011, at 1:55 PM, fantasai wrote:

> Some of our tests are not XHTML, so running validation on them doesn't make
> much sense. Generally these are the ones in the 'other-formats' folder.
> They should be considered tests, but we can't automatically process them
> the way we do other tests.
> 
> Ex: http://test.csswg.org/shepherd/testcase/background-18/
> 
> Not sure how to handle these, but the system shouldn't be marking them
> invalid for missing XHTML bits...

The system isn't trying to validate XML files as XHTML (it is validating the XML though). The error it's reporting is that it's not finding any metadata. 

Of course, for now, it's looking for the metadata inside an XHTML <head> element, which theoretically could be inside a generic XML file (just use the XHTML namespace for the <head> and its children). The system also has hooks to look for metadata inside a parallel XML file for those files that can't contain an XHTML <head>, but that's not quite connected yet. I've been debating the format for the parallel metadata files.

We also need to extend the metadata to be able to define multiple tests per file (for script tests like MQ).

Peter

Received on Thursday, 13 October 2011 00:24:37 UTC