| Index: LayoutTests/svg/animations/resources/SVGAnimationTestCase.js
|
| diff --git a/LayoutTests/svg/animations/resources/SVGAnimationTestCase.js b/LayoutTests/svg/animations/resources/SVGAnimationTestCase.js
|
| index cb01b310ff727b5e1189c4b1083f2fa0d8b396e3..bdc259703767efecea076e5759204c9c85100be0 100644
|
| --- a/LayoutTests/svg/animations/resources/SVGAnimationTestCase.js
|
| +++ b/LayoutTests/svg/animations/resources/SVGAnimationTestCase.js
|
| @@ -98,6 +98,11 @@ function sampleAnimation() {
|
| }
|
|
|
| function runSMILTest() {
|
| + // Pause animations, we'll drive them manually.
|
| + // This also ensures that the timeline is paused before it starts. This should make the instance time of the below
|
| + // 'click' (for instance) 0, and hence minimize rounding errors for the addition in moveAnimationTimelineAndSample.
|
| + rootSVGElement.pauseAnimations();
|
| +
|
| // If eg. an animation is running with begin="0s", and we want to sample the first time, before the animation
|
| // starts, then we can't delay the testing by using an onclick event, as the animation would be past start time.
|
| if (window.animationStartsImmediately) {
|
| @@ -133,9 +138,6 @@ function runAnimationTest(expected) {
|
| ++currentTest;
|
| }
|
|
|
| - // Pause animations, we'll drive them manually.
|
| - rootSVGElement.pauseAnimations();
|
| -
|
| if (window.testRunner)
|
| setTimeout(sampleAnimation, 0);
|
| else
|
|
|