summaryrefslogtreecommitdiffstats
path: root/toolkit/components/pictureinpicture/tests/test-media-stream.html
blob: ad5f91dd253298de606560a0f4521895c0825de5 (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
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Picture-in-Picture tests</title>
  <script type="text/javascript" src="click-event-helper.js"></script>
</head>
<style>
  video {
    display: block;
    border: 1px solid black;
  }
</style>
<body>
  <script>
    function fireEvents() {
      for (let videoID of ["with-controls", "no-controls"]) {
        let video = document.getElementById(videoID);
        let event = new CustomEvent("MozTogglePictureInPicture", { bubbles: true });
        video.dispatchEvent(event);
      }
    }
  </script>
</body>
</html>