W3C home > Mailing lists > Public > public-css-testsuite@w3.org > June 2015

Re: dependencies in tests

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Tue, 16 Jun 2015 16:45:25 -0400
To: Public CSS Test suite mailing list <public-css-testsuite@w3.org>
Message-ID: <55ad98007edcf7179aeee74bbe0568cb@gtalbot.org>
Le 2015-06-16 16:20, Florian Rivoal a écrit :
> Hi,
> 
> I am wondering what to do when testing a feature A that depends on a
> feature B if B isn't available (and is something from another spec).
> Should I make that a pass condition? a fail condition? Something else?
> 
> Here's one concrete example:
> 
> For 'cursor: text', "User agents may automatically display a
> horizontal I-beam/cursor (e.g. same as the vertical-text keyword) for
> vertical text"
> 
> (This is a MAY, so the "may" flag meta flag is needed, but that's
> orthogonal to the question).
> 
> A simple test would involve using writing-mode to make a piece of
> vertical text, apply the text-cursor to it, and check what it looks
> like.
> 
> But what if the browser doesn't support writing modes?
> 
> Should the text in the test says something like "Test passes if ...,
> fails if ..., and if there is no vertical text, skip this test."?

No, I do not think so.

> 
> I could not find guidance for this in the testthewebforward site.
> 
>  - Florian



If the user agent does not support vertical writing-mode, then the test 
must fail.

If the user agent supports vertical writing-mode but does not support a 
vertical text cursor, then the test must fail.

It will be up to the manufacturer of such user agent or rendering engine 
to establish or to untangle the reason of the test failure by their user 
agent or rendering engine.

Gérard
-- 
Test Format Guidelines
http://testthewebforward.org/docs/test-format-guidelines.html

Test Style Guidelines
http://testthewebforward.org/docs/test-style-guidelines.html

Test Templates
http://testthewebforward.org/docs/test-templates.html

CSS Naming Guidelines
http://testthewebforward.org/docs/css-naming.html

Test Review Checklist
http://testthewebforward.org/docs/review-checklist.html

CSS Metadata
http://testthewebforward.org/docs/css-metadata.html
Received on Tuesday, 16 June 2015 20:45:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:21 UTC