pause-move-within-document.html (825B)
1 <!doctype html> 2 <title>paused state when moving within a 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 <div id="elsewhere"></div> 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.getElementById('elsewhere').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>