tor-browser

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

seeking-to-large-time.html (788B)


      1 <!DOCTYPE html>
      2 <title>SVGSVGElement.prototype.setCurrentTime: Large time argument</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <svg>
      6  <rect width="100" height="100" fill="green">
      7    <set attributeName="fill" to="red"
      8         begin="9223372036854775807" dur="10ms"/>
      9  </rect>
     10 </svg>
     11 <script>
     12  async_test(function(t) {
     13    onload = t.step_func(function() {
     14      document.querySelector("svg").setCurrentTime(9223372036854775807);
     15      requestAnimationFrame(t.step_func(function() {
     16        t.step_timeout(function() {
     17          let rect = document.querySelector('rect');
     18          assert_equals(getComputedStyle(rect).fill, 'rgb(0, 128, 0)');
     19          t.done();
     20        }, 11);
     21      }));
     22    });
     23  });
     24 </script>