tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

repeatcount-attribute-mutation.html (660B)


      1 <!doctype html>
      2 <title>Mutating the 'repeatCount' attribute after the element has been inserted</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <svg height="0">
      6  <rect width="10" height="100" fill="blue">
      7    <animate id="anim" attributeName="width" from="10" to="100" dur="10ms"
      8             repeatCount="indefinite"/>
      9  </rect>
     10 </svg>
     11 <script>
     12  promise_test(t => {
     13    const anim = document.getElementById("anim");
     14    anim.removeAttribute('repeatCount');
     15 
     16    const watcher = new EventWatcher(t, anim, ['endEvent', 'repeatEvent']);
     17    return watcher.wait_for('endEvent');
     18  });
     19 </script>