Re: Towards a better testsuite: Metadata

On 12/04/2016 20:10, fantasai wrote:
> The test template would look like this:
>
> <!DOCTYPE html>
> <title>
>    Title of your test on one line [optional]
>
>    ... Assertion of your test, i.e. what does passing this test
>    prove. E.g. When text-align is not set, its initial value depends
>     on dir attribute.) ...
> </title>

i'm still not keen on this.  It's risky. For example, how do you tell 
whether there's a one line short title followed by an assertion 
paragraph or no short title but two paragraphs? It also requires dealing 
with different line breaks, and there's a risk of lines not being 
properly separated, etc.

if we have to use the title element, how about using the title attribute 
with it for the optional bit, ie. the short title.  Then at least we can 
tell the difference easily.

ie.

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title title="short title for your test">Assertion, i.e. in situation X, 
Y will happen. E.g. When text-align is not set, its initial value 
depends on the dir attribute.</title>


and btw in the documentation i'd say that the title attribute is 
optional, but recommended.

ri

Received on Tuesday, 12 April 2016 19:50:59 UTC