navigate_cue_position.html (1061B)
1 <!doctype html> 2 <html class="reftest-wait"> 3 <title>WebVTT rendering, cue position after navigation</title> 4 <link rel="match" href="navigate_cue_position-ref.html"> 5 <script src="/common/reftest-wait.js"></script> 6 <script src="/common/utils.js"></script> 7 <style>iframe {width:100%; height:500px}</style> 8 <script> 9 var uuid = token(); 10 onload = function() { 11 var frame = document.getElementsByTagName("iframe")[0].contentWindow; 12 if (sessionStorage[uuid]) { 13 document.body.appendChild(document.createTextNode('FAIL (page reloaded after navigation)')); 14 delete sessionStorage[uuid] 15 takeScreenshotDelayed(100); 16 } else { 17 setTimeout(function() { 18 frame.location.assign('data:text/html,<body onload="setTimeout(function(){history.back()}, 100); sessionStorage[\'' + uuid + '\'] = \'true\';">x'); 19 setTimeout(function() { 20 delete sessionStorage[uuid]; 21 takeScreenshot(); 22 }, 500); 23 }, 100); 24 } 25 } 26 </script> 27 <iframe src="navigate_cue_position-1.html"></iframe>