W3C home > Mailing lists > Public > public-html-testsuite@w3.org > November 2010

Re: Support for negative reftest?

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 24 Nov 2010 15:19:48 -0800
To: Aryeh Gregor <Simetrical+w3c@gmail.com>
Cc: Philippe Le Hegaret <plh@w3.org>, HTML Test Suite <public-html-testsuite@w3.org>
Message-ID: <20101124231948.GA12600@pickering.dbaron.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 15:49:37 UTC