I'm not sure if this is generally known: we use [svg document].setCurrentTime(time) in the svg/animations tests for both script and pixel tests. The SVG animation test harness leaves a lot to be desired, but it may be a good place to start for a more general DRT approach: http://trac.webkit.org/browser/trunk/LayoutTests/svg/animations/script-tests/animate-css-xml-attributeType.js#L62
Philip On Fri, Feb 8, 2013 at 4:26 PM, Gregg Tavares <g...@google.com> wrote: > > > > On Fri, Feb 8, 2013 at 4:16 PM, Benjamin Poulain <benja...@webkit.org>wrote: > >> On Fri, Feb 8, 2013 at 4:12 PM, Gregg Tavares <g...@google.com> wrote: >> >>> Can you expose a time or setTime function in DRT and some option that >>> says "let JS control the clock"? >>> >> >> Unfortunately, that only works in the simple cases. >> We could cheat the WebCore clock, but that would ultimately be wrong for >> animations running in threads or driven outside WebCore. >> > > The point was you need to be able to control all the clocks if you want > repeatable results. If you're saying some clocks can't be controlled that > sounds like something needs to be refactored so it's testable. > > >> >> Benjamin >> > > > _______________________________________________ > webkit-dev mailing list > webkit-dev@lists.webkit.org > https://lists.webkit.org/mailman/listinfo/webkit-dev > >
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev