blob: 51f8bfb84aa34e59989237e05bbc4c4327fce02a [file] [log] [blame]
commit-queue@webkit.org47792032013-04-02 15:18:36 +00001<!DOCTYPE html>
2<html>
3<head>
4 <script type="text/javascript">
5 if (window.testRunner)
6 testRunner.waitUntilDone();
7
8 onload = function() {
9 // Do test _after_ onload to make sure that the time container
10 // has begun.
11 window.setTimeout(function() {
12 document.querySelector('svg').setCurrentTime(0.5);
13 document.body.innerHTML = 'PASS: Test did not hang.';
14 if (window.testRunner) {
15 testRunner.dumpAsText();
16 testRunner.notifyDone();
17 }
18 }, 0);
19 };
20 </script>
21</head>
22<body>
23 <p>This test passes if it does not hang...</p>
24 <svg xmlns="http://www.w3.org/2000/svg">
25 <circle r="10" cx="50" cy="50" fill="none">
26 <animate id="anim1" attributeName="opacity" from="0" to="1" begin="0.1s; anim3.end" dur="0.01s"/>
27 <animate id="anim2" attributeName="opacity" from="1" to="1" begin="anim1.end" dur="0.05s" fill="freeze"/>
28 <animate id="anim3" attributeName="opacity" from="1" to="0" begin="anim2.end" dur="0.01s" fill="freeze"/>
29 </circle>
30 </svg>
31</body>
32</html>