4 Test for WK81350: setCurrentTime() should work when animation is paused.
7 <svg id=
"svg" width=
"400" height=
"400">
8 <rect id=
"rect" x=
"0" y=
"0" width=
"100" height=
"100" fill=
"green">
9 <animate attributeName=
"x" from=
"200" to=
"400" begin=
"0s" dur=
"4s" />
13 if (window
.testRunner
) {
14 testRunner
.waitUntilDone();
15 testRunner
.dumpAsText();
18 var svg
= document
.getElementById("svg");
19 var rect
= document
.getElementById("rect");
21 svg
.pauseAnimations();
22 setTimeout(function() {
23 svg
.setCurrentTime(4);
24 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();