Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / animate-initial-pause-unpause.html
blobf975c3e5ec8fe6254a4882b91d39740a899f7cf5
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 Test for WK89943: pausing and unpausing an animation before it starts should have no effect.
5 -->
6 <body>
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"/>
11 </rect>
12 </svg>
13 <script>
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";
28 else
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();
33 }, 50);
34 </script>
35 </body>
36 </html>