Load LayoutTests/animations/play-state.html, and just after the animation starts, pause animations. Note how the animations automatically resume when play-state changes.
Created attachment 72698 [details]
Comment on attachment 72698 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=72698&action=review
> + "running" and not suspended. Likewise pauses animation when either
> + flag is in the right state,
There's an incomplete sentence here.
> + bool wantToBePaused = playState == AnimPlayStatePaused || m_compAnim->suspended();
'wantToBePaused' confuses me. "shouldBePaused", or just "pause" perhaps?
> + runAnimationTest(expectedValues, setTimers, null, true);
Please annotate the parameters, or use variables to make the purposes of 'null' and 'true' clear.
Made changes suggested by Simon and landed in http://trac.webkit.org/changeset/71161