summaryrefslogtreecommitdiffstats
path: root/dom/media/webrtc/tests/mochitests/test_1488832.html
blob: 8798994b247a3a7c0a442ff54bb1b878e8733a64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE HTML>
<html>
<head>
<script type="application/javascript" src="mediaStreamPlayback.js"></script>
</head>
<body>
<iframe id="testframe"></iframe>
<script>
"use strict";

createHTML({
  title: "gUM shutdown race",
  bug: "1488832"
});

runTest(async () => {
  testframe.srcdoc = `
  <html>
  <head>
  <script>
  function start() {
    for (let i = 0; i < 16; i++) {
      window.navigator.mediaDevices.getUserMedia({video: true})
      setTimeout('location.reload()', 100)
    }
  }
  document.addEventListener('DOMContentLoaded', start)
  </` + `script>
  </head>
  </html>`;

  await wait(10000);
  testframe.srcdoc = "";
});
</script>
</body>
</html>