W3C home > Mailing lists > Public > public-css-testsuite@w3.org > February 2012

Re: [css3-transitions] [css3-animations] API for testing transitions and animations

From: Aryeh Gregor <ayg@aryeh.name>
Date: Wed, 15 Feb 2012 16:54:34 -0500
Message-ID: <CAKA+AxmiAAooR8_iSk2=yu-p_ttiTmAww9jnUQFA7H5AOBb4hA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: public-css-testsuite@w3.org
On Tue, Feb 14, 2012 at 4:01 PM, Aryeh Gregor <ayg@aryeh.name> wrote:
> Right.  So I'll probably start on tests for transitions and animations
> shortly.  My testing strategy will be
> * Test computed style at the start, end, and iteration events, and
> initially, and maybe also after everything should have finished.
> * Test computed style using requestAnimationFrame.
> * Test rendering using animated reftests.
> I think that should give us decent coverage, no?

setTimeout() tests also should work if you allow more tolerance for
error.  David Baron points out that a clever strategy is to use
negative transition-delays to jump to arbitrary points in the
transition so you don't have to wait -- Gecko uses this in
test_transitions_per_property.html.  Together, I think all these
approaches should give us pretty good test coverage without any
special APIs.

(There are always the usual concerns about what error bars to use,
though.  I wish the specs would actually say, instead of requiring me
to make something up.)
Received on Wednesday, 15 February 2012 21:55:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:24 UTC