blob: ddf2d80c1ebe3678ac77e7f9fa4a814393524c1b [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<!--
Test for WK89943: pausing and unpausing an animation before it starts should have no effect.
-->
<body>
<svg id="svg" width="400" height="400">
<rect x="0" y="0" width="100" height="100" fill="red"/>
<rect id="rect" x="100" y="0" width="100" height="100" fill="green">
<set attributeName="x" to="0" begin="10ms" end="30ms" fill="freeze" onend="handleEndEvent()"/>
</rect>
</svg>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
var svg = document.getElementById("svg");
var rect = document.getElementById("rect");
svg.pauseAnimations();
svg.unpauseAnimations();
function handleEndEvent() {
if (rect.x.animVal.value == 0)
document.body.innerHTML = "PASS";
else
document.body.innerHTML = "FAIL : rect.x.animVal.value was " + rect.x.animVal.value + " but we expected 0.";
if (window.testRunner)
testRunner.notifyDone();
}
</script>
</body>
</html>