4 Test for WK89943: pausing and unpausing an animation before it starts should have no effect.
7 <svg id=
"svg" width=
"400" height=
"400">
8 <rect x=
"0" y=
"0" width=
"100" height=
"100" fill=
"red"/>
9 <rect id=
"rect" x=
"100" y=
"0" width=
"100" height=
"100" fill=
"green">
10 <set attributeName=
"x" to=
"0" begin=
"0.01s" fill=
"freeze"/>
14 if (window
.testRunner
) {
15 testRunner
.waitUntilDone();
16 testRunner
.dumpAsText();
19 var svg
= document
.getElementById("svg");
20 var rect
= document
.getElementById("rect");
22 svg
.pauseAnimations();
23 svg
.unpauseAnimations();
25 setTimeout(function() {
26 if (rect
.x
.animVal
.value
== 0)
27 document
.body
.innerHTML
= "PASS";
29 document
.body
.innerHTML
= "FAIL : rect.x.animVal.value was " + rect
.x
.animVal
.value
+ " but we expected 0.";
31 if (window
.testRunner
)
32 testRunner
.notifyDone();