test_1488832.html (662B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <script type="application/javascript" src="mediaStreamPlayback.js"></script> 5 </head> 6 <body> 7 <iframe id="testframe"></iframe> 8 <script> 9 "use strict"; 10 11 createHTML({ 12 title: "gUM shutdown race", 13 bug: "1488832" 14 }); 15 16 runTest(async () => { 17 testframe.srcdoc = ` 18 <html> 19 <head> 20 <script> 21 function start() { 22 for (let i = 0; i < 16; i++) { 23 window.navigator.mediaDevices.getUserMedia({video: true}) 24 setTimeout('location.reload()', 100) 25 } 26 } 27 document.addEventListener('DOMContentLoaded', start) 28 </` + `script> 29 </head> 30 </html>`; 31 32 await wait(10000); 33 testframe.srcdoc = ""; 34 }); 35 </script> 36 </body> 37 </html>