tor-browser

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

pause-move-to-other-document.html (840B)


      1 <!doctype html>
      2 <title>paused state when moving to other document</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="/common/media.js"></script>
      6 <div id="log"></div>
      7 <video hidden></video>
      8 <iframe hidden></iframe>
      9 <script>
     10 async_test(function(t) {
     11  var v = document.querySelector('video');
     12  v.src = getVideoURI('/media/movie_300');
     13  v.play();
     14  v.onplaying = t.step_func(function() {
     15    assert_false(v.paused, 'paused after playing');
     16    document.querySelector('iframe').contentDocument.body.appendChild(v);
     17    assert_false(v.paused, 'paused after moving');
     18    t.step_timeout(function() {
     19      assert_false(v.paused, 'paused after stable state')
     20      t.done();
     21    }, 0);
     22  });
     23  v.onpause = t.step_func(function() { assert_unreached(); });
     24 });
     25 </script>