Re: Support for negative reftest?

On Wednesday 2010-11-24 16:11 -0500, Aryeh Gregor wrote:
> On Wed, Nov 24, 2010 at 11:41 AM, Philippe Le Hegaret <plh@w3.org> wrote:
> > I wonder if it would be possible to add support for negative reftests,
> > ie two files who must not have the same rendering.
> >
> > test:
> > &#x5d0;&#x5d1;&#x5d2;
> >
> > test-ref:
> > <bdo dir="ltr">&#x5d0;&#x5d1;&#x5d2;</bdo>
> 
> Why can't you have test-ref be
> 
> <bdo dir="ltr">&#x5d2;&#x5d1;&#x5d0;</bdo>
> 
> instead, and use a regular reftest?

I think that's desirable in addition.

However, it's very useful in reftests to have != reftests to check
what you're doing, since the normal pass condition for reftests is
so simple (image equality).

Without this, an implementation that makes a whole set of tests all
blank can pass them all.  It's generally good to include a small
number of != tests to verify that things that should be different
actually are.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Wednesday, 24 November 2010 23:20:21 UTC