2 <script src=
"../../resources/js-test.js"></script>
3 <script src=
"resources/SVGTestCase.js"></script>
4 <script src=
"resources/SVGAnimationTestCase.js"></script>
7 internals
.settings
.setImageAnimationPolicy("none");
10 // Before running runSMILTest(), we check it first,
11 // because runSMILTest() calls pauseAnimations.
12 // It should be True because AnimationPolicy is set with 'none'.
13 shouldBeTrue("rootSVGElement.animationsPaused()");
17 <body onload=
"startTest()">
18 <h1>SVG with animation policy, none
</h1>
19 <p id=
"description"></p>
20 <div id=
"console"></div>
22 description("This tests svg animation with animation policy none");
23 function checkValues(paused
) {
24 shouldBeTrue("rootSVGElement.animationsPaused()");
25 shouldBe("rootSVGElement.getCurrentTime()", "0");
26 rootSVGElement
.setCurrentTime(5.0);
27 shouldBe("rootSVGElement.getCurrentTime()", "0");
30 function checkValuesOnEachState() {
32 rootSVGElement
.pauseAnimations();
34 rootSVGElement
.unpauseAnimations();
37 // Setup animation test
39 shouldBe("rect.y.animVal.value", "0");
40 shouldBe("rect.y.baseVal.value", "0");
41 checkValuesOnEachState();
64 <script src=
"script-tests/svg-animation-policy.js"></script>