<!DOCTYPE html>
<html>
<head>
  <script type="text/javascript">
    if (window.testRunner)
        testRunner.waitUntilDone();

    window.setTimeout(function() {
        document.body.innerHTML = 'PASS: Test did not crash.';
        if (window.testRunner) {
            testRunner.dumpAsText();
            testRunner.notifyDone();
        }
    }, 120);
  </script>
</head>
<body>
  Test infinite animation loop<br/>
  This test passes if it does not crash<br/>
  <svg xmlns="http://www.w3.org/2000/svg">
    <circle r="10" cx="50" cy="50" fill="green">
      <animate id="anim1" attributeName="opacity" from="0" to="1" begin="0s; anim3.end" dur="0.01s"/>
      <animate id="anim2" attributeName="opacity" from="1" to="1" begin="anim1.end" dur="0.03s" fill="freeze"/>
      <animate id="anim3" attributeName="opacity" from="1" to="0" begin="anim2.end" dur="0.01s" fill="freeze"/>
    </circle>
  </svg>
</body>
</html>
